1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-02 13:43:18 +02:00

[x86] Embed brand_string and mark FillX86BrandString as deprecated (#214)

This commit is contained in:
Guillaume Chatelet
2022-01-14 17:20:31 +01:00
committed by GitHub
parent aa642e573e
commit 149916384b
4 changed files with 67 additions and 15 deletions

View File

@ -239,4 +239,11 @@
#define CPU_FEATURES_UNREACHABLE()
#endif
// Communicates to the compiler that the function is now deprecated
#if defined(CPU_FEATURES_COMPILER_CLANG) || defined(CPU_FEATURES_COMPILER_GCC)
#define CPU_FEATURES_DEPRECATED(message) __attribute__((deprecated(message)))
#else
#define CPU_FEATURES_DEPRECATED(message)
#endif
#endif // CPU_FEATURES_INCLUDE_CPU_FEATURES_MACROS_H_