Mail Archives: djgpp/1997/09/23/20:15:40
Leath Muller (leathm AT solwarra DOT gbrmpa DOT gov DOT au) wrote:
: > I'm also getting SIGFPE in some code I wrote. I located the instruction
: > which causes it. It is a division with a number which is not a ZERO! And
: > when I turn off FPE exceptions code works giving the right results. Can
: > someone explain this?
:
: > P.S. I also tried reseting the FPU before that instruction. The result was
: > that SIGFPE disapeared!
: One thing that is peculiar about the FPU is the instruction that is causing
: the exception may not be the one pointed to by the stack trace. Check the
: instructions beforehand (I have had problems with instructions ~3 deep due
: to the fact I intertwine the FPU and integer instructions).
I looked for it but haven't find it so far. But, even if it is, how would
you explain that code works just as it should? (not giving the wrong
results?)
--
// E-mail: smikecin AT bigfoot DOT com
// URL: http://fly.cc.fer.hr/~sime
- Raw text -