Re: implementation note for scapegoat tree



Ben Pfaff writes:
floor_log2 (size_t x)
{
return sizeof (size_t) * CHAR_BIT - 1 - count_leading_zeros (x);
}

Wrong if size_t has padding bits.

--
Regards,
Hallvard
.