Replace with the other msbIdx version found in vespalib::Optimized::msbIdx.
@@ -57,9 +57,7 @@ typedef int SizeClassT;
inline int msbIdx(uint64_t v) {
- int64_t result;
- __asm __volatile("bsrq %0,%0" : "=r" (result) : "0" (v));
- return result;
+ return v ? 63 - __builtin_clzl(v) : 0;
}
template <size_t MinClassSizeC>
