Alejandro Colomar <alx@kernel.org> writes: > -to @code{floor (log2 ( x ))}, except it's probably faster. > +to @code{floor (log2 (fabs (x)))}, except it's probably faster. Confirmed that the only change here is the addition of fabs() Confirmed that logb() accepts negative numbers LGTM Reviewed-by: DJ Delorie <dj@redhat.com>