2 ms·
> These sound like they should be relatively straight forward to translate. I wonder why they didn't? Lack of time? Or perhaps because translating them means th
by monocasa 6y ago
> These sound like they should be relatively straight forward to translate. I wonder why they didn't? Lack of time? Or perhaps because translating them means that they don't run fast enough to be useful and the fallback paths are likely to run quicker.
Probably because ARM's NEON doesn't have 256bit registers, greatly complicating the implementation.
- NovemberWhiskey 6y agoI would guess that's right - AVX only came onto the scene in 2011 so most code will be able to fall back on an SSE implementation if AVX is unavailable, and presumably an AVX emulation which is a bad fit versus the hardware is actually slower than the SSE emulation. A quick search suggests a couple of people already running into this issue with the older generation Mac Pros that also don't support AVX but it doesn't seem that widespread.
- ac29 6y agoNEON doesn't, but SVE/SVE2 does: https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-instruction-emulator/resources/tutorials/sve https://developer.arm.com/tools-and-software/server-and-hpc/... Apple might not be using this in their first ARM Mac chips, but I wouldn't be surprised to see them use it in future chips.