diff options
Diffstat (limited to 'arch/mips/include/asm/bitops.h')
-rw-r--r-- | arch/mips/include/asm/bitops.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index bac4a960b24c..b1e9e97a9c78 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h | |||
@@ -567,7 +567,7 @@ static inline unsigned long __fls(unsigned long word) | |||
567 | int num; | 567 | int num; |
568 | 568 | ||
569 | if (BITS_PER_LONG == 32 && | 569 | if (BITS_PER_LONG == 32 && |
570 | __builtin_constant_p(cpu_has_mips_r) && cpu_has_mips_r) { | 570 | __builtin_constant_p(cpu_has_clo_clz) && cpu_has_clo_clz) { |
571 | __asm__( | 571 | __asm__( |
572 | " .set push \n" | 572 | " .set push \n" |
573 | " .set mips32 \n" | 573 | " .set mips32 \n" |
@@ -644,7 +644,7 @@ static inline int fls(int x) | |||
644 | { | 644 | { |
645 | int r; | 645 | int r; |
646 | 646 | ||
647 | if (__builtin_constant_p(cpu_has_mips_r) && cpu_has_mips_r) { | 647 | if (__builtin_constant_p(cpu_has_clo_clz) && cpu_has_clo_clz) { |
648 | __asm__("clz %0, %1" : "=r" (x) : "r" (x)); | 648 | __asm__("clz %0, %1" : "=r" (x) : "r" (x)); |
649 | 649 | ||
650 | return 32 - x; | 650 | return 32 - x; |