GCC内置了__builtin_clzll
函数,根据https://www.geeksforgeeks.org/builtin-functions-gcc-compiler/的描述:
__builtin_clz(x): This function is used to count the leading zeros of the integer. Note : clz = count leading zero’s
我认为LLVM也有这些函数,而Rust是使用LLVM编译的。有没有办法在Rust中使用这个函数?
std::intrinsics
在夜间版本中使用。 - Masklinn