summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ilya Tokar <tokarip@google.com>2022-11-23 13:26:34 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-23 13:27:26 -0800
commite51b4ef779f58b89563bbf8778f05766ba110e10 (patch)
treec764e82c58f61518bff12bd31d7885e60d0001dd
parentc2e9ce1d07116432c64fbc2f4e0328d387ad6a1c (diff)
Fix AMD cpu detection.
Currently we take generic/default code-path on AMD due to misspelling. Mostly helps with crc+memcpy: name old speed new speed delta BM_Memcpy/1 156MB/s ± 1% 156MB/s ± 1% ~ (p=0.563 n=18+18) BM_Memcpy/100 6.38GB/s ± 1% 6.50GB/s ± 1% +1.89% (p=0.000 n=19+19) BM_Memcpy/10000 14.6GB/s ± 1% 21.7GB/s ± 0% +49.01% (p=0.000 n=20+19) BM_Memcpy/500000 13.5GB/s ± 1% 19.9GB/s ± 0% +47.35% (p=0.000 n=18+17) PiperOrigin-RevId: 490572650 Change-Id: Id7901321a23262c0ab62a2d82fae86cf42acf16d
-rw-r--r--absl/crc/internal/cpu_detect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/crc/internal/cpu_detect.cc b/absl/crc/internal/cpu_detect.cc
index 253c71fd..8b16d84a 100644
--- a/absl/crc/internal/cpu_detect.cc
+++ b/absl/crc/internal/cpu_detect.cc
@@ -64,7 +64,7 @@ Vendor GetVendor() {
vendor.append(reinterpret_cast<char*>(&cpu_info[2]), 4);
if (vendor == "GenuineIntel") {
return Vendor::kIntel;
- } else if (vendor == "AuthenticAmd") {
+ } else if (vendor == "AuthenticAMD") {
return Vendor::kAmd;
} else {
return Vendor::kUnknown;