dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/support decimal.c,1.4,1.5


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/support decimal.c,1.4,1.5
Date: Wed, 06 Aug 2003 01:19:02 -0400

Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv20040/support

Modified Files:
        decimal.c 
Log Message:


MulByWord: correctly propagate carries from one word to the next
in decimal multiplications (Bug #3529).


Index: decimal.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/decimal.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** decimal.c   19 Feb 2003 03:26:58 -0000      1.4
--- decimal.c   6 Aug 2003 05:18:59 -0000       1.5
***************
*** 600,604 ****
  
        /* valuea->middle * valueb */
!       product = ((ILUInt64)(valuea->middle)) * ((ILUInt64)valueb);
        product += (ILUInt64)(result[base]);
        result[base] = (ILUInt32)product;
--- 600,604 ----
  
        /* valuea->middle * valueb */
!       product += ((ILUInt64)(valuea->middle)) * ((ILUInt64)valueb);
        product += (ILUInt64)(result[base]);
        result[base] = (ILUInt32)product;
***************
*** 607,611 ****
  
        /* valuea->high * valueb */
!       product = ((ILUInt64)(valuea->high)) * ((ILUInt64)valueb);
        product += (ILUInt64)(result[base]);
        result[base] = (ILUInt32)product;
--- 607,611 ----
  
        /* valuea->high * valueb */
!       product += ((ILUInt64)(valuea->high)) * ((ILUInt64)valueb);
        product += (ILUInt64)(result[base]);
        result[base] = (ILUInt32)product;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]