summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2016-09-18 10:22:10 +0000
committerkettenis <kettenis@openbsd.org>2016-09-18 10:22:10 +0000
commitf2133c794d40a69ff90521845af4024bbe945f67 (patch)
tree10bdac9125035fde62e3e0468e4f297debaf76cf /lib/libc
parentminor tweaks; (diff)
downloadwireguard-openbsd-f2133c794d40a69ff90521845af4024bbe945f67.tar.xz
wireguard-openbsd-f2133c794d40a69ff90521845af4024bbe945f67.zip
Use unified syntax such that this compiles with both gcc and clang.
ok jsg@
Diffstat (limited to 'lib/libc')
-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)