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

List:       bochs-cvs
Subject:    [Bochs-cvs] CVS: bochs/fpu softfloat-round-pack.cc,1.19,1.20
From:       "Stanislav Shwartsman" <sshwarts () users ! sourceforge ! net>
Date:       2009-08-23 5:00:49
Message-ID: E1Mf5CD-0003gr-RR () ddv4jf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Update of /cvsroot/bochs/bochs/fpu
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14162

Modified Files:
	softfloat-round-pack.cc 
Log Message:
sse bugfix


Index: softfloat-round-pack.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/fpu/softfloat-round-pack.cc,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- softfloat-round-pack.cc	19 Aug 2009 12:32:56 -0000	1.19
+++ softfloat-round-pack.cc	23 Aug 2009 05:00:46 -0000	1.20
@@ -220,7 +220,7 @@
             zSig = shift32RightJamming(zSig, -zExp);
             zExp = 0;
             roundBits = zSig & roundMask;
-            if (isTiny && roundBits) {
+            if (isTiny && (roundBits || !float_exception_masked(status, float_flag_underflow))) {
                 float_raise(status, float_flag_underflow);
                 if(get_flush_underflow_to_zero(status)) {
                     float_raise(status, float_flag_inexact);
@@ -321,7 +321,7 @@
             zSig = shift64RightJamming(zSig, -zExp);
             zExp = 0;
             roundBits = (Bit16s)(zSig & 0x3FF);
-            if (isTiny && roundBits) {
+            if (isTiny && (roundBits || !float_exception_masked(status, float_flag_underflow))) {
                 float_raise(status, float_flag_underflow);
                 if(get_flush_underflow_to_zero(status)) {
                     float_raise(status, float_flag_inexact);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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