about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/multiarch/x86-math-features.h
blob: c43b66de7c9bb95aac6dfe6b093ae4a3c5ae2a8c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef X86_MATH_FEATURES_H
#define X86_MATH_FEATURES_H

enum
  {
    x86_math_feature_initialized = 1 << 0,
    x86_math_feature_avx = 1 << 1,
    x86_math_feature_avx2 = 1 << 2,
    x86_math_feature_fma = 1 << 3,
    x86_math_feature_fma4 = 1 << 4,
    x86_math_feature_sse41 = 1 << 5,
  };

/* Return a combination of flags x86_math_feature_* above.  */
unsigned int __x86_math_features (void)
  __attribute__ ((const)) attribute_hidden;

#endif /* X86_MATH_FEATURES_H */