summaryrefslogtreecommitdiff
path: root/src/math/arm/sqrt.c
AgeCommit message (Collapse)AuthorLines
2020-11-29arm fabs and sqrt: support single-precision-only fpu variantsJinliang Li-1/+1
2016-02-18improve macro logic for enabling arm math asmRich Felker-1/+1
in order to take advantage of the fpu in -mfloat-abi=softfp mode, the __VFP_FP__ (presence of vfp fpu) was checked instead of checking for __ARM_PCS_VFP (hardfloat EABI variant). however, the latter macro is the one that's actually specified by the ABI documents rather than being compiler-specific, and should also be checked in case __VFP_FP__ is not defined on some compilers or some configurations.
2016-01-20replace armhf math asm source files with inline asmRich Felker-0/+15
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.