Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - ARM v7: Poor performance for floating point math: Page 1 of 2 (2 Items)
   
ARM v7: Poor performance for floating point math  
Hi,

I'm running my QNX system on arm cortex A8 with neon, and experiencing that the floating point operations using the math
 library are very slow. Standard double precision floating point operations are about 2,6 times slower than on my PC (I 
assume this is as expected), while the math operations are more than 300 times slower.

I'm compiling my program for ARM with the following options:
-O3 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -funsafe-math-optimizations  -ffast-math

I have tried to replace the libm.so.2 with the libm-vfp.so.2 as recommended in the QNX help system, but this made no 
difference to the execution time.

My test-program is attaced.

Any suggestions on how to improve the performance?

Thanks,
Torstein Berge
Attachment: Text FloatingPointTest.c 2.92 KB