+2012-04-28 Joseph Myers <joseph@codesourcery.com>
+
+ * sysdeps/mips/mips64/memcpy.S: Don't include <endian.h>. Test
+ __MIPSEB instead of __BYTE_ORDER.
+ * sysdeps/mips/mips64/memset.S: Likewise.
+
2012-04-27 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/configure.in (arch_minimum_kernel):
-/* 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.
Ported to mips3 n32/n64 by Alexandre Oliva <aoliva@redhat.com>
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-#include <endian.h>
#include <sys/asm.h>
This could probably be optimized further. */
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
# define LDHI ldl /* high part is left in big-endian */
# define SDHI sdl /* high part is left in big-endian */
# define LDLO ldr /* low part is right in big-endian */
-/* 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.
Ported to mips3 n32/n64 by Alexandre Oliva <aoliva@redhat.com>
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-#include <endian.h>
#include <sys/asm.h>
This could probably be optimized further. */
-#if __BYTE_ORDER == __BIG_ENDIAN
+#if __MIPSEB
# define SDHI sdl /* high part is left in big-endian */
#else
# define SDHI sdr /* high part is right in little-endian */