From bde40c2f9ac07a40135e845b84fd0e470a562f65 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 1 Nov 2002 21:49:33 +0000 Subject: * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q): New macros. * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise. * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST without defining FP_ROUNDMODE. --- ChangeLog | 9 +++++++++ soft-fp/soft-fp.h | 4 ++-- sysdeps/i386/soft-fp/sfp-machine.h | 2 ++ sysdeps/x86_64/soft-fp/sfp-machine.h | 2 ++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88f98d8341..b37a47deec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2002-10-31 Roger Sayle + + * sysdeps/i386/soft-fp/sfp-machine.h (_FP_NANFRAC_Q, _FP_NANSIGN_Q): + New macros. + * sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise. + + * soft-fp/soft-fp.h: Allow sfp-machine.h to define FP_RND_NEAREST + without defining FP_ROUNDMODE. + 2002-10-29 Jakub Jelinek * sysdeps/gnu/siglist.c (PTR_SIZE_STR): Remove. diff --git a/soft-fp/soft-fp.h b/soft-fp/soft-fp.h index 52638ad52f..e2639d7bc1 100644 --- a/soft-fp/soft-fp.h +++ b/soft-fp/soft-fp.h @@ -1,5 +1,5 @@ /* Software floating-point emulation. - Copyright (C) 1997,1998,1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1997,1998,1999,2000,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (rth@cygnus.com), Jakub Jelinek (jj@ultra.linux.cz), @@ -42,10 +42,10 @@ # define FP_RND_ZERO 1 # define FP_RND_PINF 2 # define FP_RND_MINF 3 +#endif #ifndef FP_ROUNDMODE # define FP_ROUNDMODE FP_RND_NEAREST #endif -#endif /* By default don't care about exceptions. */ #ifndef FP_EX_INVALID diff --git a/sysdeps/i386/soft-fp/sfp-machine.h b/sysdeps/i386/soft-fp/sfp-machine.h index 047452b905..ed71ae418a 100644 --- a/sysdeps/i386/soft-fp/sfp-machine.h +++ b/sysdeps/i386/soft-fp/sfp-machine.h @@ -50,8 +50,10 @@ #define _FP_NANFRAC_S _FP_QNANBIT_S #define _FP_NANFRAC_D _FP_QNANBIT_D, 0 +#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0, 0, 0 #define _FP_NANSIGN_S 1 #define _FP_NANSIGN_D 1 +#define _FP_NANSIGN_Q 1 #define _FP_KEEPNANFRACP 1 /* Here is something Intel misdesigned: the specs don't define diff --git a/sysdeps/x86_64/soft-fp/sfp-machine.h b/sysdeps/x86_64/soft-fp/sfp-machine.h index 1cc4e24c68..77df02380c 100644 --- a/sysdeps/x86_64/soft-fp/sfp-machine.h +++ b/sysdeps/x86_64/soft-fp/sfp-machine.h @@ -11,8 +11,10 @@ #define _FP_NANFRAC_S _FP_QNANBIT_S #define _FP_NANFRAC_D _FP_QNANBIT_D, 0 +#define _FP_NANFRAC_Q _FP_QNANBIT_Q, 0, 0, 0 #define _FP_NANSIGN_S 1 #define _FP_NANSIGN_D 1 +#define _FP_NANSIGN_Q 1 #define _FP_KEEPNANFRACP 1 /* Here is something Intel misdesigned: the specs don't define -- cgit v1.2.3