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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux