diff options
author | Abseil Team <absl-team@google.com> | 2023-08-29 12:37:48 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-08-29 12:38:40 -0700 |
commit | 76930e30986f89868e765cdf26b698eb33bdbaa5 (patch) | |
tree | e2b07fc268e1869370c669518d302fd906e2d0ff /absl/crc/internal | |
parent | b13016e55a37757d39c458784ffe5e6be91da1e7 (diff) |
Add CPU detection for AMD Genoa and Ryzen 3000
PiperOrigin-RevId: 561108037
Change-Id: Idff65e288384cb55ce69f789db2d9374ae781d3d
Diffstat (limited to 'absl/crc/internal')
-rw-r--r-- | absl/crc/internal/cpu_detect.cc | 6 | ||||
-rw-r--r-- | absl/crc/internal/cpu_detect.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/absl/crc/internal/cpu_detect.cc b/absl/crc/internal/cpu_detect.cc index 83838085..8f668e3a 100644 --- a/absl/crc/internal/cpu_detect.cc +++ b/absl/crc/internal/cpu_detect.cc @@ -189,8 +189,14 @@ CpuType GetAmdCpuType() { break; case 0x19: switch (model_num) { + case 0x0: // Stepping Ax case 0x1: // Stepping B0 return CpuType::kAmdMilan; + case 0x10: // Stepping A0 + case 0x11: // Stepping B0 + return CpuType::kAmdGenoa; + case 0x44: // Stepping A0 + return CpuType::kAmdRyzenV3000; default: return CpuType::kUnknown; } diff --git a/absl/crc/internal/cpu_detect.h b/absl/crc/internal/cpu_detect.h index 6054f696..945379f5 100644 --- a/absl/crc/internal/cpu_detect.h +++ b/absl/crc/internal/cpu_detect.h @@ -29,6 +29,8 @@ enum class CpuType { kAmdRome, kAmdNaples, kAmdMilan, + kAmdGenoa, + kAmdRyzenV3000, kIntelCascadelakeXeon, kIntelSkylakeXeon, kIntelBroadwell, |