From: Thomas Rast Date: Tue, 17 Feb 2009 15:39:33 GMT Subject: Re: [PATCH] rev-list: estimate number of bisection step left Message-ID: <200902171639.35926.trast@student.ethz.ch> In-Reply-To: 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