Index: base/cpu.cc |
diff --git a/base/cpu.cc b/base/cpu.cc |
index dec98bd7a1e82b5e8162a163200de415a513dfde..3f704e3c41de6d83348af609a0aec487da2dc928 100644 |
--- a/base/cpu.cc |
+++ b/base/cpu.cc |
@@ -38,6 +38,7 @@ CPU::CPU() |
has_avx_(false), |
has_avx_hardware_(false), |
has_non_stop_time_stamp_counter_(false), |
+ has_aesni_(false), |
cpu_vendor_("unknown") { |
Initialize(); |
} |
@@ -120,6 +121,7 @@ void CPU::Initialize() { |
has_ssse3_ = (cpu_info[2] & 0x00000200) != 0; |
has_sse41_ = (cpu_info[2] & 0x00080000) != 0; |
has_sse42_ = (cpu_info[2] & 0x00100000) != 0; |
+ has_aesni_ = (cpu_info[2] & 0x02000000) != 0; |
has_avx_hardware_ = |
(cpu_info[2] & 0x10000000) != 0; |
// AVX instructions will generate an illegal instruction exception unless |