Re:Apple Hires Key Chip Designer From ARM as Own Efforts Ram...
by johncolanduoni on Thursday June 27, 2019 @05:24AM
(#20292898)
It’s been a while since there was an iOS device without NEON support. Unless you’re supporting something like iOS 4 (which is a whole other headache) you can use the SIMD instructions unconditionally. This is the armv6/armv7 distinction you can find in the XCode settings. For 64-bit slices of your app, you’re in even safer territory.
Re:Apple Hires Key Chip Designer From ARM as Own Efforts Ram...
by nightfly on Thursday June 27, 2019 @04:05AM
(#20292541)
Can you try and run SIMD instructions and catch the failure if they aren't available?
Re:Apple Hires Key Chip Designer From ARM as Own Efforts Ram...
by stephencanon on Thursday June 27, 2019 @07:45AM
(#20293539)
arm64 CPUs support NEON unconditionally. arm64e implies the armv8.2 and armv8.3 extensions (but not SVE), notably half-precision arithmetic and interleaved complex ops. You generally should not need to do runtime selection.
So if you want to write code that uses SIMD instructions depending on whether they are available, you need to use Apple math libraries, which is super messed up.