Marcus Meissner : ntdll: Specify div to be divl.

Alexandre Julliard julliard at winehq.org
Mon May 30 12:41:16 CDT 2011


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun May 29 20:59:01 2011 +0200

ntdll: Specify div to be divl.

Avoids a clang bug.

---

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

diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c
index cb98bae..54ce6b0 100644
--- a/dlls/ntdll/large_int.c
+++ b/dlls/ntdll/large_int.c
@@ -264,7 +264,7 @@ UINT WINAPI RtlEnlargedUnsignedDivide( ULONGLONG a, UINT b, UINT *remptr )
     p1 = a >> 32;
     p2 = a &  0xffffffffLL;
 
-    __asm__("div %4,%%eax"
+    __asm__("divl %4,%%eax"
             : "=a" (ret), "=d" (rem)
             : "0" (p2), "1" (p1), "g" (b) );
     if (remptr) *remptr = rem;




More information about the wine-cvs mailing list