1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006, Intel Corporation
4 ; All rights reserved. This program and the accompanying materials
5 ; are licensed and made available under the terms and conditions of the BSD License
6 ; which accompanies this distribution. The full text of the license may be found at
7 ; http://opensource.org/licenses/bsd-license.php
9 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
22 ;------------------------------------------------------------------------------
29 ;------------------------------------------------------------------------------
37 ;------------------------------------------------------------------------------
38 InternalMemSetMem PROC USES edi
43 mov ecx, [esp + 12] ; ecx <- Count
44 mov edi, [esp + 8] ; edi <- Buffer
47 shr ecx, 3 ; # of Qwords to set
50 movq [esp], mm0 ; save mm0
51 movq [esp + 8], mm1 ; save mm1
55 por mm0, mm1 ; fill mm0 with 8 Value's
60 movq mm0, [esp] ; restore mm0
61 movq mm1, [esp + 8] ; restore mm1
62 add esp, 10h ; stack cleanup
66 mov eax, [esp + 8] ; eax <- Buffer as return value
68 InternalMemSetMem ENDP