diff options
Diffstat (limited to 'lib/sbi/sbi_bitops.c')
-rw-r--r-- | lib/sbi/sbi_bitops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/sbi/sbi_bitops.c b/lib/sbi/sbi_bitops.c index de9d045..becea91 100644 --- a/lib/sbi/sbi_bitops.c +++ b/lib/sbi/sbi_bitops.c @@ -39,7 +39,7 @@ unsigned long find_first_bit(const unsigned long *addr, if (tmp == 0UL) /* Are any bits set? */ return result + size; /* Nope. */ found: - return result + __ffs(tmp); + return result + sbi_ffs(tmp); } /** @@ -69,7 +69,7 @@ unsigned long find_first_zero_bit(const unsigned long *addr, if (tmp == ~0UL) /* Are any bits zero? */ return result + size; /* Nope. */ found: - return result + ffz(tmp); + return result + sbi_ffz(tmp); } /** @@ -100,7 +100,7 @@ unsigned long find_last_bit(const unsigned long *addr, tmp = addr[--words]; if (tmp) { found: - return words * BITS_PER_LONG + __fls(tmp); + return words * BITS_PER_LONG + sbi_fls(tmp); } } @@ -150,7 +150,7 @@ found_first: if (tmp == 0UL) /* Are any bits set? */ return result + size; /* Nope. */ found_middle: - return result + __ffs(tmp); + return result + sbi_ffs(tmp); } /** @@ -196,5 +196,5 @@ found_first: if (tmp == ~0UL) /* Are any bits zero? */ return result + size; /* Nope. */ found_middle: - return result + ffz(tmp); + return result + sbi_ffz(tmp); } |