]> sourceware.org Git - glibc.git/commitdiff
Avoid endian.h include in MIPS string functions.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 26 Apr 2012 19:23:08 +0000 (19:23 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 26 Apr 2012 19:23:08 +0000 (19:23 +0000)
ChangeLog.mips
sysdeps/mips/memcpy.S
sysdeps/mips/memset.S

index 0b4a4935dc9c4b59a6b194cf1ff857e1f2ad7b6b..3d3678bdb8c250c2180862f78e1ec441323223c5 100644 (file)
@@ -1,5 +1,9 @@
 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
 
+       * sysdeps/mips/memcpy.S: Don't include <endian.h>.  Test __MIPSEB
+       instead of __BYTE_ORDER.
+       * sysdeps/mips/memset.S: Likewise.
+
        * sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h (struct
        kernel_rt_sigframe): Use siginfo_t instead of struct siginfo.
 
index ec1b98a7213b249fd09f59b4c29bbd77b9e45698..753f67ca17c34efb730d527774e10e9df4f7cf42 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
 
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <endian.h>
 
 
 /* void *memcpy(void *s1, const void *s2, size_t n);  */
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
 #  define LWHI lwl             /* high part is left in big-endian      */
 #  define SWHI swl             /* high part is left in big-endian      */
 #  define LWLO lwr             /* low part is right in big-endian      */
index 1df79815c015ea89e706da21538c40613777ccdf..30a0ba44e78da201583cca2ac77ed8d0a074b26b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Hartvig Ekner <hartvige@mips.com>, 2002.
 
    <http://www.gnu.org/licenses/>.  */
 
 #include <sysdep.h>
-#include <endian.h>
 
 
 /* void *memset(void *s, int c, size_t n).  */
 
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
 # define SWHI  swl             /* high part is left in big-endian      */
 #else
 # define SWHI  swr             /* high part is right in little-endian  */
This page took 0.047608 seconds and 5 git commands to generate.