From 8ed708a0a0f66d88677124b4bc79e80f61c1805f Mon Sep 17 00:00:00 2001 From: "Ng, David" Date: Thu, 20 Aug 2009 10:25:55 -0700 Subject: bionic: Update macro check for ARM CLZ instruction Modify the preprocessor condition to explicitly check if the ARM CLZ instruction is supported rather than for ARM_ARCH_5, as this instruction is also supported on newer ARM architectures. --- libc/arch-arm/bionic/ffs.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +#include /* * 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 -- cgit v1.1