[tw] - fixed __setfpucw call in mpfr-test.h

This commit is contained in:
Thomas Woerner 2005-04-18 14:35:02 +00:00
parent ca6c69fe0d
commit 535df621db
2 changed files with 21 additions and 1 deletions

15
gmp-4.1.4-fpu.patch Normal file
View File

@ -0,0 +1,15 @@
--- gmp-4.1.4/mpfr/mpfr-test.h.fpu 2002-04-19 23:41:05.000000000 +0200
+++ gmp-4.1.4/mpfr/mpfr-test.h 2005-04-18 16:04:20.000000000 +0200
@@ -98,7 +98,11 @@
#ifdef HAVE_SETFPUCW
/* sets the precision to double */
- __setfpucw((_FPU_DEFAULT & (~_FPU_EXTENDED)) | _FPU_DOUBLE);
+ fpu_control_t cw;
+ _FPU_GETCW(cw);
+ cw &= ~_FPU_EXTENDED;
+ cw |= _FPU_DOUBLE;
+ _FPU_SETCW(cw);
#endif
}

View File

@ -8,12 +8,13 @@
Summary: A GNU arbitrary precision library.
Name: gmp
Version: 4.1.4
Release: 5
Release: 6
URL: http://www.swox.com/gmp/
Source: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
Patch0: gmp-4.0.1-s390.patch
Patch1: gmp-4.1.2-ppc64.patch
Patch2: gmp-4.1.2-autoconf.patch
Patch3: gmp-4.1.4-fpu.patch
License: LGPL
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -50,6 +51,7 @@ install the gmp package.
%patch0 -p1
#patch1 -p1
%patch2 -p1
%patch3 -p1 -b .fpu
libtoolize --force
aclocal-1.6 -I mpn -I mpfr
@ -161,6 +163,9 @@ fi
%{_infodir}/mpfr.info*
%changelog
* Mon Apr 18 2005 Thomas Woerner <twoerner@redhat.com> 4.1.4-6
- fixed __setfpucw call in mpfr-test.h
* Wed Mar 02 2005 Karsten Hopp <karsten@redhat.de> 4.1.4-5
- build with gcc-4