Index: base/cpu.cc |
diff --git a/base/cpu.cc b/base/cpu.cc |
index dec98bd7a1e82b5e8162a163200de415a513dfde..66207a1e0b8b0539b99a72b85435936f847803bb 100644 |
--- a/base/cpu.cc |
+++ b/base/cpu.cc |
@@ -37,6 +37,7 @@ CPU::CPU() |
has_sse42_(false), |
has_avx_(false), |
has_avx_hardware_(false), |
+ has_aesni_(false), |
has_non_stop_time_stamp_counter_(false), |
cpu_vendor_("unknown") { |
Initialize(); |
@@ -131,6 +132,7 @@ void CPU::Initialize() { |
has_avx_hardware_ && |
(cpu_info[2] & 0x08000000) != 0 /* OSXSAVE */ && |
(_xgetbv(0) & 6) == 6 /* XSAVE enabled by kernel */; |
+ has_aesni_ = (cpu_info[2] & 0x02000000) != 0; |
} |
// Get the brand string of the cpu. |