www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/23/20:15:40

From: sime AT fly DOT cc DOT fer DOT hr (S. Mikecin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Floating Point Exception
Date: 23 Sep 1997 11:40:33 GMT
Organization: FER, Croatia
Lines: 21
Distribution: world
Message-ID: <6089rh$2gj@bagan.srce.hr>
References: <199709230209 DOT MAA01757 AT solwarra DOT gbrmpa DOT gov DOT au>
Reply-To: sime AT fly DOT cc DOT etf DOT hr
NNTP-Posting-Host: fly.cc.etf.hr
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019