Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
2015-05-28 Wilco Dijkstra <wdijkstr@arm.com>
        * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
        * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
  • Loading branch information
Wilco Dijkstra committed May 28, 2015
1 parent d28311a commit be2e25b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2015-05-28 Wilco Dijkstra <wdijkstr@arm.com>

* sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
* sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.

2015-05-27 Marko Myllynen <myllynen@redhat.com>

* stdlib/monetary.h: Fix comment.
Expand Down
6 changes: 1 addition & 5 deletions sysdeps/ieee754/dbl-64/s_fabs.c
Expand Up @@ -19,15 +19,11 @@ static char rcsid[] = "$NetBSD: s_fabs.c,v 1.7 1995/05/10 20:47:13 jtc Exp $";
*/

#include <math.h>
#include <math_private.h>

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
Expand Down
6 changes: 1 addition & 5 deletions sysdeps/ieee754/flt-32/s_fabsf.c
Expand Up @@ -22,13 +22,9 @@ static char rcsid[] = "$NetBSD: s_fabsf.c,v 1.4 1995/05/10 20:47:15 jtc Exp $";
*/

#include <math.h>
#include <math_private.h>

float __fabsf(float x)
{
u_int32_t ix;
GET_FLOAT_WORD(ix,x);
SET_FLOAT_WORD(x,ix&0x7fffffff);
return x;
return __builtin_fabsf (x);
}
weak_alias (__fabsf, fabsf)

0 comments on commit be2e25b

Please sign in to comment.