1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>

* sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
	default to double precision, all interrupts masked; fdlibm requires.
This commit is contained in:
Roland McGrath
1996-03-12 08:19:58 +00:00
parent d25d5f6a50
commit dd0e4e0c8b
2 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,8 @@
Tue Mar 12 03:15:02 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
default to double precision, all interrupts masked; fdlibm requires.
Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu> Sat Mar 9 18:44:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
* sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed. * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.

View File

@ -63,8 +63,8 @@ Boston, MA 02111-1307, USA. */
#define _FPU_MASK_PM 0x20 #define _FPU_MASK_PM 0x20
/* precision control */ /* precision control */
#define _FPU_EXTENDED 0x300 /* RECOMMENDED */ #define _FPU_EXTENDED 0x300
#define _FPU_DOUBLE 0x200 #define _FPU_DOUBLE 0x200 /* fdlibm requires double precision */
#define _FPU_SINGLE 0x0 /* DO NOT USE */ #define _FPU_SINGLE 0x0 /* DO NOT USE */
/* rounding control */ /* rounding control */
@ -76,16 +76,13 @@ Boston, MA 02111-1307, USA. */
#define _FPU_RESERVED 0xF0C0 /* Reserved bits in cw */ #define _FPU_RESERVED 0xF0C0 /* Reserved bits in cw */
/* Now two recommended cw */ /* The fdlibm code requires strict IEEE double precision arithmetic,
and no interrupts for exceptions, rounding to nearest. */
/* Linux default: #define _FPU_DEFAULT 0x127f
- extended precision
- rounding to nearest
- exceptions on overflow, zero divide and NaN */
#define _FPU_DEFAULT 0x1372
/* IEEE: same as above, but exceptions */ /* IEEE: same as above, but exceptions */
#define _FPU_IEEE 0x137f #define _FPU_IEEE 0x127f
/* Type of the control word. */ /* Type of the control word. */
typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__))); typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__HI__)));