1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
16 ;------------------------------------------------------------------------------
20 ;------------------------------------------------------------------------------
28 ;------------------------------------------------------------------------------
29 global ASM_PFX(InternalMemSetMem)
30 ASM_PFX(InternalMemSetMem):
36 mov ecx, [esp + 12] ; ecx <- Count
37 mov edi, [esp + 8] ; edi <- Buffer
40 shr ecx, 3 ; # of Qwords to set
43 movq [esp], mm0 ; save mm0
44 movq [esp + 8], mm1 ; save mm1
48 por mm0, mm1 ; fill mm0 with 8 Value's
53 movq mm0, [esp] ; restore mm0
54 movq mm1, [esp + 8] ; restore mm1
55 add esp, 0x10 ; stack cleanup
59 mov eax, [esp + 8] ; eax <- Buffer as return value