MdePkg: Clean up source files

1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Liming Gao
2018-06-27 21:11:33 +08:00
parent d1102dba72
commit 9095d37b8f
729 changed files with 15683 additions and 15683 deletions

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -46,13 +46,13 @@ ASM_GLOBAL ASM_PFX(InternalMemCompareMem)
ASM_PFX(InternalMemCompareMem):
pushq %rsi
pushq %rdi
movq %rcx, %rsi
movq %rdx, %rdi
movq %r8, %rcx
movq %rcx, %rsi
movq %rdx, %rdi
movq %r8, %rcx
repe cmpsb
movzbq -1(%rsi), %rax
movzbq -1(%rdi), %rdx
subq %rdx, %rax
subq %rdx, %rax
popq %rdi
popq %rsi
ret

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -40,14 +40,14 @@ ASM_PFX(InternalMemCopyMem):
pushq %rdi
movq %rdx, %rsi # rsi <- Source
movq %rcx, %rdi # rdi <- Destination
leaq -1(%rsi, %r8,), %r9 # r9 <- End of Source
cmpq %rdi, %rsi
leaq -1(%rsi, %r8,), %r9 # r9 <- End of Source
cmpq %rdi, %rsi
movq %rdi, %rax # rax <- Destination as return value
jae L0
cmpq %rdi, %r9
jae L_CopyBackward # Copy backward if overlapped
L0:
movq %r8, %rcx
movq %r8, %rcx
andq $7, %r8
shrq $3, %rcx # rcx <- # of Qwords to copy
jz L_CopyBytes
@@ -55,7 +55,7 @@ L0:
L1:
movq (%rsi), %mm0
movntq %mm0, (%rdi)
addq $8, %rsi
addq $8, %rsi
addq $8, %rdi
loop L1
mfence
@@ -66,7 +66,7 @@ L_CopyBackward:
leaq -1(%rdi, %r8,), %rdi # rdi <- End of Destination
std # set direction flag
L_CopyBytes:
movq %r8, %rcx
movq %r8, %rcx
rep movsb # Copy bytes backward
cld
popq %rdi

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -45,12 +45,12 @@
ASM_GLOBAL ASM_PFX(InternalMemScanMem16)
ASM_PFX(InternalMemScanMem16):
pushq %rdi
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
repne scasw
leaq -2(%rdi), %rax
cmovnz %rcx, %rax
cmovnz %rcx, %rax
popq %rdi
ret

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -45,12 +45,12 @@
ASM_GLOBAL ASM_PFX(InternalMemScanMem32)
ASM_PFX(InternalMemScanMem32):
pushq %rdi
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
repne scasl
leaq -4(%rdi), %rax
cmovnz %rcx, %rax
cmovnz %rcx, %rax
popq %rdi
ret

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -45,11 +45,11 @@
ASM_GLOBAL ASM_PFX(InternalMemScanMem64)
ASM_PFX(InternalMemScanMem64):
pushq %rdi
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
movq %rcx, %rdi
movq %r8, %rax
movq %rdx, %rcx
repne scasq
leaq -8(%rdi), %rax
cmovnz %rcx, %rax
cmovnz %rcx, %rax
popq %rdi
ret

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -45,9 +45,9 @@
ASM_GLOBAL ASM_PFX(InternalMemScanMem8)
ASM_PFX(InternalMemScanMem8):
pushq %rdi
movq %rcx, %rdi
movq %rdx, %rcx
movq %r8, %rax
movq %rcx, %rdi
movq %rdx, %rcx
movq %r8, %rax
repne scasb
leaq -1(%rdi), %rax
cmovnz %rcx, %rax # set rax to 0 if not found

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -43,12 +43,12 @@ ASM_PFX(InternalMemSetMem):
movq %rcx, %r8
movq %r8, %rdi # rdi <- Buffer
movq %rdx, %rcx
andq $7, %rdx
andq $7, %rdx
shrq $3, %rcx
jz L_SetBytes
.byte 0x0f, 0x70, 0x0C0, 0x00
L0:
movntq %mm0, (%rdi)
movntq %mm0, (%rdi)
addq $8, %rdi
loop L0
mfence

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -37,22 +37,22 @@
ASM_GLOBAL ASM_PFX(InternalMemSetMem16)
ASM_PFX(InternalMemSetMem16):
pushq %rdi
movq %r8, %rax
movd %rax, %mm0
movq %rcx, %r8
movq %r8, %rdi
movq %rdx, %rcx
andl $3, %edx
movq %r8, %rax
movd %rax, %mm0
movq %rcx, %r8
movq %r8, %rdi
movq %rdx, %rcx
andl $3, %edx
shrq $2, %rcx
jz L_SetWords
.byte 0x0f, 0x70, 0x0C0, 0x00
L0:
movntq %mm0, (%rdi)
addq $8, %rdi
movntq %mm0, (%rdi)
addq $8, %rdi
loop L0
mfence
L_SetWords:
movl %edx, %ecx
movl %edx, %ecx
rep stosw
movq %r8, %rax
popq %rdi

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -43,13 +43,13 @@ ASM_PFX(InternalMemSetMem32):
jz L_SetDwords
.byte 0x0f, 0x70, 0x0C0, 0x44
L0:
movntq %mm0, (%rdx)
movntq %mm0, (%rdx)
leaq 8(%rdx), %rdx # use "lea" to avoid flag changes
loop L0
mfence
L_SetDwords:
jnc L1
movd %mm0, (%rdx)
movd %mm0, (%rdx)
L1:
ret

View File

@@ -3,7 +3,7 @@
#
#------------------------------------------------------------------------------
#
# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# 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
@@ -39,7 +39,7 @@ ASM_PFX(InternalMemSetMem64):
movq %rcx, %rax #rax <- Buffer
xchg %rdx, %rcx #rcx <- Count
L0:
movntq %mm0, (%rdx)
movntq %mm0, (%rdx)
addq $8, %rdx
loop L0
mfence