www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/01/05:31:23

From: kunst AT prl DOT philips DOT nl
Subject: Re: All the information relating to sqrt problem.
To: bell AT rdt DOT monash DOT edu DOT au (Mr G Bell)
Date: Wed, 1 Dec 1993 10:38:59 +0100 (MET)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)

Gary Bell writes:

> 
> 486dx with 8M RAM.  Approx. 100M HD space left.

With a DX, you don't need EMU387.

> 
> I have this code running in gcc on a unix.

The fact that your program runs on a Unix machine
is not a PROOF that your program is functioning correctly...

> 
> I have no compiling messages at all, and the error

Did you also use the '-Wall' switch with 'gcc' ?!?

> message I get with the emu in GO32 is:
> 
> 80387 Exception divide by Zero!
> 80386 Exception: Invalid Operation!
>   SW:0x7085 top=6 cc=1000     CW:0x077e
> 
> ST(0) + .0000 0000 0000 0000     Zero
> ST(1) + .9a20 9a84 fbcf f799 e-1 Valid
> 
> 
> With a complete recompile without the emu the error message
> is different:
> 
> Exception 117 at eip=c66c

This is a floating point exception, and could be caused by
various invalid or out-of-range floating point operations.

> 
> Does anyone have any ideas,
> 

You should check other functions than 'sqrt()' too, for
their arguments: pow(), logarithmic functions etc.

Try to locate where exactly the error is caused (i.e. by which function).
Post a small (<50 lines) sample source if you have located the trouble spot.

Hope this helps.


 .^^^^^^^^           _____________________________________
 |      |          / Pieter Kunst (P.J.)                   \
 |  _  _|        /   Philips Research Laboratories,          \
.--(o)(o)      /     Building WY3, Prof. Holstlaan 4,         \
|@      _)   /       5656 AA  Eindhoven, The Netherlands.      |
  | ,___|   /        e-mail: kunst AT prl DOT philips DOT nl             /
  |   /     \_______________________________________________/
  /____\


- Raw text -


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