问题描述
我觉得需要速度。 Double for循环正在扼杀我的iPad应用程序性能。我需要SIMD。如何在iPad A4处理器上执行整数SIMD操作?
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?
谢谢,
Doug
Thanks,
Doug
推荐答案
要获得最快的速度,您必须编写使用NEON SIMD操作的ARM汇编语言代码,因为C编译器通常不会制作非常好的SIMD代码,所以请写作大会将产生重大影响。我在这里有一个简短的介绍:
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
请注意,iPad A4使用ARMv7-A CPU,因此NEON SIMD指令的参考手册位于:
(但它长达2000页,需要理解汇编代码,也许需要SIMD!)。
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!).
这篇关于如何在iPad A4处理器上执行整数SIMD操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!