aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sh/strlen.S
diff options
context:
space:
mode:
authorChung-Lin Tang <cltang@codesourcery.com>2012-04-24 21:32:11 +0800
committerThomas Schwinge <thomas@codesourcery.com>2012-04-25 14:39:28 +0800
commit3ce2865f93d42f4721d58088dd6ab1dac06ea85b (patch)
treed24746c80071fb3daad2215254878d6235fccb52 /sysdeps/sh/strlen.S
parentae186e9a85c5fcb9fae262687819c55d1ff03727 (diff)
downloadglibc-3ce2865f93d42f4721d58088dd6ab1dac06ea85b.zip
glibc-3ce2865f93d42f4721d58088dd6ab1dac06ea85b.tar.gz
glibc-3ce2865f93d42f4721d58088dd6ab1dac06ea85b.tar.bz2
SH: Replace <endian.h> usage with pre-processor macros.
Follow-up to f8887d0a5feda97244613135822b0439addc2b1f.
Diffstat (limited to 'sysdeps/sh/strlen.S')
-rw-r--r--sysdeps/sh/strlen.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/sh/strlen.S b/sysdeps/sh/strlen.S
index 93f7dd8..65aec76 100644
--- a/sysdeps/sh/strlen.S
+++ b/sysdeps/sh/strlen.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
@@ -17,7 +17,6 @@
<http://www.gnu.org/licenses/>. */
#include <sysdep.h>
-#include <endian.h>
/* size_t strlen (const char *s) */
@@ -58,7 +57,7 @@ ENTRY(strlen)
add #4, r2
add #-4, r2
-#if __BYTE_ORDER == __BIG_ENDIAN
+#ifdef __BIG_ENDIAN__
swap.b r1, r1
swap.w r1, r1
swap.b r1, r1