mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 19:29:26 +02:00
Patch from Ville Krumlinde for xxHash32 crash on Mac OS 64-bit, mantis 33477
git-svn-id: trunk@38598 -
This commit is contained in:
parent
256ae133a2
commit
b0aeacf61b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user