Mail Archives: djgpp/1996/07/22/11:12:21
On Mon, 22 Jul 1996, Raja Vallee-Rai wrote:
> Is there a nice way of trapping floating point exceptions
> in DJGPP, as in Watcom C? (via a matherr() function)
I think that libm.a has `matherr' (you need to link with -lm). I don't
know if it will be called for every fp exception, though, and you might
need to set the x87 to a certain state for this to work (check out the
`_control87' library function). For more details, download the library
sources (djlsr200.zip) and look into the src/libm directory.
- Raw text -