slang-users mailing list

[1999 Date Index] [1999 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: slang 1.3.10 available


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]