summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-09-18 10:22:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-09-18 10:22:11 +0000
commit2b326b3fab47543e5d551fbb070d5f3bd921585b (patch)
tree02fabca127e98590ca3810624339eb2f82c63611 /lib
parent2b0c3cab03cfb7e5f16687dfa96932c25a887fa7 (diff)
Use unified syntax such that this compiles with both gcc and clang.
ok jsg@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/arm/string/ffs.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/arch/arm/string/ffs.S b/lib/libc/arch/arm/string/ffs.S
index 2091b32b6df..df3b5d621b1 100644
--- a/lib/libc/arch/arm/string/ffs.S
+++ b/lib/libc/arch/arm/string/ffs.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs.S,v 1.5 2016/08/06 19:16:09 guenther Exp $ */
+/* $OpenBSD: ffs.S,v 1.6 2016/09/18 10:22:10 kettenis Exp $ */
/* $NetBSD: ffs.S,v 1.5 2003/04/05 23:08:52 bjh21 Exp $ */
/*
* Copyright (c) 2001 Christopher Gilbert
@@ -44,6 +44,8 @@
* 16 Feb 1994.
*/
+ .syntax unified
+
ENTRY(ffs)
/* Standard trick to isolate bottom bit in r0 or 0 if r0 = 0 on entry */
rsb r1, r0, #0
@@ -58,7 +60,7 @@ ENTRY(ffs)
rsbne r0, r0, r0, lsl #16 /* r0 = X * 0x0450fbaf */
/* now lookup in table indexed on top 6 bits of r0 */
- ldrneb r0, [ r2, r0, lsr #26 ]
+ ldrbne r0, [ r2, r0, lsr #26 ]
mov pc, lr
END_WEAK(ffs)