From be2e25bbd78f9fdf27bed254d02915d019c5b363 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 28 May 2015 11:42:55 +0100 Subject: 2015-05-28 Wilco Dijkstra * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs. * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise. --- sysdeps/ieee754/dbl-64/s_fabs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'sysdeps/ieee754/dbl-64') diff --git a/sysdeps/ieee754/dbl-64/s_fabs.c b/sysdeps/ieee754/dbl-64/s_fabs.c index c82c421..73c09a2 100644 --- a/sysdeps/ieee754/dbl-64/s_fabs.c +++ b/sysdeps/ieee754/dbl-64/s_fabs.c @@ -19,15 +19,11 @@ static char rcsid[] = "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $"; */ #include -#include double __fabs (double x) { - u_int32_t high; - GET_HIGH_WORD (high, x); - SET_HIGH_WORD (x, high & 0x7fffffff); - return x; + return __builtin_fabs (x); } weak_alias (__fabs, fabs) #ifdef NO_LONG_DOUBLE -- cgit v1.1