diff options
author | Benoit Jacob <benoitjacob@google.com> | 2020-06-18 23:02:56 +0300 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2020-06-18 23:03:24 +0300 |
commit | 1014033d2c1a9c80fc79ecdb2fc2da03450b3645 (patch) | |
tree | 4d64490b6afb7376ca852e14079ab818a07ebf57 /ruy/path.h | |
parent | 8dd913669fbd4707367ca6c2c656711df5b992f8 (diff) |
Shuffle Path values a bit. kStandardCpp=1, other values < 0x10 will be used for kStandardCpp variants for internal testing purposes, SIMD paths start at 0x10.
I contemplated reserving a few values for possible future paths to minimize shuffling in the future, but it's hard to predict what future paths people will work on.
PiperOrigin-RevId: 317163972
Diffstat (limited to 'ruy/path.h')
-rw-r--r-- | ruy/path.h | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -59,25 +59,21 @@ enum class Path : std::uint8_t { // // This is intended for testing/development, and as a fallback for when // the SIMD ISA extensions required by other paths are unavailable at runtime. - kStandardCpp = 0x2, + kStandardCpp = 0x1, #if RUY_PLATFORM_ARM - // ARM architectures. - // // Optimized path using a widely available subset of ARM NEON instructions. - kNeon = 0x4, + kNeon = 0x10, // Optimized path making use of ARM NEON dot product instructions that are // available on newer ARM cores. - kNeonDotprod = 0x8, + kNeonDotprod = 0x20, #endif // RUY_PLATFORM_ARM #if RUY_PLATFORM_X86 - // x86 architectures. - // // Optimized for AVX2. - kAvx2 = 0x8, + kAvx2 = 0x10, // Optimized for AVX-512. - kAvx512 = 0x10, + kAvx512 = 0x20, #endif // RUY_PLATFORM_X86 }; |