]>
Commit | Line | Data |
---|---|---|
b1ff428c | 1 | #\r |
2 | # ConvertAsm.py: Automatically generated from SetMem64.asm\r | |
3 | #\r | |
4 | #------------------------------------------------------------------------------\r | |
5 | #\r | |
9095d37b | 6 | # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r |
085c3968 | 7 | # This program and the accompanying materials\r |
b1ff428c | 8 | # are licensed and made available under the terms and conditions of the BSD License\r |
9 | # which accompanies this distribution. The full text of the license may be found at\r | |
2fc59a00 | 10 | # http://opensource.org/licenses/bsd-license.php.\r |
b1ff428c | 11 | #\r |
12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | #\r | |
15 | # Module Name:\r | |
16 | #\r | |
17 | # SetMem64.S\r | |
18 | #\r | |
19 | # Abstract:\r | |
20 | #\r | |
21 | # SetMem64 function\r | |
22 | #\r | |
23 | # Notes:\r | |
24 | #\r | |
25 | #------------------------------------------------------------------------------\r | |
26 | \r | |
27 | \r | |
28 | #------------------------------------------------------------------------------\r | |
29 | # VOID *\r | |
30 | # InternalMemSetMem64 (\r | |
31 | # IN VOID *Buffer,\r | |
32 | # IN UINTN Count,\r | |
33 | # IN UINT64 Value\r | |
34 | # )\r | |
35 | #------------------------------------------------------------------------------\r | |
132f41f0 | 36 | ASM_GLOBAL ASM_PFX(InternalMemSetMem64)\r |
b1ff428c | 37 | ASM_PFX(InternalMemSetMem64):\r |
945f5f40 | 38 | movd %r8, %mm0 #Value\r |
1be80390 | 39 | movq %rcx, %rax #rax <- Buffer\r |
1fef058f | 40 | xchg %rdx, %rcx #rcx <- Count\r |
b1ff428c | 41 | L0:\r |
9095d37b | 42 | movntq %mm0, (%rdx)\r |
1fef058f | 43 | addq $8, %rdx\r |
b1ff428c | 44 | loop L0\r |
45 | mfence\r | |
46 | ret\r | |
47 | \r |