Alexandre Julliard : ntdll: Remove divl second argument for compatibility with clang.
Alexandre Julliard
julliard at winehq.org
Fri Jul 29 12:37:05 CDT 2011
Module: wine
Branch: master
Commit: 06722210a8edd2dcc8039db81b779872ad7036c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=06722210a8edd2dcc8039db81b779872ad7036c0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jul 29 19:18:41 2011 +0200
ntdll: Remove divl second argument for compatibility with clang.
---
dlls/ntdll/large_int.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/ntdll/large_int.c b/dlls/ntdll/large_int.c
index 54ce6b0..fc01f83 100644
--- a/dlls/ntdll/large_int.c
+++ b/dlls/ntdll/large_int.c
@@ -259,14 +259,11 @@ ULONGLONG WINAPI RtlEnlargedUnsignedMultiply( UINT a, UINT b )
UINT WINAPI RtlEnlargedUnsignedDivide( ULONGLONG a, UINT b, UINT *remptr )
{
#if defined(__i386__) && defined(__GNUC__)
- UINT ret, rem, p1, p2;
+ UINT ret, rem;
- p1 = a >> 32;
- p2 = a & 0xffffffffLL;
-
- __asm__("divl %4,%%eax"
+ __asm__("divl %4"
: "=a" (ret), "=d" (rem)
- : "0" (p2), "1" (p1), "g" (b) );
+ : "0" ((UINT)a), "1" ((UINT)(a >> 32)), "g" (b) );
if (remptr) *remptr = rem;
return ret;
#else
More information about the wine-cvs
mailing list