diff options
author | Richard Henderson <rth@twiddle.net> | 2012-06-15 12:06:44 -0700 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2012-06-15 12:06:44 -0700 |
commit | 45c8de68d5ffe794665a22cb537c87834e83f726 (patch) | |
tree | e60ee4cef94e4634f00310228903d9ca234d702e | |
parent | ef4239ed09dd9f242de9d02f8629f1248b8e0bfa (diff) | |
download | glibc-45c8de68d5ffe794665a22cb537c87834e83f726.tar.gz glibc-45c8de68d5ffe794665a22cb537c87834e83f726.tar.xz glibc-45c8de68d5ffe794665a22cb537c87834e83f726.zip |
alpha: Use builtins for copysign
-rw-r--r-- | sysdeps/alpha/fpu/s_copysign.c | 5 | ||||
-rw-r--r-- | sysdeps/alpha/fpu/s_copysignf.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/alpha/fpu/s_copysign.c b/sysdeps/alpha/fpu/s_copysign.c index 51a5c645a1..b01202772b 100644 --- a/sysdeps/alpha/fpu/s_copysign.c +++ b/sysdeps/alpha/fpu/s_copysign.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2006, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson. @@ -22,8 +22,7 @@ double __copysign (double x, double y) { - __asm ("cpys %1, %2, %0" : "=f" (x) : "f" (y), "f" (x)); - return x; + return __builtin_copysign (x, y); } weak_alias (__copysign, copysign) diff --git a/sysdeps/alpha/fpu/s_copysignf.c b/sysdeps/alpha/fpu/s_copysignf.c index 2ccd52e0b8..c304949899 100644 --- a/sysdeps/alpha/fpu/s_copysignf.c +++ b/sysdeps/alpha/fpu/s_copysignf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson. @@ -21,8 +21,7 @@ float __copysignf (float x, float y) { - __asm ("cpys %1, %2, %0" : "=f" (x) : "f" (y), "f" (x)); - return x; + return __builtin_copysignf (x, y); } weak_alias (__copysignf, copysignf) |