Floating point emulation

Peter Barada pbarada@mail.wm.sps.mot.com
Mon Dec 2 07:51:00 GMT 2002


>I haven't used floats in years (decades? hmm) so don't quote
>me on that...
>(Incidently, if you are compiling with -msoft-float, I don't
>expect that using doubles will "increase performance", as
>you'll double the amount of work the processor has to do...)

It all depends on the hardware implementation of the FPU.  If the FPU
can only operate in double precision, then to properly model single
precision operations requires rounding instructions to be added after
every operation to force the final result to appear as if it was
calculated in single precision.  This can indeed slow it down.

-- 
Peter Barada                                   Peter.Barada@motorola.com
Wizard                                         781-852-2768 (direct)
WaveMark Solutions(wholly owned by Motorola)   781-270-0193 (fax)

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list