From: Roland McGrath Date: Wed, 25 Nov 1992 19:06:14 +0000 (+0000) Subject: Formerly alpha/__math.h.~2~ X-Git-Tag: glibc-2.16-ports-before-merge~4316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cda6c9cbeb33874017eaf38fc55ec45d2fac181d;p=thirdparty%2Fglibc.git Formerly alpha/__math.h.~2~ --- diff --git a/sysdeps/alpha/__math.h b/sysdeps/alpha/__math.h index e9893f5e4fd..70a2cbe542a 100644 --- a/sysdeps/alpha/__math.h +++ b/sysdeps/alpha/__math.h @@ -18,11 +18,17 @@ Cambridge, MA 02139, USA. */ #if defined (__GNUC__) && !defined (__NO_MATH_INLINES) -extern __inline +extern __inline double __copysign (double __x, double __y) { __asm ("cpys %1, %2, %0" : "=f" (__x) : "f" (__y), "f" (__x)); return __x; } +extern __inline double +fabs (double __x) +{ + return __copysign (0, __x); +} + #endif