aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/arm/string/strlen.S
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2021-01-28 10:33:40 +0000
committerAndrew Turner <andrew@FreeBSD.org>2021-01-28 10:33:40 +0000
commite09c8c9ad90dabe0d627c979e27e4ca3c234d3ab (patch)
tree627b753c572eb052be4e4c4a0b76bca80e208142 /lib/libc/arm/string/strlen.S
parentf59810e34bae867059163cb9f651e074043fcec8 (diff)
downloadsrc-e09c8c9ad90dabe0d627c979e27e4ca3c234d3ab.tar.gz
src-e09c8c9ad90dabe0d627c979e27e4ca3c234d3ab.zip
Remove leftover big-endian arm support
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D28312
Diffstat (limited to 'lib/libc/arm/string/strlen.S')
-rw-r--r--lib/libc/arm/string/strlen.S16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/libc/arm/string/strlen.S b/lib/libc/arm/string/strlen.S
index 240fa7d9e85f..fdfd8643ae16 100644
--- a/lib/libc/arm/string/strlen.S
+++ b/lib/libc/arm/string/strlen.S
@@ -47,36 +47,20 @@ ENTRY(strlen)
.Loop:
ldr r2, [r0]
add r0, r0, #4
-#ifndef __ARMEB__
ands r3, r2, #0x000000ff
-#else
- ands r3, r2, #0xff000000
-#endif
it ne
addne r1, r1, #1
.Ldo_3:
itt ne
-#ifndef __ARMEB__
andsne r3, r2, #0x0000ff00
-#else
- andsne r3, r2, #0x00ff0000
-#endif
addne r1, r1, #1
.Ldo_2:
itt ne
-#ifndef __ARMEB__
andsne r3, r2, #0x00ff0000
-#else
- andsne r3, r2, #0x0000ff00
-#endif
addne r1, r1, #1
.Ldo_1:
ittt ne
-#ifndef __ARMEB__
andsne r3, r2, #0xff000000
-#else
- andsne r3, r2, #0x000000ff
-#endif
addne r1, r1, #1
bne .Loop
.Lexit: