Moving floating point values around
The Beach Bum
jfh at rpp386.UUCP
Wed Aug 24 10:53:16 AEST 1988
In article <4256 at lynx.UUCP> m5 at lynx.UUCP (Mike McNally) writes:
>How naughty would it be for a compiler for the 386/387 (or 286/287 for that
>matter) to move floating-point values with 386 MOV instructions instead
>of FLD and FSTP?
this shouldn't be a bother. you should be able to use the doubleword
load and store instructions (or the block byte moves if you want) to
move floats and doubles.
the only place you have to watch out for is
if (f1 = f2)
...
or some other conditional context. you have to use the floating point
moves or a floating point test to properly set the condition codes.
--
John F. Haugh II (jfh at rpp386.UUCP) HASA, "S" Division
"If the code and the comments disagree, then both are probably wrong."
-- Norm Schryer
More information about the Comp.lang.c
mailing list