1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2007, 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 ;------------------------------------------------------------------------------
36 ;------------------------------------------------------------------------------
42 mov ecx, [esp + 16] ; ecx <- Count
43 cmp ecx, 0 ; if Count == 0, do nothing
45 mov edi, [esp + 8] ; edi <- Buffer
48 shr ecx, 3 ; # of Qwords to set
51 movq [esp], mm0 ; save mm0
52 movq [esp + 8], mm1 ; save mm1
56 por mm0, mm1 ; fill mm0 with 8 Value's
61 movq mm0, [esp] ; restore mm0
62 movq mm1, [esp + 8] ; restore mm1
63 add esp, 10h ; stack cleanup
68 mov eax, [esp + 8] ; eax <- Buffer as return value