i = i * f vs. i *= f

Chris Maltby chris at basser.SUN
Fri Apr 27 01:03:18 AEST 1984


>This is the same on 4.2bsd also.  I Thought I would try it on our C
>compiler on our Prime and the results were 
>19
>19
>So it is sort of better, with floats the result was 19.999996 so it was
>almost 20.

Everyone knows that floating point units on PR1ME machines are up the sh*t.
If anyone would like proof of this, I can send you a nice program to run.

Chris Maltby
University of Sydney



More information about the Comp.bugs.4bsd.ucb-fixes mailing list