summaryrefslogtreecommitdiff
path: root/src/g10lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/g10lib.h')
-rw-r--r--src/g10lib.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/g10lib.h b/src/g10lib.h
index 9d2ece9c..7352556a 100644
--- a/src/g10lib.h
+++ b/src/g10lib.h
@@ -194,23 +194,23 @@ char **_gcry_strtokenize (const char *string, const char *delim);
/*-- src/hwfeatures.c --*/
-/* (Do not change these values unless synced with the asm code.) */
-#define HWF_PADLOCK_RNG 1
-#define HWF_PADLOCK_AES 2
-#define HWF_PADLOCK_SHA 4
-#define HWF_PADLOCK_MMUL 8
-
-#define HWF_INTEL_CPU 16
-#define HWF_INTEL_FAST_SHLD 32
-#define HWF_INTEL_BMI2 64
-#define HWF_INTEL_SSSE3 128
-#define HWF_INTEL_PCLMUL 256
-#define HWF_INTEL_AESNI 512
-#define HWF_INTEL_RDRAND 1024
-#define HWF_INTEL_AVX 2048
-#define HWF_INTEL_AVX2 4096
-
-#define HWF_ARM_NEON 8192
+#define HWF_PADLOCK_RNG (1 << 0)
+#define HWF_PADLOCK_AES (1 << 1)
+#define HWF_PADLOCK_SHA (1 << 2)
+#define HWF_PADLOCK_MMUL (1 << 3)
+
+#define HWF_INTEL_CPU (1 << 4)
+#define HWF_INTEL_FAST_SHLD (1 << 5)
+#define HWF_INTEL_BMI2 (1 << 6)
+#define HWF_INTEL_SSSE3 (1 << 7)
+#define HWF_INTEL_SSE4_1 (1 << 8)
+#define HWF_INTEL_PCLMUL (1 << 9)
+#define HWF_INTEL_AESNI (1 << 10)
+#define HWF_INTEL_RDRAND (1 << 11)
+#define HWF_INTEL_AVX (1 << 12)
+#define HWF_INTEL_AVX2 (1 << 13)
+
+#define HWF_ARM_NEON (1 << 14)
gpg_err_code_t _gcry_disable_hw_feature (const char *name);