This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] TFmode support for x86 in soft-fp
- From: Roger Sayle <roger at eyesopen dot com>
- To: <libc-alpha at sources dot redhat dot com>
- Date: Thu, 31 Oct 2002 19:12:48 -0700 (MST)
- Subject: [PATCH] TFmode support for x86 in soft-fp
This is the second instalment of my patches to glibc's soft-fp.
This patch provides the minimal definitions to support quad mode
(TFmode) software floating point on i386 and x86_64.
Is this patch OK?
2002-10-31 Roger Sayle <roger@eyesopen.com>
* sysdeps/i386/soft-fp/sfp-machine.h: Provide definitions
of _FP_NANFRAC_Q and _FP_NANSIGN_Q.
* sysdeps/x86_64/soft-fp/sfp-machine.h: Likewise.
Index: sysdeps/i386/soft-fp/sfp-machine.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/i386/soft-fp/sfp-machine.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 sfp-machine.h
*** sysdeps/i386/soft-fp/sfp-machine.h 5 Sep 2000 08:39:35 -0000 1.1
--- sysdeps/i386/soft-fp/sfp-machine.h 1 Nov 2002 02:12:08 -0000
***************
*** 50,57 ****
--- 50,59 ----
#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
Index: sysdeps/x86_64/soft-fp/sfp-machine.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/x86_64/soft-fp/sfp-machine.h,v
retrieving revision 1.1
diff -c -3 -p -r1.1 sfp-machine.h
*** sysdeps/x86_64/soft-fp/sfp-machine.h 19 Sep 2001 10:21:39 -0000 1.1
--- sysdeps/x86_64/soft-fp/sfp-machine.h 1 Nov 2002 02:12:08 -0000
***************
*** 11,18 ****
--- 11,20 ----
#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
Roger
--
Roger Sayle, E-mail: roger@eyesopen.com
OpenEye Scientific Software, WWW: http://www.eyesopen.com/
Suite 1107, 3600 Cerrillos Road, Tel: (+1) 505-473-7385
Santa Fe, New Mexico, 87507. Fax: (+1) 505-473-0833