www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/02/13:12:11

Date: Fri, 2 Jul 1993 19:39:21 +0200
Conversion: Prohibited
From: "2-JUL-1993 18:35:35.38" <phc27 AT rz DOT uni-kiel DOT d400 DOT de>
To: DJGPP AT SUN DOT SOE DOT CLARKSON DOT edu
Subject: BUG IN EMULATOR

Hi,

the coprocessor emulator (v1.10) has a bug. The following program
aborts :

      main()
      { double a,b;
	a = 1E-307;
	do { b = a; a *= 0.5; } while (b>a);
      }

Using the WMemu 0.50 one gets a warning message (underflow).
The program works on a 486DX.

Since every portable program should be aware of the fact that

  0.0 < |a| < 1.0 && 0.0 < |b| < 1.0  ==> a*b != 0

may not hold there seems to be no need to abort the program.

Hartmut

- Raw text -


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