]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptPei / 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.Asm
9 ;
10 ; Abstract:
11 ;
12 ; SetMem64 function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 SECTION .text
19
20 ;------------------------------------------------------------------------------
21 ; VOID *
22 ; InternalMemSetMem64 (
23 ; IN VOID *Buffer,
24 ; IN UINTN Count,
25 ; IN UINT64 Value
26 ; )
27 ;------------------------------------------------------------------------------
28 global ASM_PFX(InternalMemSetMem64)
29 ASM_PFX(InternalMemSetMem64):
30 push edi
31 mov ecx, [esp + 12]
32 mov eax, [esp + 16]
33 mov edx, [esp + 20]
34 mov edi, [esp + 8]
35 .0:
36 mov [edi + ecx*8 - 8], eax
37 mov [edi + ecx*8 - 4], edx
38 loop .0
39 mov eax, edi
40 pop edi
41 ret
42