[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] fpu40/60 instructions



mikro <mikro@hysteria.sk> writes:

> does anybody know what is the difference between instructions like fsglmul,
> fsgldiv (68881/2) and fsmul, fsdiv(68040/60) ?

fsglmul/fsgldiv calculate with single float rounding mode but extended
precision exponent (i.e. more range than single float), whereas fsmul and
fsdiv calculate completely in single float format.  The difference between
the two methods is visible in the overflow handling: with fsglmul you can
multiply two values of FLT_MAX without overflow, whereas with fsmul you
would get Infinity.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."