This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Floating Point Usage
- To: "'paslawsk at cadvision dot com'" <paslawsk at cadvision dot com>, "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>
- Subject: Re: Floating Point Usage
- From: Jason Zions <jazz at opennt dot com>
- Date: Mon, 4 May 1998 12:31:00 -0700
> I am porting an application from Linux to Windows NT which makes intensive
> usage of floating point operations. I am finding slight differences in
> calculations
It's been our experience that NT on Intel sets the FP unit's internal
precision for 53-bit mantissas (64-bit register size) while linux (and other
Intel unices) sets it to 80-bit internal precision. Thus, all intermediate
computations under Linux carry another dozen or so bits of precision that
only get lost when an FP register is copied out of the FP stack into a
64-bit register.
We decided to remain compatible with the rest of the NT world and not enable
full 80-bit mode. (There's one or two conversion routines where the easiest
solution was to enable 80-bit mode, do the FP operation to convert the
number, then reset 64-bit mode.)
Jason Zions
Softway Systems, makers of OpenNT
Enterprise Middleware providing Unix Services for Windows NT
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".