Johannes Schindelin wrote: > > unsigned int log2_integer_approximate(unsigned int n){ [...] > That assumes that your floats are IEEE floats, right? For extra weird code, you could the standard 5-line bit order inverter and apply ffs(). ;-) -- Thomas Rast trast@{inf,student}.ethz.ch
Attachment:
signature.asc
Description: This is a digitally signed message part.