| delorie.com/archives/browse.cgi | search |
| From: | denlee AT see DOT sig (Dennis Lee) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Problem with math emulation |
| Date: | Sun, 26 Oct 1997 15:32:32 GMT |
| Organization: | Interlog Internet Services |
| Lines: | 28 |
| Message-ID: | <62vn82$q7u$1@news.interlog.com> |
| NNTP-Posting-Host: | 209-20-1-15.dialin.interlog.com |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Hello,
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 ?
Thank you for any help.
--
Dennis Lee E-mail: denlee AT ecf DOT utoronto DOT ca
Waveform Archiver -- Lossless Audio Compression
DL1 & DL3 2-Pass Color Quantizers (Source Code)
Popular CPU/FPU/Memory x86 Benchmarks
www.ecf.utoronto.ca/~denlee/software.html
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |