replace armhf math asm source files with inline asm
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Jan 2016 01:09:57 +0000 (01:09 +0000)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Jan 2016 01:09:57 +0000 (01:09 +0000)
commite4355bd6bec89688e8c739cd7b4c76e675643dca
tree53b4f0f0d7c5ba7e636edee2e0a977afacde931f
parentcb1875eb4ff755fe6c5d1909f64fc4be1ee396ab
replace armhf math asm source files with inline asm

this makes it possible to inline them with LTO, and is the simplest
approach to eliminating the use of .sub files.

this also makes VFP sqrt available for use with the standard EABI
(plain arm rather than armhf subarch) when libc is built with
-mfloat-abi=softfp. the same could have been done for fabs, but when
the argument and return value are in integer registers, moving to VFP
registers and back is almost certainly more costly than a simple
integer operation.
16 files changed:
src/math/arm/fabs.c [new file with mode: 0644]
src/math/arm/fabsf.c [new file with mode: 0644]
src/math/arm/sqrt.c [new file with mode: 0644]
src/math/arm/sqrtf.c [new file with mode: 0644]
src/math/armebhf/fabs.sub [deleted file]
src/math/armebhf/fabsf.sub [deleted file]
src/math/armebhf/sqrt.sub [deleted file]
src/math/armebhf/sqrtf.sub [deleted file]
src/math/armhf/fabs.s [deleted file]
src/math/armhf/fabs.sub [deleted file]
src/math/armhf/fabsf.s [deleted file]
src/math/armhf/fabsf.sub [deleted file]
src/math/armhf/sqrt.s [deleted file]
src/math/armhf/sqrt.sub [deleted file]
src/math/armhf/sqrtf.s [deleted file]
src/math/armhf/sqrtf.sub [deleted file]