#\r
#------------------------------------------------------------------------------\r
\r
- .686:\r
+\r
.code:\r
\r
#------------------------------------------------------------------------------\r
jnz Hard # call _@DivRemU64x64 if Divisor > 2^32\r
movl 20(%esp), %ecx\r
jecxz L1\r
- and $0, 4(%ecx) # zero high dword of remainder\r
+ andl $0, 4(%ecx) # zero high dword of remainder\r
movl %ecx, 16(%esp) # set up stack frame to match DivRemU64x32\r
L1:\r
jmp ASM_PFX(InternalMathDivRemU64x32)\r
.byte 0x67, 0x48\r
movl 0x18(%esp), %esp # mov rsp, [esp + 18h]\r
.byte 0x48\r
- addl $0x-0x20, %esp # add rsp, -20h\r
+ addl $-0x20, %esp # add rsp, -20h\r
call *%ebx # call rbx\r
jmp . # no one should get here\r
#\r
#------------------------------------------------------------------------------\r
\r
- .386:\r
+\r
.code:\r
\r
ASM_GLOBAL ASM_PFX(InternalMathMultU64x32)\r
#\r
#------------------------------------------------------------------------------\r
\r
- .686:\r
+\r
.code:\r
\r
ASM_GLOBAL ASM_PFX(InternalMathRShiftU64)\r
andl $7, %edx\r
shrl $3, %ecx # # of Qwords to set\r
jz L1\r
- addl $0x-10, %esp\r
+ addl $-16, %esp\r
movq %mm0, (%esp) # save mm0\r
movq %mm1, 8(%esp) # save mm1\r
movd %eax, %mm0\r
L0:\r
movq %mm0, (%edi)\r
addl $8, %edi\r
- loopl L0\r
+ loop L0\r
movq (%esp), %mm0 # restore mm0\r
movq 8(%esp), %mm1 # restore mm1\r
addl $0x10, %esp # stack cleanup\r
L0:\r
movq %mm0, (%edi)\r
addl $8, %edi\r
- loopl L0\r
+ loop L0\r
L1:\r
movl %edx, %ecx\r
rep\r
L0:\r
movq %mm0, (%edx)\r
lea 8(%edx), %edx\r
- loopl L0\r
+ loop L0\r
L1:\r
jnc L2\r
movd %mm0, (%edx)\r
L0:\r
movq %mm0, (%edx)\r
lea 8(%edx), %edx\r
- loopl L0\r
+ loop L0\r
ret\r
ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r
ASM_PFX(InternalMemSetMem64):\r
movd %r8, %mm0 #Value\r
- movw %rcx, %rax #rax <- Buffer\r
+ movq %rcx, %rax #rax <- Buffer\r
xchg %rdx, %rcx #rcx <- Count\r
L0:\r
movntq %mm0, (%rdx) \r
movq %r8, %rax\r
xchgq %rdx, %rcx\r
rep stosq\r
- movw %rdx, %rax\r
+ movq %rdx, %rax\r
popq %rdi\r
ret\r
\r
#\r
#------------------------------------------------------------------------------\r
\r
- .386:\r
+\r
.code:\r
\r
ASM_GLOBAL ASM_PFX(InternalMemSetMem)\r
#\r
#------------------------------------------------------------------------------\r
\r
- .686:\r
+\r
#.MODEL flat,C\r
.xmm:\r
.code:\r