microsoft / DirectXMath

DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps
https://walbourn.github.io/introducing-directxmath/
MIT License
1.52k stars 234 forks source link

XM_CACHE_LINE_SIZE value is incorrect for ARM/ARM64 #125

Closed walbourn closed 2 years ago

walbourn commented 3 years ago

The XM_CACHE_LINE_SIZE is defined as 64 bytes.

This works fine for x86 & x64, but for ARM/ARM64 the 'correct' value is 128. Since this only impacts prefetch, this doesn't impact correctness... just peformance

walbourn commented 2 years ago

Fixed in this commit