about summary refs log tree commit diff
path: root/sysdeps/x86_64/fpu/multiarch/x86-math-features.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/fpu/multiarch/x86-math-features.h')
-rw-r--r--sysdeps/x86_64/fpu/multiarch/x86-math-features.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/x86_64/fpu/multiarch/x86-math-features.h b/sysdeps/x86_64/fpu/multiarch/x86-math-features.h
new file mode 100644
index 0000000000..c43b66de7c
--- /dev/null
+++ b/sysdeps/x86_64/fpu/multiarch/x86-math-features.h
@@ -0,0 +1,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 */