delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/29/10:51:33

Message-Id: <1.5.4.32.19971029155233.006aebfc@dce03.ipt.br>
Mime-Version: 1.0
Date: Wed, 29 Oct 1997 13:52:33 -0200
To: denlee AT see DOT sig (Dennis Lee), djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: (second try) Possible bug in startup code for math emulator

At 06:08 29/10/97 GMT, Dennis Lee wrote:
>Hello again,
>
>I didn't receive a reply to my earlier post, so I'm trying again 
>from a different news server in case the last one didn't 
>'spread'.
>
>My program which uses floating-point math fails
>in a Win95 DOS Shell when trying to use math
>emulation (387=N).  Under a real DOS session,
>it runs fine.  I was able to track down the problem,
>and apparently any program that uses floating-point
>will fail under the above conditions.
>
>A specific example is:
>
>#include <math.h>
>int main() {
>    float x = floor(-1.5);
>    return 0;
>}
>
>This has been tested on a Pentium and PPro.
>Is this a known problem ?

Just for the sake of a better grasp of all varieties of Intel like chips:

is there such a beast like a Pentium or PPRo w/o math c-processor?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak                      E-mail: csrabak AT ipt DOT br
DME/ASC                                   Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax:   55-11-268-5996
Av. Prof. Almeida Prado, 532.  Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


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