X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseMemoryLibMmx%2FX64%2FCompareMem.S;h=5580d6237a64de2997a6068a7ffd640baedd59e0;hb=4df876adfb234d0c73b8be407ef3436cdce86af5;hp=2dc71b2b9a7bc2a44b148b41a57dbf4be7b0207d;hpb=710a5b358451cf471ec82fec0637ed6ea8c687b4;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S index 2dc71b2b9a..5580d6237a 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.S @@ -1,3 +1,6 @@ +# +# ConvertAsm.py: Automatically generated from CompareMem.asm +# #------------------------------------------------------------------------------ # # Copyright (c) 2006, Intel Corporation @@ -11,7 +14,7 @@ # # Module Name: # -# CompareMem.Asm +# CompareMem.S # # Abstract: # @@ -29,6 +32,7 @@ # #------------------------------------------------------------------------------ + #------------------------------------------------------------------------------ # INTN # EFIAPI @@ -38,17 +42,19 @@ # IN UINTN Length # ); #------------------------------------------------------------------------------ -.global _InternalMemCompareMem; -_InternalMemCompareMem: - push %rsi - push %rdi - mov %rcx, %rsi - mov %rdx, %rdi - mov %r8, %rcx +.intel_syntax noprefix +.globl ASM_PFX(InternalMemCompareMem) +ASM_PFX(InternalMemCompareMem): + push rsi + push rdi + mov rsi, rcx + mov rdi, rdx + mov rcx, r8 repe cmpsb - movzbq -1(%rsi), %rax - movzbq -1(%rdi), %rdx - sub %rdx, %rax - pop %rdi - pop %rsi + movzx rax, byte ptr [rsi - 1] + movzx rdx, byte ptr [rdi - 1] + sub rax, rdx + pop rdi + pop rsi ret +