]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/X64/CompareMem.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseMemoryLib / X64 / CompareMem.S
CommitLineData
b341712e 1#\r
2# ConvertAsm.py: Automatically generated from CompareMem.asm\r
3#\r
4#------------------------------------------------------------------------------\r
5#\r
2c7e5c2f
HT
6# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
7# This program and the accompanying materials\r
b341712e 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
10# http://opensource.org/licenses/bsd-license.php\r
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# CompareMem.S\r
18#\r
19# Abstract:\r
20#\r
21# CompareMem function\r
22#\r
23# Notes:\r
24#\r
25# The following BaseMemoryLib instances share the same version of this file:\r
26#\r
27# BaseMemoryLibRepStr\r
28# BaseMemoryLibMmx\r
29# BaseMemoryLibSse2\r
30#\r
31#------------------------------------------------------------------------------\r
32\r
33#include <EdkIIGlueBase.h>\r
34#------------------------------------------------------------------------------\r
35# INTN\r
36# EFIAPI\r
37# InternalMemCompareMem (\r
38# IN CONST VOID *DestinationBuffer,\r
39# IN CONST VOID *SourceBuffer,\r
40# IN UINTN Length\r
41# );\r
42#------------------------------------------------------------------------------\r
b341712e 43.globl ASM_PFX(InternalMemCompareMem)\r
44ASM_PFX(InternalMemCompareMem):\r
86345de5 45 pushq %rsi\r
46 pushq %rdi\r
47 movq %rcx, %rsi\r
48 movq %rdx, %rdi\r
49 movq %r8, %rcx\r
b341712e 50 repe cmpsb\r
86345de5 51 movzbq -1(%rsi) , %rax\r
52 movzbq -1(%rdi) , %rdx\r
53 subq %rdx, %rax\r
54 popq %rdi\r
55 popq %rsi\r
b341712e 56 ret\r
57\r