Commit b13016e5 by Abseil Team Committed by Copybara-Service

Use fallback engine for as the non-temporal engine for unknown CPU types

Using the non-temporal AVX engine for unknown CPU types looks like a mistake to
me, and the default built into the switch case is to use the fallback engine. I
don't think this is causing issues now, but it might once we add ARM support.

PiperOrigin-RevId: 561097994
Change-Id: I7f0edd447017c09acd49e4ea11476e32740d630a
parent ded2ec07
...@@ -348,7 +348,6 @@ CrcMemcpy::ArchSpecificEngines CrcMemcpy::GetArchSpecificEngines() { ...@@ -348,7 +348,6 @@ CrcMemcpy::ArchSpecificEngines CrcMemcpy::GetArchSpecificEngines() {
// Get the underlying architecture. // Get the underlying architecture.
CpuType cpu_type = GetCpuType(); CpuType cpu_type = GetCpuType();
switch (cpu_type) { switch (cpu_type) {
case CpuType::kUnknown:
case CpuType::kAmdRome: case CpuType::kAmdRome:
case CpuType::kAmdNaples: case CpuType::kAmdNaples:
case CpuType::kIntelCascadelakeXeon: case CpuType::kIntelCascadelakeXeon:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment