Re: [PATCH] rev-list: estimate number of bisection step left
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Feb 17, 2009, 15:39 UTC
- Message-ID
- <200902171639.35926.trast@student.ethz.ch>
- In-Reply-To
- <alpine.DEB.1.00.0902171630130.6185@intel-tinevez-2-302>
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