summaryrefslogtreecommitdiff
path: root/absl/crc/internal
diff options
context:
space:
mode:
Diffstat (limited to 'absl/crc/internal')
-rw-r--r--absl/crc/internal/cpu_detect.cc3
-rw-r--r--absl/crc/internal/cpu_detect.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/absl/crc/internal/cpu_detect.cc b/absl/crc/internal/cpu_detect.cc
index 8f668e3a..b3078137 100644
--- a/absl/crc/internal/cpu_detect.cc
+++ b/absl/crc/internal/cpu_detect.cc
@@ -246,6 +246,9 @@ CpuType GetCpuType() {
if (implementer == 0x41 && part_number == 0xd0c) {
return CpuType::kArmNeoverseN1;
}
+ if (implementer == 0xc0 && part_number == 0xac3) {
+ return CpuType::kAmpereSiryn;
+ }
}
return CpuType::kUnknown;
}
diff --git a/absl/crc/internal/cpu_detect.h b/absl/crc/internal/cpu_detect.h
index 945379f5..8d09dc27 100644
--- a/absl/crc/internal/cpu_detect.h
+++ b/absl/crc/internal/cpu_detect.h
@@ -39,6 +39,7 @@ enum class CpuType {
kIntelSandybridge,
kIntelWestmere,
kArmNeoverseN1,
+ kAmpereSiryn,
};
// Returns the type of host CPU this code is running on. Returns kUnknown if