aboutsummaryrefslogtreecommitdiff
path: root/fmv.h
blob: 0aa439da215de30be44bb2b376317ce684dce0e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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