mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdePkg BaseMemoryLibMmx: Convert Ia32/ZeroMem.asm to NASM
The BaseTools/Scripts/ConvertMasmToNasm.py script was used to convert Ia32/ZeroMem.asm to Ia32/ZeroMem.nasm Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
bef0fef44f
commit
8dba24a6a8
@ -66,6 +66,7 @@
|
||||
Ia32/SetMem32.S
|
||||
Ia32/SetMem16.nasm
|
||||
Ia32/SetMem16.S
|
||||
Ia32/ZeroMem.nasm
|
||||
Ia32/ZeroMem.S
|
||||
Ia32/SetMem.S
|
||||
Ia32/CopyMem.S
|
||||
@ -85,6 +86,7 @@
|
||||
Ia32/SetMem32.asm
|
||||
Ia32/SetMem16.nasm
|
||||
Ia32/SetMem16.asm
|
||||
Ia32/ZeroMem.nasm
|
||||
Ia32/ZeroMem.asm
|
||||
Ia32/SetMem.asm
|
||||
Ia32/CopyMem.asm
|
||||
|
54
MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.nasm
Normal file
54
MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.nasm
Normal file
@ -0,0 +1,54 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
; This program and the accompanying materials
|
||||
; are licensed and made available under the terms and conditions of the BSD License
|
||||
; which accompanies this distribution. The full text of the license may be found at
|
||||
; http://opensource.org/licenses/bsd-license.php.
|
||||
;
|
||||
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ZeroMem.nasm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ZeroMem function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
SECTION .text
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemZeroMem (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
global ASM_PFX(InternalMemZeroMem)
|
||||
ASM_PFX(InternalMemZeroMem):
|
||||
push edi
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
mov edx, ecx
|
||||
shr ecx, 3
|
||||
jz @ZeroBytes
|
||||
pxor mm0, mm0
|
||||
.0:
|
||||
movq [edi], mm0
|
||||
add edi, 8
|
||||
loop .0
|
||||
@ZeroBytes:
|
||||
and edx, 7
|
||||
xor eax, eax
|
||||
mov ecx, edx
|
||||
rep stosb
|
||||
mov eax, [esp + 8]
|
||||
pop edi
|
||||
ret
|
||||
|
Loading…
x
Reference in New Issue
Block a user