Commit 06722210 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Remove divl second argument for compatibility with clang.

parent c1aef636
...@@ -259,14 +259,11 @@ ULONGLONG WINAPI RtlEnlargedUnsignedMultiply( UINT a, UINT b ) ...@@ -259,14 +259,11 @@ ULONGLONG WINAPI RtlEnlargedUnsignedMultiply( UINT a, UINT b )
UINT WINAPI RtlEnlargedUnsignedDivide( ULONGLONG a, UINT b, UINT *remptr ) UINT WINAPI RtlEnlargedUnsignedDivide( ULONGLONG a, UINT b, UINT *remptr )
{ {
#if defined(__i386__) && defined(__GNUC__) #if defined(__i386__) && defined(__GNUC__)
UINT ret, rem, p1, p2; UINT ret, rem;
p1 = a >> 32; __asm__("divl %4"
p2 = a & 0xffffffffLL;
__asm__("divl %4,%%eax"
: "=a" (ret), "=d" (rem) : "=a" (ret), "=d" (rem)
: "0" (p2), "1" (p1), "g" (b) ); : "0" ((UINT)a), "1" ((UINT)(a >> 32)), "g" (b) );
if (remptr) *remptr = rem; if (remptr) *remptr = rem;
return ret; return ret;
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment