]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/x86_64/fpu/s_copysign.S
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / sysdeps / x86_64 / fpu / s_copysign.S
index f1ebcf8bf19ab646dede1bdb54b1a6418fde2e1c..81c3c434e421e3835b7e880a7bf0abc04877241b 100644 (file)
@@ -1,5 +1,5 @@
 /* copy sign, double version.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@suse.de>, 2002.
 
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 #include <machine/asm.h>
+#include <libm-alias-double.h>
 
-#ifdef __ELF__
-       .section .rodata
-#else
-       .text
-#endif
+       .section .rodata.cst16,"aM",@progbits,16
 
        .align ALIGNARG(4)
-       ASM_TYPE_DIRECTIVE(signmask,@object)
+       .type signmask,@object
 signmask:
        .byte 0, 0, 0, 0, 0, 0, 0, 0x80
        .byte 0, 0, 0, 0, 0, 0, 0, 0
+       ASM_SIZE_DIRECTIVE(signmask)
+       .type othermask,@object
 othermask:
        .byte 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f
        .byte 0, 0, 0, 0, 0, 0, 0, 0
@@ -42,6 +40,7 @@ othermask:
 #define MO(op) op
 #endif
 
+       .text
 ENTRY(__copysign)
        andpd MO(othermask),%xmm0
        andpd MO(signmask),%xmm1
@@ -49,4 +48,4 @@ ENTRY(__copysign)
        ret
 END (__copysign)
 
-weak_alias (__copysign, copysign)
+libm_alias_double (__copysign, copysign)