- Subject: Re: slang 1.3.10 available
- From: "John E. Davis" <davis>
- Date: Sun, 14 Nov 1999 19:50:06 -0500
Ismael Cordeiro <ismael@xxxxxxxxxxxx> wrote:
>Running tests:
>
>Testing sscanf ...S-Lang Traceback: (Error occurred on line 74)
>Floating point exception occured for 127.1 * 10^348.901
The basic assumption is that this would return IEEE Inf and not
generate a floating point exception. That assumption fails on your
machine. Search for a header file called something like
`fpu_control.h' and see if it mentions the default mode. On my linux
system. this file is in /usr/include/i386/fpu_control.h and says:
/* Linux default:
- extended precision
- rounding to nearest
- exceptions on overflow, zero divide and NaN */
#if 0
#define _FPU_DEFAULT 0x1372
#else
/* It seems SVR4/x86 uses the same thing. */
#define _FPU_DEFAULT 0x137f
#endif
/* IEEE: same as above, but exceptions */
#define _FPU_IEEE 0x137f
As you can see, the linux default the IEEE default.
--John
[1999 date index]
[1999 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]