www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/01/25/04:57:47

From: kunst AT prl DOT philips DOT nl (Pieter Kunst)
Subject: Coprocessor exception not trapped
To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP users list)
Date: Mon, 25 Jan 93 10:49:42 MET
Mailer: Elm [revision: 70.30]

In addition to the previously mailed 'division by zero' bug:
a little testing with other coprocessor exceptions showed that 
in fact *ALL* coprocessor exceptions are NOT TRAPPED anymore.

Example:
----------------------------------------------------------------------
#include <math.h>
#include <stdio.h>

int main()
{
  double x = sqrt(-4);

  printf ("x = %g\n", x);
  return 0;
}
----------------------------------------------------------------------
returns: x = -4

I'm looking at the go32 sources to find the cause, 
but perhaps some 'genius' has found it already...

Pieter Kunst (kunst AT prl DOT philips DOT nl)

- Raw text -


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