You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
417 B
21 lines
417 B
#ifndef FMV_H
|
|
|
|
#if HAVE_FUNC_ATTRIBUTE_IFUNC
|
|
#if defined(__has_attribute)
|
|
#if __has_attribute(target_clones)
|
|
#if defined(__x86_64)
|
|
|
|
// see https://gcc.gnu.org/wiki/FunctionMultiVersioning
|
|
#define PF_TARGET_CLONES __attribute__((target_clones("avx","sse4.2","sse3","sse2","sse","default")))
|
|
#define HAVE_PF_TARGET_CLONES 1
|
|
#endif
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef PF_TARGET_CLONES
|
|
#define PF_TARGET_CLONES
|
|
#endif
|
|
|
|
#endif
|