Skip to content

Commit b2ac1df

Browse files
committed
Fix FPC x64 build: avoid invalid dword immediate in CRCFoldLsb32 SSE2 asm
FPC's x64 assembler rejects `and rax, $FFFFFFFF` (8011: signed dword out of range). Use `mov eax, ebx` to zero-extend the 32-bit CRC into RAX for the UInt64 return value.
1 parent 82a0957 commit b2ac1df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

HashLib/src/Include/Simd/CRC/CRCFoldLsb32Sse2.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@
125125

126126
@L32Sse2_done:
127127
mov dword ptr [r8], ebx
128-
mov rax, rbx
129-
and rax, $FFFFFFFF
128+
mov eax, ebx
130129

131130
pop r15
132131
pop r14

0 commit comments

Comments
 (0)