1 #------------------------------------------------------------------------------
3 # Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 # 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 #------------------------------------------------------------------------------
24 ASM_GLOBAL ASM_PFX(InternalMemSetMem)
26 #------------------------------------------------------------------------------
33 #------------------------------------------------------------------------------
34 ASM_PFX(InternalMemSetMem):
40 movl 12(%esp), %ecx # ecx <- Count
41 movl 8(%esp), %edi # edi <- Buffer
44 shrl $3, %ecx # # of Qwords to set
47 movq %mm0, (%esp) # save mm0
48 movq %mm1, 8(%esp) # save mm1
52 por %mm1, %mm0 # fill mm0 with 8 Value's
57 movq (%esp), %mm0 # restore mm0
58 movq 8(%esp), %mm1 # restore mm1
59 addl $0x10, %esp # stack cleanup
64 movl 8(%esp), %eax # eax <- Buffer as return value