[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-cvs
Subject:    [Bochs-cvs] CVS: bochs/fpu fprem.cc, 1.6, 1.7 fpu.cc, 1.24,
From:       Stanislav Shwartsman <sshwarts () users ! sourceforge ! net>
Date:       2007-10-24 23:31:09
Message-ID: E1Ikpgr-00029D-IC () sc8-pr-cvs3 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/bochs/bochs/fpu
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6923/fpu

Modified Files:
	fprem.cc fpu.cc fsincos.cc softfloat-macros.h softfloat.cc 
Log Message:
warning fixes


Index: fprem.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/fprem.cc,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- fprem.cc	23 Mar 2007 21:27:12 -0000	1.6
+++ fprem.cc	24 Oct 2007 23:29:07 -0000	1.7
@@ -25,6 +25,7 @@
 
 #include "softfloatx80.h"
 #include "softfloat-round-pack.h"
+#define USE_estimateDiv128To64
 #include "softfloat-macros.h"
 
 /* executes single exponent reduction cycle */

Index: fpu.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/fpu.cc,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- fpu.cc	11 Sep 2007 13:11:03 -0000	1.24
+++ fpu.cc	24 Oct 2007 23:29:17 -0000	1.25
@@ -532,7 +532,7 @@
 #else
     f *= fp.fraction*scale_factor;
 #endif
-    fprintf(stderr, "%sFPR%d(%c):        %.10f (raw 0x%04x:%08x%08x)\n",
+    fprintf(stderr, "%sFPR%d(%c):        %.10f (raw 0x%04x:%08lx%08lx)\n",
           i==tos?"=>":"  ",
           i, 
           "v0s?"[BX_CPU_THIS_PTR the_i387.FPU_gettagi((i-tos)&7)],

Index: fsincos.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/fsincos.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- fsincos.cc	23 Mar 2007 21:27:13 -0000	1.5
+++ fsincos.cc	24 Oct 2007 23:29:24 -0000	1.6
@@ -25,6 +25,7 @@
 
 #define FLOAT128
 
+#define USE_estimateDiv128To64
 #include "softfloatx80.h"
 #include "softfloat-round-pack.h"
 #include "fpu_constant.h"

Index: softfloat-macros.h
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/softfloat-macros.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- softfloat-macros.h	23 Mar 2007 21:27:13 -0000	1.8
+++ softfloat-macros.h	24 Oct 2007 23:29:31 -0000	1.9
@@ -194,6 +194,7 @@
 | unsigned integer is returned.
 *----------------------------------------------------------------------------*/
 
+#ifdef USE_estimateDiv128To64
 static Bit64u estimateDiv128To64(Bit64u a0, Bit64u a1, Bit64u b)
 {
     Bit64u b0, b1;
@@ -214,6 +215,7 @@
     z |= (b0<<32 <= rem0) ? 0xFFFFFFFF : rem0 / b0;
     return z;
 }
+#endif
 
 /*----------------------------------------------------------------------------
 | Returns an approximation to the square root of the 32-bit significand given
@@ -225,6 +227,7 @@
 | value.
 *----------------------------------------------------------------------------*/
 
+#ifdef USE_estimateSqrt32
 static Bit32u estimateSqrt32(Bit16s aExp, Bit32u a)
 {
     static const Bit16u sqrtOddAdjustments[] = {
@@ -251,6 +254,7 @@
     }
     return ((Bit32u) ((((Bit64u) a)<<31) / z)) + (z>>1);
 }
+#endif
 
 /*----------------------------------------------------------------------------
 | Returns the number of leading 0 bits before the most-significant 1 bit of

Index: softfloat.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/softfloat.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- softfloat.cc	23 Mar 2007 21:27:13 -0000	1.10
+++ softfloat.cc	24 Oct 2007 23:29:40 -0000	1.11
@@ -42,6 +42,8 @@
 | division and square root approximations. (Can be specialized to target
 | if desired).
 *----------------------------------------------------------------------------*/
+#define USE_estimateDiv128To64
+#define USE_estimateSqrt32
 #include "softfloat-macros.h"
 
 /*----------------------------------------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic