Alexandre Julliard : oleaut32: Use the x87 assembly code for rounding on x86_64 too.

Alexandre Julliard julliard at winehq.org
Fri Apr 9 11:49:54 CDT 2010


Module: wine
Branch: master
Commit: 2e5d1f192fdc028b18fbce3c5f3690a3ef16d466
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e5d1f192fdc028b18fbce3c5f3690a3ef16d466

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Apr  9 11:14:47 2010 +0200

oleaut32: Use the x87 assembly code for rounding on x86_64 too.

---

 dlls/oleaut32/vartype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/vartype.c b/dlls/oleaut32/vartype.c
index da1288d..cfd5e8f 100644
--- a/dlls/oleaut32/vartype.c
+++ b/dlls/oleaut32/vartype.c
@@ -3503,7 +3503,7 @@ HRESULT WINAPI VarCyFromR4(FLOAT fltIn, CY* pCyOut)
  */
 HRESULT WINAPI VarCyFromR8(double dblIn, CY* pCyOut)
 {
-#if defined(__GNUC__) && defined(__i386__)
+#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
   /* This code gives identical results to Win32 on Intel.
    * Here we use fp exceptions to catch overflows when storing the value.
    */




More information about the wine-cvs mailing list