lkml.org 
[lkml]   [1996]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Faster make depend
From
Date
> > I was a little over-general in the int/float cpu comment.
> > Not all arithmetic operations are equal. What I was getting
> > at is the division specifically. With coprocessor on some
> > machines (my Alpha at least) floating divs are faster.
>
> That is just the Alpha. It hauls 64-bit data around just for the
> fun of it and (sometimes?) doesn't have hardware division. It
> looks like your machine has hardware support for floating point
> divide but not integer divide.
>
> Normally, the issue is simple math (add, subtract) on 32-bit
> integers or 64-bit double precision floating point. Even if
> you have an FPU you would want to avoid using it.
>
> I think the patch will help you anyway, because perl is usually
> faster than awk. I don't think there is any division.

Ok, thats what I get for spending too much time on my Alpha.
My profiling tells me integer divs are 2x slower than fdivs or
you could look at this way. The chip is fast, and fdivs are 2x faster!
Real-time graphics do _cook_ on this box.

Wonder why the Alpha doesn't have idivs, btw?

Melvin


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.154 / U:1.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site