OLEAUT32: add full multiplication/division support for DECIMAL (in small patches)

Alex Villací­s Lasso a_villacis at palosanto.com
Wed Sep 21 10:52:49 CDT 2005


By popular request, I am resending the implementation for DECIMAL 
multiplication/division in small patches. The patches should be applied 
in the order shown by the numbers, since each patch adds functions that 
are used by later patches.

The patches are as follows:
- Patch 01 contains the tests for all the functionality added in later 
patches. Thanks to Vijay Kiran Kamuju for noting that 
internationalization support was missing - this was also corrected and 
added to the tests.
- Patch 02 coaxes VarDiv() and VarSub() to use the existing VarDecSub() 
and VarDecDiv() for DECIMAL
- Patch 03 fixes a scaling error in VarR4FromDec() and VarR8FromDec() 
that incorrectly multiplies the high 32 bits of the DECIMAL by 1e64 
instead of the correct 2^64.
- Patch 04 implements complete VarBstrFromDec() for any valid DECIMAL, 
with internacionalization support borrowed from VARIANT_BstrFromReal(). 
The decimal fix for VARIANT_BstrFromReal was encapsulated in a separate 
function and reused.
- Patch 05 implements complete VarDecMul() for any valid DECIMAL
- Patch 06 implements complete VarDecDiv() for any valid DECIMAL

Alex Villacís Lasso

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_01_tests.patch
Type: text/x-patch
Size: 13592 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_01_tests-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_02_variant.patch
Type: text/x-patch
Size: 1449 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_02_variant-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_03_hi32_scale.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_03_hi32_scale-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_04_VarBstrFromDec.patch
Type: text/x-patch
Size: 11893 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_04_VarBstrFromDec-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_05_VarDecMul.patch
Type: text/x-patch
Size: 10239 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_05_VarDecMul-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-oleaut32-decimal_06_VarDecDiv.patch
Type: text/x-patch
Size: 14449 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050921/eb232123/wine-oleaut32-decimal_06_VarDecDiv-0001.patch


More information about the wine-patches mailing list