summaryrefslogtreecommitdiff
path: root/util/compress/libdeflate/lib/x86/cpu_features.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/compress/libdeflate/lib/x86/cpu_features.h')
-rw-r--r--util/compress/libdeflate/lib/x86/cpu_features.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/util/compress/libdeflate/lib/x86/cpu_features.h b/util/compress/libdeflate/lib/x86/cpu_features.h
deleted file mode 100644
index 4c023539e..000000000
--- a/util/compress/libdeflate/lib/x86/cpu_features.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * x86/cpu_features.h - feature detection for x86 processors
- */
-
-#ifndef LIB_X86_CPU_FEATURES_H
-#define LIB_X86_CPU_FEATURES_H
-
-#include "../lib_common.h"
-
-#if (defined(__i386__) || defined(__x86_64__)) && \
- COMPILER_SUPPORTS_TARGET_FUNCTION_ATTRIBUTE
-# define X86_CPU_FEATURES_ENABLED 1
-#else
-# define X86_CPU_FEATURES_ENABLED 0
-#endif
-
-#if X86_CPU_FEATURES_ENABLED
-
-#define X86_CPU_FEATURE_SSE2 0x00000001
-#define X86_CPU_FEATURE_PCLMUL 0x00000002
-#define X86_CPU_FEATURE_AVX 0x00000004
-#define X86_CPU_FEATURE_AVX2 0x00000008
-#define X86_CPU_FEATURE_BMI2 0x00000010
-#define X86_CPU_FEATURE_AVX512BW 0x00000020
-
-#define X86_CPU_FEATURES_KNOWN 0x80000000
-
-extern volatile u32 _cpu_features;
-
-void setup_cpu_features(void);
-
-static inline u32 get_cpu_features(void)
-{
- if (_cpu_features == 0)
- setup_cpu_features();
- return _cpu_features;
-}
-
-#endif /* X86_CPU_FEATURES_ENABLED */
-
-#endif /* LIB_X86_CPU_FEATURES_H */