diff options
-rw-r--r-- | libc/arch-arm/bionic/ffs.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/arch-arm/bionic/ffs.S b/libc/arch-arm/bionic/ffs.S index f11141c..27aa9b5 100644 --- a/libc/arch-arm/bionic/ffs.S +++ b/libc/arch-arm/bionic/ffs.S @@ -29,6 +29,7 @@ */ #include <machine/asm.h> +#include <machine/cpu-features.h> /* * ffs - find first set bit, this algorithm isolates the first set @@ -47,7 +48,7 @@ ENTRY(ffs) /* Standard trick to isolate bottom bit in r0 or 0 if r0 = 0 on entry */ rsb r1, r0, #0 ands r0, r0, r1 -#ifndef __ARM_ARCH_5__ +#if __ARM_HAVE_CLZ != 1 /* * now r0 has at most one set bit, call this X * if X = 0, all further instructions are skipped |