Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: [PATCH] rev-list: estimate number of bisection step left

From: Christian Couder <hidden>
Date: 2016-06-15 22:46:14

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help