From e4355bd6bec89688e8c739cd7b4c76e675643dca Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 20 Jan 2016 01:09:57 +0000 Subject: 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. --- src/math/armhf/fabs.s | 8 -------- src/math/armhf/fabs.sub | 1 - src/math/armhf/fabsf.s | 8 -------- src/math/armhf/fabsf.sub | 1 - src/math/armhf/sqrt.s | 8 -------- src/math/armhf/sqrt.sub | 1 - src/math/armhf/sqrtf.s | 8 -------- src/math/armhf/sqrtf.sub | 1 - 8 files changed, 36 deletions(-) delete mode 100644 src/math/armhf/fabs.s delete mode 100644 src/math/armhf/fabs.sub delete mode 100644 src/math/armhf/fabsf.s delete mode 100644 src/math/armhf/fabsf.sub delete mode 100644 src/math/armhf/sqrt.s delete mode 100644 src/math/armhf/sqrt.sub delete mode 100644 src/math/armhf/sqrtf.s delete mode 100644 src/math/armhf/sqrtf.sub (limited to 'src/math/armhf') diff --git a/src/math/armhf/fabs.s b/src/math/armhf/fabs.s deleted file mode 100644 index 0eb458d3..00000000 --- a/src/math/armhf/fabs.s +++ /dev/null @@ -1,8 +0,0 @@ -.syntax unified -.fpu vfp -.text -.global fabs -.type fabs,%function -fabs: - vabs.f64 d0, d0 - bx lr diff --git a/src/math/armhf/fabs.sub b/src/math/armhf/fabs.sub deleted file mode 100644 index 99e87406..00000000 --- a/src/math/armhf/fabs.sub +++ /dev/null @@ -1 +0,0 @@ -fabs.s diff --git a/src/math/armhf/fabsf.s b/src/math/armhf/fabsf.s deleted file mode 100644 index da3809bb..00000000 --- a/src/math/armhf/fabsf.s +++ /dev/null @@ -1,8 +0,0 @@ -.syntax unified -.fpu vfp -.text -.global fabsf -.type fabsf,%function -fabsf: - vabs.f32 s0, s0 - bx lr diff --git a/src/math/armhf/fabsf.sub b/src/math/armhf/fabsf.sub deleted file mode 100644 index c04638ae..00000000 --- a/src/math/armhf/fabsf.sub +++ /dev/null @@ -1 +0,0 @@ -fabsf.s diff --git a/src/math/armhf/sqrt.s b/src/math/armhf/sqrt.s deleted file mode 100644 index e38f060d..00000000 --- a/src/math/armhf/sqrt.s +++ /dev/null @@ -1,8 +0,0 @@ -.syntax unified -.fpu vfp -.text -.global sqrt -.type sqrt,%function -sqrt: - vsqrt.f64 d0, d0 - bx lr diff --git a/src/math/armhf/sqrt.sub b/src/math/armhf/sqrt.sub deleted file mode 100644 index 25de7cfa..00000000 --- a/src/math/armhf/sqrt.sub +++ /dev/null @@ -1 +0,0 @@ -sqrt.s diff --git a/src/math/armhf/sqrtf.s b/src/math/armhf/sqrtf.s deleted file mode 100644 index 38c7ee89..00000000 --- a/src/math/armhf/sqrtf.s +++ /dev/null @@ -1,8 +0,0 @@ -.syntax unified -.fpu vfp -.text -.global sqrtf -.type sqrtf,%function -sqrtf: - vsqrt.f32 s0, s0 - bx lr diff --git a/src/math/armhf/sqrtf.sub b/src/math/armhf/sqrtf.sub deleted file mode 100644 index 3bcbac87..00000000 --- a/src/math/armhf/sqrtf.sub +++ /dev/null @@ -1 +0,0 @@ -sqrtf.s -- cgit v1.2.1