From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/math/arm/fabsf.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/math/arm/fabsf.c (limited to 'src/math/arm/fabsf.c') diff --git a/src/math/arm/fabsf.c b/src/math/arm/fabsf.c new file mode 100644 index 0000000..4a217c9 --- /dev/null +++ b/src/math/arm/fabsf.c @@ -0,0 +1,15 @@ +#include + +#if __ARM_PCS_VFP && !BROKEN_VFP_ASM + +float fabsf(float x) +{ + __asm__ ("vabs.f32 %0, %1" : "=t"(x) : "t"(x)); + return x; +} + +#else + +#include "../fabsf.c" + +#endif -- cgit v1.2.3