mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[BTRFS] Fix amd64 build
CORE-16679
This commit is contained in:
parent
3ba423996c
commit
3c4a68ec46
|
@ -17,15 +17,15 @@
|
||||||
|
|
||||||
#include <asm.inc>
|
#include <asm.inc>
|
||||||
|
|
||||||
EXTERN _crctable:QWORD
|
EXTERN crctable:QWORD
|
||||||
|
|
||||||
.code64
|
.code64
|
||||||
|
|
||||||
|
|
||||||
/* uint32_t __stdcall calc_crc32c_sw(uint32_t seed, uint8_t* msg, uint32_t msglen); */
|
/* uint32_t __stdcall calc_crc32c_sw(uint32_t seed, uint8_t* msg, uint32_t msglen); */
|
||||||
|
|
||||||
PUBLIC _calc_crc32c_sw@12
|
PUBLIC calc_crc32c_sw
|
||||||
_calc_crc32c_sw@12:
|
calc_crc32c_sw:
|
||||||
|
|
||||||
/* rax = crc / seed
|
/* rax = crc / seed
|
||||||
* rdx = buf
|
* rdx = buf
|
||||||
|
@ -45,7 +45,8 @@ mov r10b, byte ptr [rdx]
|
||||||
xor al, r10b
|
xor al, r10b
|
||||||
and rax, 255
|
and rax, 255
|
||||||
shl rax, 2
|
shl rax, 2
|
||||||
mov rax, dword ptr [_crctable + rax]
|
mov r10, offset crctable
|
||||||
|
mov eax, dword ptr [r10 + rax]
|
||||||
xor rax, rcx
|
xor rax, rcx
|
||||||
|
|
||||||
inc rdx
|
inc rdx
|
||||||
|
@ -60,8 +61,8 @@ ret
|
||||||
|
|
||||||
/* uint32_t __stdcall calc_crc32c_hw(uint32_t seed, uint8_t* msg, uint32_t msglen); */
|
/* uint32_t __stdcall calc_crc32c_hw(uint32_t seed, uint8_t* msg, uint32_t msglen); */
|
||||||
|
|
||||||
PUBLIC _calc_crc32c_hw@12:
|
PUBLIC calc_crc32c_hw
|
||||||
_calc_crc32c_hw@12:
|
calc_crc32c_hw:
|
||||||
|
|
||||||
/* rax = crc / seed
|
/* rax = crc / seed
|
||||||
* rdx = buf
|
* rdx = buf
|
||||||
|
|
Loading…
Reference in a new issue