• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef FMV_H
2 
3 #if HAVE_FUNC_ATTRIBUTE_IFUNC
4 #if defined(__has_attribute)
5 #if __has_attribute(target_clones)
6 #if defined(__x86_64)
7 
8 // see https://gcc.gnu.org/wiki/FunctionMultiVersioning
9 #define PF_TARGET_CLONES __attribute__((target_clones("avx","sse4.2","sse3","sse2","sse","default")))
10 #define HAVE_PF_TARGET_CLONES  1
11 #endif
12 #endif
13 #endif
14 #endif
15 
16 #ifndef PF_TARGET_CLONES
17 #define PF_TARGET_CLONES
18 #endif
19 
20 #endif
21