1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
16 ;------------------------------------------------------------------------------
21 ;------------------------------------------------------------------------------
23 ; InternalMemZeroMem (
27 ;------------------------------------------------------------------------------
28 global ASM_PFX(InternalMemZeroMem)
29 ASM_PFX(InternalMemZeroMem):
31 push rcx ; push Buffer
32 xor rax, rax ; rax = 0
33 mov rdi, rcx ; rdi = Buffer
34 mov rcx, rdx ; rcx = Count
35 shr rcx, 3 ; rcx = rcx / 8
36 and rdx, 7 ; rdx = rdx & 7
39 mov rcx, rdx ; rcx = rdx
41 pop rax ; rax = Buffer