summaryrefslogtreecommitdiff
path: root/sysdeps/mips
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-26 19:23:08 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-26 19:23:08 +0000
commit8b2b11271ea68567fbc3262691583bea753d44e3 (patch)
treee0808ad380f6993cf66a2f6f18714b66f74b2565 /sysdeps/mips
parent8dc2363998e2c13c6e36626fc47844ced976ba4e (diff)
downloadglibc-8b2b11271ea68567fbc3262691583bea753d44e3.tar.gz
Avoid endian.h include in MIPS string functions.
Diffstat (limited to 'sysdeps/mips')
-rw-r--r--sysdeps/mips/memcpy.S5
-rw-r--r--sysdeps/mips/memset.S5
2 files changed, 4 insertions, 6 deletions
diff --git a/sysdeps/mips/memcpy.S b/sysdeps/mips/memcpy.S
index ec1b98a721..753f67ca17 100644
--- a/sysdeps/mips/memcpy.S
+++ b/sysdeps/mips/memcpy.S
@@ -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.
@@ -17,12 +17,11 @@
<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 */
diff --git a/sysdeps/mips/memset.S b/sysdeps/mips/memset.S
index 1df79815c0..30a0ba44e7 100644
--- a/sysdeps/mips/memset.S
+++ b/sysdeps/mips/memset.S
@@ -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.
@@ -17,12 +17,11 @@
<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 */