Relates :
|
log2_int() should return 32 for all negative arguments: the intention is to find the most significant set bit in x. This does not work on 64-bit machines because the argument is sign extended to 64 bits before being converted to uintptr_t.
|