]> git.proxmox.com Git - mirror_edk2.git/commitdiff
unify the name convention of label in .S files
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 23 Oct 2008 06:46:29 +0000 (06:46 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 23 Oct 2008 06:46:29 +0000 (06:46 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6195 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/CopyMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.S
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem64.S
MdePkg/Library/BaseMemoryLibSse2/X64/ZeroMem.S

index 3e7a396b5b4feec8e31f857b03d526c0cd1b7b3a..a9c4763483a9bd6c242964993888c2e967dffa88 100644 (file)
@@ -44,20 +44,20 @@ ASM_PFX(InternalMemCopyMem):
     lea     r9, [rsi + r8 - 1]          # r9 <- End of Source
     cmp     rsi, rdi
     mov     rax, rdi                    # rax <- Destination as return value
-    jae     _InternalMemCopyMem_al_0000
+    jae     L0
     cmp     r9, rdi
-    jae     _atSym_CopyBackward               # Copy backward if overlapped
-_InternalMemCopyMem_al_0000:
+    jae     L_CopyBackward               # Copy backward if overlapped
+L0:
     mov     rcx, r8
     and     r8, 7
     shr     rcx, 3
     rep     movsq                       # Copy as many Qwords as possible
-    jmp     _atSym_CopyBytes
-_atSym_CopyBackward:
+    jmp     L_CopyBytes
+L_CopyBackward:
     mov     rsi, r9                     # rsi <- End of Source
     lea     rdi, [rdi + r8 - 1]         # esi <- End of Destination
     std                                 # set direction flag
-_atSym_CopyBytes:
+L_CopyBytes:
     mov     rcx, r8
     rep     movsb                       # Copy bytes backward
     cld
index dc475108741e506f88efb2041bc0827f42f43154..35db797677cd9cb34a6ad988dca944142910a813 100644 (file)
@@ -44,38 +44,38 @@ ASM_PFX(InternalMemCopyMem):
     lea     r9, [rsi + r8 - 1]          # r9 <- Last byte of Source
     cmp     rsi, rdi                    
     mov     rax, rdi                    # rax <- Destination as return value
-    jae     _InternalMemCopyMem_al_0000 # Copy forward if Source > Destination
+    jae     L0                          # Copy forward if Source > Destination
     cmp     r9, rdi                     # Overlapped?
-    jae     _atSym_CopyBackward         # Copy backward if overlapped
-_InternalMemCopyMem_al_0000:            
+    jae     L_CopyBackward              # Copy backward if overlapped
+L0:            
     xor     rcx, rcx                    
     sub     rcx, rdi                    # rcx <- -rdi
     and     rcx, 15                     # rcx + rsi should be 16 bytes aligned
-    jz      _InternalMemCopyMem_al_0001 # skip if rcx == 0
+    jz      L1                          # skip if rcx == 0
     cmp     rcx, r8
     cmova   rcx, r8
     sub     r8, rcx
     rep     movsb
-_InternalMemCopyMem_al_0001:
+L1:
     mov     rcx, r8
     and     r8, 15
     shr     rcx, 4                      # rcx <- # of DQwords to copy
-    jz      _atSym_CopyBytes
-    movdqa  [rsp + 0x18], xmm0           # save xmm0 on stack
-_InternalMemCopyMem_al_0002:
+    jz      L_CopyBytes
+    movdqa  [rsp + 0x18], xmm0          # save xmm0 on stack
+L2:
     movdqu  xmm0, [rsi]                 # rsi may not be 16-byte aligned
     movntdq [rdi], xmm0                 # rdi should be 16-byte aligned
     add     rsi, 16
     add     rdi, 16
-    loop    _InternalMemCopyMem_al_0002
+    loop    L2
     mfence
-    movdqa  xmm0, [rsp + 0x18]           # restore xmm0
-    jmp     _atSym_CopyBytes            # copy remaining bytes
-_atSym_CopyBackward:
+    movdqa  xmm0, [rsp + 0x18]          # restore xmm0
+    jmp     L_CopyBytes                 # copy remaining bytes
+L_CopyBackward:
     mov     rsi, r9                     # rsi <- Last byte of Source
     lea     rdi, [rdi + r8 - 1]         # rdi <- Last byte of Destination
     std
-_atSym_CopyBytes:
+L_CopyBytes:
     mov     rcx, r8
     rep     movsb
     cld
index 50f6d19886bd91aa299f416e33362d8bdb5ae8f2..5d915d4a08a738126726f3c26daed6863c13f568 100644 (file)
@@ -53,9 +53,9 @@ L0:
     mov     rcx, rdx
     and     rdx, 15
     shr     rcx, 4
-    jz      _SetBytes_L2
+    jz      L_SetBytes
     mov     ah, al                      # ax <- Value repeats twice
-    movdqa  [rsp + 0x10], xmm0           # save xmm0
+    movdqa  [rsp + 0x10], xmm0          # save xmm0
     movd    xmm0, eax                   # xmm0[0..16] <- Value repeats twice
     pshuflw xmm0, xmm0, 0               # xmm0[0..63] <- Value repeats 8 times
     movlhps xmm0, xmm0                  # xmm0 <- Value repeats 16 times
@@ -64,8 +64,8 @@ L1:
     add     rdi, 16
     loop    L1
     mfence
-    movdqa  xmm0, [rsp + 0x10]           # restore xmm0
-_SetBytes_L2:
+    movdqa  xmm0, [rsp + 0x10]          # restore xmm0
+L_SetBytes:
     mov     ecx, edx                    # high 32 bits of rcx are always zero
     rep     stosb
     mov     rax, r9                     # rax <- Return value
index 5678fcd192998850a72b0bbd9fe75b76f02289af..354222c1a9dd7ad7959c269c1e76f9a560c33867 100644 (file)
@@ -54,7 +54,7 @@ L0:
     mov     rcx, rdx
     and     edx, 7
     shr     rcx, 3
-    jz      _SetWords_L2
+    jz      L_SetWords
     movd    xmm0, eax
     pshuflw xmm0, xmm0, 0
     movlhps xmm0, xmm0
@@ -63,7 +63,7 @@ L1:
     add     rdi, 16
     loop    L1
     mfence
-_SetWords_L2:
+L_SetWords:
     mov     ecx, edx
     rep     stosw
     mov     rax, r9
index 06ffe768ebc1af1b7a5f78c92ed0df7e8ba1bf81..2ace79ad9691ece5f26a604ca6ad14dad1a6ac1c 100644 (file)
@@ -54,7 +54,7 @@ L0:
     mov     rcx, rdx
     and     edx, 3
     shr     rcx, 2
-    jz      _SetDwords_L2
+    jz      L_SetDwords
     movd    xmm0, eax
     pshufd  xmm0, xmm0, 0
 L1:
@@ -62,7 +62,7 @@ L1:
     add     rdi, 16
     loop    L1
     mfence
-_SetDwords_L2:
+L_SetDwords:
     mov     ecx, edx
     rep     stosd
     mov     rax, r9
index e0aa176d58a1d165dfd7e3c2bbebd7ce66ae7ffb..870f8c0ee930d60d0ec52e390d61d175fa26d378 100644 (file)
@@ -46,14 +46,14 @@ ASM_PFX(InternalMemSetMem64):
     dec     rcx
 L0:
     shr     rcx, 1
-    jz      _SetQwords_L2
+    jz      L_SetQwords
     movlhps xmm0, xmm0
 L1:
     movntdq [rdx], xmm0
     lea     rdx, [rdx + 16]
     loop    L1
     mfence
-_SetQwords_L2:
+L_SetQwords:
     jnc     L2
     mov     [rdx], r8
 L2:
index 2712579db85535e5bc61368a5e3751b86ac55a17..f152d98a39864d2a440c449c3e404e922ba5d06d 100644 (file)
@@ -51,14 +51,14 @@ L0:
     mov     rcx, rdx
     and     edx, 15
     shr     rcx, 4
-    jz      _ZeroBytes_L2
+    jz      L_ZeroBytes
     pxor    xmm0, xmm0
 L1:
     movntdq [rdi], xmm0                 # rdi should be 16-byte aligned
     add     rdi, 16
     loop    L1
     mfence
-_ZeroBytes_L2:
+L_ZeroBytes:
     mov     ecx, edx
     rep     stosb
     mov     rax, r8