From c24a9923863fc29af4a5249727fe800224fc3c44 Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Mon, 6 Jan 2020 11:36:18 +0300 Subject: math: move x87-family fabs functions to C with inline asm --- src/math/i386/fabsl.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/math/i386/fabsl.c (limited to 'src/math/i386/fabsl.c') diff --git a/src/math/i386/fabsl.c b/src/math/i386/fabsl.c new file mode 100644 index 00000000..cc1c9ed9 --- /dev/null +++ b/src/math/i386/fabsl.c @@ -0,0 +1,7 @@ +#include + +long double fabsl(long double x) +{ + __asm__ ("fabs" : "+t"(x)); + return x; +} -- cgit v1.2.1