Patch from Ville Krumlinde for xxHash32 crash on Mac OS 64-bit, mantis 33477

git-svn-id: trunk@38598 -
This commit is contained in:
maciej-izak 2018-03-22 22:51:11 +00:00
parent 256ae133a2
commit b0aeacf61b

View File

@ -1063,7 +1063,7 @@ end;
{$ifdef CPUX64}
function xxHash32(crc: cardinal; P: Pointer; len: integer): cardinal;
asm
{$ifdef LINUX} // crc=rdi P=rsi len=rdx
{$ifndef WIN64} // crc=rdi P=rsi len=rdx
mov r8, rdi
mov rcx, rsi
{$else} // crc=r8 P=rcx len=rdx
@ -1150,7 +1150,7 @@ asm
shr edx, 16
xor eax, edx
pop rbx
{$ifndef LINUX}
{$ifdef WIN64}
pop rdi
pop rsi
{$endif}