Disable powf/log2?f/exp2?f optimization for single-precision Arm FPU
Thomas Preudhomme
thomas.preudhomme@foss.arm.com
Tue Jan 23 10:43:00 GMT 2018
Hi,
New optimized powf, logf, log2f, expf and exp2f yield worse performance
on Arm targets with only single precision instructions because the double
precision arithmetic is then implemented via softfloat routines. This
patch uses the old implementation when double precision instructions are
not available on Arm targets.
Testing: Built newlib with GCC's rmprofile Arm multilibs and compared
before/after -> only the above functions are changed and calls to them
(name change from logf to __ieee754_logf and similar). Testing the
changed function on a panel of values yields the same result before the
original patches to improve them and after this one. Double checking the
performance by looping the same panel of values being tested on Arm
Cortex-M4 does show the performance regression is fixed.
Patch in git format-patch format (has anyone a better way of saying this?) attached.
Best regards,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Disable-powf-log2-f-exp2-f-optimization-for-single-p.patch
Type: text/x-patch
Size: 1586 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180123/d05a3f14/attachment.bin>
More information about the Newlib
mailing list