diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-25 03:13:50 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-25 03:13:50 +0000 |
commit | a0bdf7588a4896aade0a4194722324a1b2cc2b8f (patch) | |
tree | 55a2ff5a0f579b35f1290a9adb13aefdf641310b /MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm | |
parent | b26978d3dd8989962b8c806b78473d9049ead048 (diff) | |
download | edk2-a0bdf7588a4896aade0a4194722324a1b2cc2b8f.tar.gz edk2-a0bdf7588a4896aade0a4194722324a1b2cc2b8f.tar.bz2 edk2-a0bdf7588a4896aade0a4194722324a1b2cc2b8f.zip |
Change name.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5981 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm new file mode 100644 index 0000000000..39adb01b7f --- /dev/null +++ b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm @@ -0,0 +1,53 @@ +;------------------------------------------------------------------------------
+;
+; Copyright (c) 2006, Intel Corporation
+; All rights reserved. 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:
+;
+; ScanMem8.Asm
+;
+; Abstract:
+;
+; ScanMem8 function
+;
+; Notes:
+;
+; The following BaseMemoryLib instances contain the same copy of this file:
+;
+; BaseMemoryLibRepStr
+; BaseMemoryLibMmx
+; BaseMemoryLibSse2
+; BaseMemoryLibOptDxe
+; BaseMemoryLibOptPei
+;
+;------------------------------------------------------------------------------
+
+ .code
+
+;------------------------------------------------------------------------------
+; CONST VOID *
+; EFIAPI
+; InternalMemScanMem8 (
+; IN CONST VOID *Buffer,
+; IN UINTN Length,
+; IN UINT8 Value
+; );
+;------------------------------------------------------------------------------
+InternalMemScanMem8 PROC USES rdi
+ mov rdi, rcx
+ mov rcx, rdx
+ mov rax, r8
+ repne scasb
+ lea rax, [rdi - 1]
+ cmovnz rax, rcx ; set rax to 0 if not found
+ ret
+InternalMemScanMem8 ENDP
+
+ END
|