diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/atomic_arch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/atomic_arch.h b/arch/arm/atomic_arch.h index a121010f..c5c56f81 100644 --- a/arch/arm/atomic_arch.h +++ b/arch/arm/atomic_arch.h @@ -82,9 +82,13 @@ static inline void a_crash() : : : "memory"); } +#if __ARM_ARCH >= 5 + #define a_clz_32 a_clz_32 static inline int a_clz_32(uint32_t x) { __asm__ ("clz %0, %1" : "=r"(x) : "r"(x)); return x; } + +#endif |