mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
ntdll: Remove divl second argument for compatibility with clang.
This commit is contained in:
parent
c1aef636df
commit
06722210a8
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue