git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Christian Couder <chriscool@tuxfamily.org>
Date
Feb 19, 2009, 05:32 UTC
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 :
Show 8 quoted lines
>
> 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.

Previous: Christian CouderNext: John Tapsell
Message 5 of 13 in “rev-list: estimate number of bisection step left”
  1. rev-list: estimate number of bisection step leftChristian Couder, Feb 17, 2009
  2. Junio C HamanoFeb 17, 2009
  3. Christian CouderFeb 19, 2009
  4. Christian CouderFeb 19, 2009
  5. Christian CouderFeb 19, 2009
  6. John TapsellFeb 19, 2009
  7. Christian CouderFeb 19, 2009
  8. Johannes SchindelinFeb 17, 2009
  9. John TapsellFeb 17, 2009
  10. Johannes SchindelinFeb 17, 2009
  11. John TapsellFeb 17, 2009
  12. Johannes SchindelinFeb 17, 2009
  13. Thomas RastFeb 17, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.