[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: log2
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 23 Apr 2003 13:38:47 -0300
> The code at the end of this message compiles into 8 to 10 i386
> instructions (not counting function entry and exit), using lcc
> and gcc; gcc cheerfully inlines it.
At least in my machine (Linux/Pentium, gcc 2.96) that code was almost
30% slower than the current version (0.9s x 0.7s to add all logs from 0
to 100000000) :-(
-- Roberto