#
# Notes:
#
-# The following BaseMemoryLib instances share the same version of this file:
+# The following BaseMemoryLib instances contain the same copy of this file:
#
# BaseMemoryLibRepStr
# BaseMemoryLibMmx
# BaseMemoryLibSse2
+# BaseMemoryLibOptDxe
+# BaseMemoryLibOptPei
#
#------------------------------------------------------------------------------
- .686:
- .code:
+.globl _InternalMemScanMem8
-.global _InternalMemScanMem8
+#------------------------------------------------------------------------------
+# CONST VOID *
+# EFIAPI
+# InternalMemScanMem8 (
+# IN CONST VOID *Buffer,
+# IN UINTN Length,
+# IN UINT8 Value
+# );
+#------------------------------------------------------------------------------
_InternalMemScanMem8:
push %edi
- movl 12(%esp),%ecx
- movl 8(%esp),%edi
- movb 16(%esp),%al
+ movl 12(%esp), %ecx
+ movl 8(%esp), %edi
+ movb 16(%esp), %al
repne scasb
- leal -1(%edi),%eax
+ leal -1(%edi), %eax
cmovnz %ecx, %eax
+ pop %edi
ret