diff options
Diffstat (limited to 'include/common')
-rw-r--r-- | include/common/arch/s390/asm/bitops.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/common/arch/s390/asm/bitops.h b/include/common/arch/s390/asm/bitops.h index 13d832380..648d898d1 100644 --- a/include/common/arch/s390/asm/bitops.h +++ b/include/common/arch/s390/asm/bitops.h @@ -107,13 +107,7 @@ static inline unsigned char __flogr(unsigned long word) } return bit; } else { - register unsigned long bit asm("4") = word; - register unsigned long out asm("5"); - - asm volatile( - " flogr %[bit],%[bit]\n" - : [bit] "+d" (bit), [out] "=d" (out) : : "cc"); - return bit; + return __builtin_clzl(word); } } |