Mail Archives: djgpp/1997/05/14/15:52:18
Robert Blum wrote:
>
> jon <quacci AT vera DOT com> wrote
> > I'm interested in understanding what can be done to speed up straight
> > C code. In the specific thing I am writing, I've already done the
> > obvious things, like switched most calcs from FP to integer, using bit
> > shifting wherever possible for multiplying and dividing, etc.
>
> Duh.. That must have been from a very old source of information. On
> the Pentium (I assume you use one), FP is even faster than integer
> performance.
actually, that has been so since the 486. michael abrash wrote about his
experience in dr dobbs some time ago. anyway, the moreal of the story is
"measure before you optimize".
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -