2 // Include common header file for this module.
4 #include "CommonHeader.h"
6 #------------------------------------------------------------------------------
8 # Copyright (c) 2006, Intel Corporation
9 # All rights reserved. This program and the accompanying materials
10 # are licensed and made available under the terms and conditions of the BSD License
11 # which accompanies this distribution. The full text of the license may be found at
12 # http://opensource.org/licenses/bsd-license.php
14 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
27 #------------------------------------------------------------------------------
34 #------------------------------------------------------------------------------
41 #------------------------------------------------------------------------------
42 .globl _InternalMemSetMem
45 movl 12(%esp), %edx # edx <- Count
46 movl 8(%esp), %edi # edi <- Buffer
47 movb 16(%esp), %al # al <- Value
50 andl $15, %ecx # ecx + edi aligns on 16-byte boundary
60 shrl $4, %ecx # ecx <- # of DQwords to set
62 movb %al, %ah # ax <- Value | (Value << 8)
66 pshuflw $0, %xmm0, %xmm0
74 addl $16, %esp # stack cleanup
79 movl 8(%esp), %eax # eax <- Buffer as return value