diff options
Diffstat (limited to 'src/hwf-x86.c')
-rw-r--r-- | src/hwf-x86.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hwf-x86.c b/src/hwf-x86.c index 2ceb04c8..784fe2a4 100644 --- a/src/hwf-x86.c +++ b/src/hwf-x86.c @@ -201,6 +201,11 @@ detect_x86_gnuc (void) /* Get CPU info and Intel feature flags (ECX). */ get_cpuid(1, NULL, NULL, &features, NULL); +#ifdef ENABLE_PCLMUL_SUPPORT + /* Test bit 1 for PCLMUL. */ + if (features & 0x00000002) + result |= HWF_INTEL_PCLMUL; +#endif #ifdef ENABLE_AESNI_SUPPORT /* Test bit 25 for AES-NI. */ if (features & 0x02000000) |