Internal changes
PiperOrigin-RevId: 621907514
This commit is contained in:
committed by
Danila Kutenin
parent
0212163f6e
commit
e1e7329dc7
@@ -304,8 +304,8 @@ class Bits {
|
||||
void operator=(const Bits&);
|
||||
};
|
||||
|
||||
// In RISC-V, CLZ is supported by instructions from the ZBB bit-manipulation extension.
|
||||
#if HAVE_BUILTIN_CTZ
|
||||
|
||||
inline int Bits::Log2FloorNonZero(uint32_t n) {
|
||||
assert(n != 0);
|
||||
// (31 ^ x) is equivalent to (31 - x) for x in [0, 31]. An easy proof
|
||||
@@ -393,7 +393,6 @@ inline int Bits::FindLSBSetNonZero(uint32_t n) {
|
||||
|
||||
#endif // End portable versions.
|
||||
|
||||
// In RISC-V, CLZ is supported by instructions from the ZBB bit-manipulation extension.
|
||||
#if HAVE_BUILTIN_CTZ
|
||||
|
||||
inline int Bits::FindLSBSetNonZero64(uint64_t n) {
|
||||
|
||||
Reference in New Issue
Block a user