From: Richard Henderson Date: Fri, 15 Jun 2012 19:06:44 +0000 (-0700) Subject: alpha: Use builtins for copysign X-Git-Tag: upstream/2.20~3636^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c8de68d5ffe794665a22cb537c87834e83f726;p=platform%2Fupstream%2Flinaro-glibc.git alpha: Use builtins for copysign --- diff --git a/sysdeps/alpha/fpu/s_copysign.c b/sysdeps/alpha/fpu/s_copysign.c index 51a5c64..b012027 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 2ccd52e..c304949 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)