From cda6c9cbeb33874017eaf38fc55ec45d2fac181d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 25 Nov 1992 19:06:14 +0000 Subject: [PATCH] Formerly alpha/__math.h.~2~ --- sysdeps/alpha/__math.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.47.3