Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSE/neon support for Apple Silicon

I'm trying to get my app ready for Apple Silicon. My app currently uses SSE instructions for Mac and equivalent Neon implementation for iOS.

Apple porting guide suggests moving to the Accelerate framework, which I'm not ready to do right now.

Is there a way to keep using SSE/neon (based on the architecture) in the universal binary for Apple silicon? I can see that arm64_neon.h is not available for Apple Silicon.

like image 850
newuser Avatar asked Jan 19 '26 00:01

newuser


1 Answers

NEON intrinsics are available via the arm_neon.h header, and are standard ARM C Language Extensions intrinsics. arm64_neon.h is a MSVC specific header name (and since a few versions of MSVC, you can use the standard header name arm_neon.h for both 32 and 64 bit ARM even there, like other compilers).

like image 62
mstorsjo Avatar answered Jan 21 '26 20:01

mstorsjo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!