]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / X64 / SetMem64.nasm
CommitLineData
152c2d87
JJ
1;------------------------------------------------------------------------------\r
2;\r
3; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
9344f092 4; SPDX-License-Identifier: BSD-2-Clause-Patent\r
152c2d87
JJ
5;\r
6; Module Name:\r
7;\r
8; SetMem64.Asm\r
9;\r
10; Abstract:\r
11;\r
12; SetMem64 function\r
13;\r
14; Notes:\r
15;\r
16;------------------------------------------------------------------------------\r
17\r
18 DEFAULT REL\r
19 SECTION .text\r
20\r
21;------------------------------------------------------------------------------\r
22; VOID *\r
23; InternalMemSetMem64 (\r
24; IN VOID *Buffer,\r
25; IN UINTN Count,\r
26; IN UINT64 Value\r
27; )\r
28;------------------------------------------------------------------------------\r
29global ASM_PFX(InternalMemSetMem64)\r
30ASM_PFX(InternalMemSetMem64):\r
31 push rdi\r
32 mov rdi, rcx\r
33 mov rax, r8\r
34 xchg rcx, rdx\r
35 rep stosq\r
36 mov rax, rdx\r
37 pop rdi\r
38 ret\r
39\r