]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/sparc/sparc64/fpu/s_copysign.S
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / sparc / sparc64 / fpu / s_copysign.S
index 571f57cbdce9861eecc5e00e6242ea9524ce5253..8192416ecfe3211911bf25494cd2ac72323598cf 100644 (file)
@@ -1,5 +1,5 @@
 /* copysign function, sparc64 version.
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright (C) 2012-2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by David S. Miller <davem@davemloft.net>, 2012.
 
@@ -20,9 +20,8 @@
 #include <sysdep.h>
 
 ENTRY (__copysign)
-       sethi   %hi(0x80000000), %g1
-       st      %g1, [%sp + STACK_BIAS + 128]
-       ld      [%sp + STACK_BIAS + 128], %f7
+       fzeros  %f7
+       fnegs   %f7, %f7
        fands   %f2, %f7, %f9
        fandnot2s %f0, %f7, %f0
        retl