Skip to content

Commit 02e6fde

Browse files
committed
vertexcodec: Enable SIMD latency optimization for ARM64EC too
_M_ARM64 is not defined in ARM64EC builds but these target the same CPUs that have enough ILP to benefit from SIMD latency optimizations.
1 parent 9fcdf59 commit 02e6fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vertexcodec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
// When targeting AArch64/x64, optimize for latency to allow decoding of individual 16-byte groups to overlap
5858
// We don't do this for 32-bit systems because we need 64-bit math for this and this will hurt in-order CPUs
59-
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || defined(_M_ARM64)
59+
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
6060
#define SIMD_LATENCYOPT
6161
#endif
6262

0 commit comments

Comments
 (0)