blob: 0aa439da215de30be44bb2b376317ce684dce0e5 [file] [log] [blame]
hayati ayguen29eb8472020-11-11 23:09:58 +01001#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