a Patch to make it build with gcc4

neoclust neoclust at mandriva.org
Mon Aug 1 13:30:10 CEST 2005


Hi, 


--- 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
 }


regards

Nicolas
-- 
N'envoyez que des documents avec des formats ouverts, comme 
http://fr.openoffice.org, http://koffice.kde.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://gmplib.org/list-archives/gmp-devel/attachments/20050801/1aada736/attachment.bin


More information about the gmp-devel mailing list