Skip to content

Commit

Permalink
alpha: Use builtins for copysign
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Henderson committed Jun 15, 2012
1 parent ef4239e commit 45c8de6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions sysdeps/alpha/fpu/s_copysign.c
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)
Expand Down
5 changes: 2 additions & 3 deletions sysdeps/alpha/fpu/s_copysignf.c
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)

0 comments on commit 45c8de6

Please sign in to comment.