문제

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

도움이 되었습니까?

해결책

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!).

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top