As my FPU doesn't throw an exception (and I do not need it to), how
do I check for the just-occurred loss-of-precision or overflow ?
Hello all,
Using a 32-bit hardware :
Loading a 64-bit integer into the FPU, and than extract it as a double >(fild,fstp). When the value is very large a loss-of-precision occurs (the >lower bits get lost).
Loading a double and storing it as a 64-bit integer (fld, fistp). When the >value is very large an overflow occurs.
As my FPU doesn't throw an exception (and I do not need it to), how do I >check for the just-occurred loss-of-precision or overflow ?
I've been looking at the FSTSW/FNSTSW instruction, but that doesn't show >either of the above exceptions.
I've tried DDG-ing for it, but could not find anything (other than >suggestions to how not to get those exceptions). :-(
Regards,
Rudy Wieser
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:25:55 |
| Calls: | 1,194 |
| Files: | 1,352 |
| D/L today: |
1 files (1,580K bytes) |
| Messages: | 290,958 |