From: Christian Couder Date: Thu, 19 Feb 2009 05:32:49 GMT Subject: Re: [PATCH] rev-list: estimate number of bisection step left Message-ID: <200902190632.50156.chriscool@tuxfamily.org> In-Reply-To: <200902190616.18747.chriscool@tuxfamily.org> Le jeudi 19 février 2009, Christian Couder a écrit : > > But on Linux, log2 and exp2 are defined in "math.h" and available with: > > _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99 > > and we must link with -lm, but I don't know about the other platforms. > > So I don't know what to do about them. Please advise. What I mean is that log2 is just something like: int log2 = 0; for (; n > 1; n >>= 1) log2++; and exp2 is just "1 << n", so I wonder if it's really necessary to add a lot of stuff in the Makefile for these 2 really short functions. Regards, Christian.