]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibMmx / Ia32 / SetMem64.nasm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; SetMem64.nasm
9 ;
10 ; Abstract:
11 ;
12 ; SetMem64 function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 SECTION .text
19
20 ;------------------------------------------------------------------------------
21 ; VOID *
22 ; EFIAPI
23 ; InternalMemSetMem64 (
24 ; IN VOID *Buffer,
25 ; IN UINTN Count,
26 ; IN UINT64 Value
27 ; )
28 ;------------------------------------------------------------------------------
29 global ASM_PFX(InternalMemSetMem64)
30 ASM_PFX(InternalMemSetMem64):
31 mov eax, [esp + 4]
32 mov ecx, [esp + 8]
33 movq mm0, [esp + 12]
34 mov edx, eax
35 .0:
36 movq [edx], mm0
37 add edx, 8
38 loop .0
39 ret
40