2008-11-03 10:25:10 +01:00
|
|
|
#
|
|
|
|
# ConvertAsm.py: Automatically generated from ScanMem16.asm
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
2018-06-27 15:11:33 +02:00
|
|
|
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
2010-04-23 18:08:36 +02:00
|
|
|
# This program and the accompanying materials
|
2008-11-03 10:25:10 +01:00
|
|
|
# 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
|
2010-06-25 23:56:02 +02:00
|
|
|
# http://opensource.org/licenses/bsd-license.php.
|
2008-11-03 10:25:10 +01:00
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|
|
|
|
# ScanMem16.S
|
|
|
|
#
|
|
|
|
# Abstract:
|
|
|
|
#
|
|
|
|
# ScanMem16 function
|
|
|
|
#
|
|
|
|
# Notes:
|
|
|
|
#
|
|
|
|
# The following BaseMemoryLib instances contain the same copy of this file:
|
|
|
|
#
|
|
|
|
# BaseMemoryLibRepStr
|
|
|
|
# BaseMemoryLibMmx
|
|
|
|
# BaseMemoryLibSse2
|
|
|
|
# BaseMemoryLibOptDxe
|
|
|
|
# BaseMemoryLibOptPei
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# CONST VOID *
|
|
|
|
# EFIAPI
|
|
|
|
# InternalMemScanMem16 (
|
|
|
|
# IN CONST VOID *Buffer,
|
|
|
|
# IN UINTN Length,
|
|
|
|
# IN UINT16 Value
|
|
|
|
# );
|
|
|
|
#------------------------------------------------------------------------------
|
2009-05-20 12:22:09 +02:00
|
|
|
ASM_GLOBAL ASM_PFX(InternalMemScanMem16)
|
2008-11-03 10:25:10 +01:00
|
|
|
ASM_PFX(InternalMemScanMem16):
|
2009-08-11 17:32:16 +02:00
|
|
|
pushq %rdi
|
2018-06-27 15:11:33 +02:00
|
|
|
movq %rcx, %rdi
|
|
|
|
movq %r8, %rax
|
|
|
|
movq %rdx, %rcx
|
2008-11-03 10:25:10 +01:00
|
|
|
repne scasw
|
2009-08-11 17:32:16 +02:00
|
|
|
leaq -2(%rdi), %rax
|
2018-06-27 15:11:33 +02:00
|
|
|
cmovnz %rcx, %rax
|
2009-08-11 17:32:16 +02:00
|
|
|
popq %rdi
|
2008-11-03 10:25:10 +01:00
|
|
|
ret
|
|
|
|
|