How do I use ARM NEON intrinsics?

2019-09-01 08:55发布

问题:

Basically I'm developing for an iPhone and I compile fine on the Mac, however I want to use NEON intrinsics to accelerate my vector math. I have experience with SSE and AVX, however I have no idea where to get the NEON header with the intrinsics from. I found only one on the net and it only worked for GCC, all the functions had some __builtin keywords behind them. I'm compiling on the xcode llvm 5.0 compiler. I know I can use ARM assembly, however I'd like to use the intrinsic functions instead, since they make it easier. I've seen some in DirectXMath, encapsulated in vector objects, however they also had an #include , however there was no arm_neon.h anywhere.

标签: c++ xcode arm neon