How do I Perform Integer SIMD operations on the iPad A4 Processor?

跟風遠走 提交于 2019-12-06 05:07:45

问题


I feel the need for speed. Double for loops are killing my iPad apps performance. I need SIMD. How do I perform integer SIMD operations on the iPad A4 processor?

Thanks,
Doug


回答1:


To get the fastest speed, you will have to write ARM Assembly language code that uses NEON SIMD operations, because the C compilers generally don't make very good SIMD code, so hand-written Assembly will make a big difference. I have a brief intro here: http://www.shervinemami.co.cc/iphoneAssembly.html

Note that the iPad A4 uses the ARMv7-A CPU, so the reference manual for the NEON SIMD instructions is at: http://infocenter.arm.com/help/topic/com.arm.doc.ddi0406b/index.html (but its 2000 pages long and requires the understanding of Assembly code and perhaps SIMD in general!).




回答2:


The instruction set is NEON, intrinsics reference

I've never been able to find good documentation on what they all actually are. But you pick it up pretty quickly if you've had any exposure to SSE



来源:https://stackoverflow.com/questions/3847210/how-do-i-perform-integer-simd-operations-on-the-ipad-a4-processor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!