leetal / ios-cmake

A CMake toolchain file for iOS/iPadOS, visionOS, macOS, watchOS & tvOS C/C++/Obj-C++ development
BSD 3-Clause "New" or "Revised" License
1.89k stars 448 forks source link

ios with arm neon #199

Closed cvv-student closed 2 months ago

cvv-student commented 5 months ago

Thanks for your contribution. I have tried writing some NEON instructions in ios, and the compilation was successful. Now I want to port it to CXX for compilation. On Android, there is a specific instruction -DANDROID_ARM_NEON. What should I do on iOS?

leetal commented 2 months ago

The C++ ABI should support NEON out-of-the-box already, thus CLANG should have all definitions readiliy available. The header should as always be just arm_neon.h.

Closing since this topic is out of scope of this toolchain.