[Commits] SDL: Fixed build warnings from nasm on some Hermes blitters.
libsdl.org revision control
commits-owner at libsdl.org
Sat Sep 10 21:35:01 PDT 2011
details: http://hg.libsdl.org/SDL/rev/d832552bc9e5
changeset: 5884:d832552bc9e5
user: Ryan C. Gordon <icculus at icculus.org>
date: Sun Sep 11 00:33:18 2011 -0400
description:
Fixed build warnings from nasm on some Hermes blitters.
diffstat:
src/hermes/x86p_16.asm | 56 +++++++++++-----------
src/hermes/x86p_32.asm | 115 ++++++++++++++++++++++++------------------------
2 files changed, 85 insertions(+), 86 deletions(-)
diffs (675 lines):
diff -r 739ad55fe50d -r d832552bc9e5 src/hermes/x86p_16.asm
--- a/src/hermes/x86p_16.asm Sat Sep 10 23:21:19 2011 -0400
+++ b/src/hermes/x86p_16.asm Sun Sep 11 00:33:18 2011 -0400
@@ -30,7 +30,7 @@
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov al,[esi]
mov ah,[esi+1]
mov ebx,eax
@@ -47,10 +47,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov eax,edi
and eax,BYTE 11b
jz .L4
@@ -70,7 +70,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save count
+.L4: ; save count
push ecx
; unroll twice
@@ -84,8 +84,8 @@
neg ecx
jmp SHORT .L6
-.L5 mov [edi+ecx*4-4],eax
-.L6 mov eax,[esi+ecx*4]
+.L5: mov [edi+ecx*4-4],eax
+.L6: mov eax,[esi+ecx*4]
mov ebx,[esi+ecx*4]
and eax,07E007E0h
@@ -125,7 +125,7 @@
add esi,BYTE 2
add edi,BYTE 2
-.L7
+.L7:
retn
@@ -140,7 +140,7 @@
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov al,[esi]
mov ah,[esi+1]
mov ebx,eax
@@ -154,10 +154,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov eax,edi
and eax,BYTE 11b
jz .L4
@@ -174,7 +174,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save ebp
+.L4: ; save ebp
push ebp
; save count
@@ -191,7 +191,7 @@
xor ebp,ebp
sub ebp,ecx
-.L5 mov eax,[esi+ebp*8] ; agi?
+.L5: mov eax,[esi+ebp*8] ; agi?
mov ecx,[esi+ebp*8+4]
mov ebx,eax
@@ -217,7 +217,7 @@
; tail
pop ecx
-.L6 and ecx,BYTE 11b
+.L6: and ecx,BYTE 11b
jz .L7
mov al,[esi]
mov ah,[esi+1]
@@ -233,7 +233,7 @@
dec ecx
jmp SHORT .L6
-.L7 pop ebp
+.L7: pop ebp
retn
@@ -248,7 +248,7 @@
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov al,[esi]
mov ah,[esi+1]
mov ebx,eax
@@ -267,10 +267,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov eax,edi
and eax,BYTE 11b
jz .L4
@@ -292,7 +292,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save count
+.L4: ; save count
push ecx
; unroll twice
@@ -306,8 +306,8 @@
neg ecx
jmp SHORT .L6
-.L5 mov [edi+ecx*4-4],eax
-.L6 mov eax,[esi+ecx*4]
+.L5: mov [edi+ecx*4-4],eax
+.L6: mov eax,[esi+ecx*4]
shr eax,1
mov ebx,[esi+ecx*4]
@@ -351,7 +351,7 @@
add esi,BYTE 2
add edi,BYTE 2
-.L7
+.L7:
retn
@@ -366,7 +366,7 @@
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov al,[esi+0]
mov ah,[esi+1]
mov ebx,eax
@@ -384,10 +384,10 @@
inc edi
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 mov eax,edi
+.L3: mov eax,edi
and eax,BYTE 11b
jz .L4
mov al,[esi+0]
@@ -408,7 +408,7 @@
dec ecx
jmp SHORT .L3
-.L4 ; save ebp
+.L4: ; save ebp
push ebp
; save count
@@ -422,7 +422,7 @@
mov bl,[esi+1]
mov dh,[esi+2]
-.L5 shl edx,16
+.L5: shl edx,16
mov bh,[esi+3]
shl ebx,16
@@ -463,7 +463,7 @@
and ecx,BYTE 11b
jz .L7
-.L6 ; tail
+.L6: ; tail
mov al,[esi+0]
mov ah,[esi+1]
mov ebx,eax
@@ -482,7 +482,7 @@
dec ecx
jnz .L6
-.L7 pop ebp
+.L7: pop ebp
retn
%ifidn __OUTPUT_FORMAT__,elf32
diff -r 739ad55fe50d -r d832552bc9e5 src/hermes/x86p_32.asm
--- a/src/hermes/x86p_32.asm Sat Sep 10 23:21:19 2011 -0400
+++ b/src/hermes/x86p_32.asm Sun Sep 11 00:33:18 2011 -0400
@@ -41,7 +41,7 @@
cmp ecx,BYTE 32
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov edx,[esi]
bswap edx
ror edx,8
@@ -50,10 +50,10 @@
add edi,BYTE 4
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; save ebp
+.L3: ; save ebp
push ebp
; unroll four times
@@ -63,7 +63,7 @@
; save count
push ecx
-.L4 mov eax,[esi]
+.L4: mov eax,[esi]
mov ebx,[esi+4]
bswap eax
@@ -100,7 +100,7 @@
and ecx,BYTE 11b
jz .L6
-.L5 ; tail loop
+.L5: ; tail loop
mov edx,[esi]
bswap edx
ror edx,8
@@ -110,7 +110,7 @@
dec ecx
jnz .L5
-.L6 pop ebp
+.L6: pop ebp
retn
@@ -122,7 +122,7 @@
cmp ecx,BYTE 32
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov edx,[esi]
rol edx,8
mov [edi],edx
@@ -130,10 +130,10 @@
add edi,BYTE 4
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; save ebp
+.L3: ; save ebp
push ebp
; unroll four times
@@ -143,7 +143,7 @@
; save count
push ecx
-.L4 mov eax,[esi]
+.L4: mov eax,[esi]
mov ebx,[esi+4]
rol eax,8
@@ -172,7 +172,7 @@
and ecx,BYTE 11b
jz .L6
-.L5 ; tail loop
+.L5: ; tail loop
mov edx,[esi]
rol edx,8
mov [edi],edx
@@ -181,7 +181,7 @@
dec ecx
jnz .L5
-.L6 pop ebp
+.L6: pop ebp
retn
@@ -193,7 +193,7 @@
cmp ecx,BYTE 32
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov edx,[esi]
bswap edx
mov [edi],edx
@@ -201,10 +201,10 @@
add edi,BYTE 4
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; save ebp
+.L3: ; save ebp
push ebp
; unroll four times
@@ -214,7 +214,7 @@
; save count
push ecx
-.L4 mov eax,[esi]
+.L4: mov eax,[esi]
mov ebx,[esi+4]
mov ecx,[esi+8]
@@ -245,7 +245,7 @@
and ecx,BYTE 11b
jz .L6
-.L5 ; tail loop
+.L5: ; tail loop
mov edx,[esi]
bswap edx
mov [edi],edx
@@ -254,7 +254,7 @@
dec ecx
jnz .L5
-.L6 pop ebp
+.L6: pop ebp
retn
@@ -268,7 +268,7 @@
cmp ecx,BYTE 32
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov al,[esi]
mov bl,[esi+1]
mov dl,[esi+2]
@@ -279,10 +279,10 @@
add edi,BYTE 3
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov edx,edi
and edx,BYTE 11b
jz .L4
@@ -297,7 +297,7 @@
dec ecx
jmp SHORT .L3
-.L4 ; unroll 4 times
+.L4: ; unroll 4 times
push ebp
mov ebp,ecx
shr ebp,2
@@ -305,7 +305,7 @@
; save count
push ecx
-.L5 mov eax,[esi] ; first dword eax = [A][R][G][B]
+.L5: mov eax,[esi] ; first dword eax = [A][R][G][B]
mov ebx,[esi+4] ; second dword ebx = [a][r][g][b]
shl eax,8 ; eax = [R][G][B][.]
@@ -339,7 +339,7 @@
and ecx,BYTE 11b
jz .L7
-.L6 ; tail loop
+.L6: ; tail loop
mov al,[esi]
mov bl,[esi+1]
mov dl,[esi+2]
@@ -351,7 +351,7 @@
dec ecx
jnz .L6
-.L7 pop ebp
+.L7: pop ebp
retn
@@ -365,8 +365,7 @@
cmp ecx,BYTE 32
ja .L3
-
-.L1 ; short loop
+.L1: ; short loop
mov dl,[esi]
mov bl,[esi+1]
mov al,[esi+2]
@@ -377,10 +376,10 @@
add edi,BYTE 3
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov edx,edi
and edx,BYTE 11b
jz .L4
@@ -395,7 +394,7 @@
dec ecx
jmp SHORT .L3
-.L4 ; unroll 4 times
+.L4: ; unroll 4 times
push ebp
mov ebp,ecx
shr ebp,2
@@ -403,10 +402,10 @@
; save count
push ecx
-.L5
+.L5:
mov eax,[esi] ; first dword eax = [A][R][G][B]
mov ebx,[esi+4] ; second dword ebx = [a][r][g][b]
-
+
bswap eax ; eax = [B][G][R][A]
bswap ebx ; ebx = [b][g][r][a]
@@ -439,7 +438,7 @@
and ecx,BYTE 11b
jz .L7
-.L6 ; tail loop
+.L6: ; tail loop
mov dl,[esi]
mov bl,[esi+1]
mov al,[esi+2]
@@ -451,7 +450,7 @@
dec ecx
jnz .L6
-.L7
+.L7:
pop ebp
retn
@@ -465,7 +464,7 @@
cmp ecx,BYTE 16
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov bl,[esi+0] ; blue
mov al,[esi+1] ; green
mov ah,[esi+2] ; red
@@ -485,7 +484,7 @@
retn
-.L3 ; head
+.L3: ; head
mov ebx,edi
and ebx,BYTE 11b
jz .L4
@@ -581,7 +580,7 @@
cmp ecx,BYTE 16
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov ah,[esi+0] ; blue
mov al,[esi+1] ; green
mov bl,[esi+2] ; red
@@ -596,10 +595,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov ebx,edi
and ebx,BYTE 11b
jz .L4
@@ -617,7 +616,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save count
+.L4: ; save count
push ecx
; unroll twice
@@ -631,9 +630,9 @@
neg ecx
jmp SHORT .L6
-.L5
+.L5:
mov [edi+ecx*4-4],eax
-.L6
+.L6:
mov edx,[esi+ecx*8+4]
mov bh,[esi+ecx*8+4]
@@ -681,7 +680,7 @@
add esi,BYTE 4
add edi,BYTE 2
-.L7
+.L7:
retn
@@ -695,7 +694,7 @@
cmp ecx,BYTE 16
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov bl,[esi+0] ; blue
mov al,[esi+1] ; green
mov ah,[esi+2] ; red
@@ -710,10 +709,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov ebx,edi
and ebx,BYTE 11b
jz .L4
@@ -731,7 +730,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save count
+.L4: ; save count
push ecx
; unroll twice
@@ -745,9 +744,9 @@
neg ecx
jmp SHORT .L6
-.L5
+.L5:
mov [edi+ecx*4-4],eax
-.L6
+.L6:
mov eax,[esi+ecx*8]
shr ah,3
@@ -792,7 +791,7 @@
add esi,BYTE 4
add edi,BYTE 2
-.L7
+.L7:
retn
@@ -807,7 +806,7 @@
ja .L3
-.L1 ; short loop
+.L1: ; short loop
mov ah,[esi+0] ; blue
mov al,[esi+1] ; green
mov bl,[esi+2] ; red
@@ -822,10 +821,10 @@
add edi,BYTE 2
dec ecx
jnz .L1
-.L2
+.L2:
retn
-.L3 ; head
+.L3: ; head
mov ebx,edi
and ebx,BYTE 11b
jz .L4
@@ -843,7 +842,7 @@
add edi,BYTE 2
dec ecx
-.L4 ; save count
+.L4: ; save count
push ecx
; unroll twice
@@ -857,9 +856,9 @@
neg ecx
jmp SHORT .L6
-.L5
+.L5:
mov [edi+ecx*4-4],eax
-.L6
+.L6:
mov edx,[esi+ecx*8+4]
mov bh,[esi+ecx*8+4]
@@ -907,7 +906,7 @@
add esi,BYTE 4
add edi,BYTE 2
-.L7
+.L7:
retn
@@ -920,7 +919,7 @@
_ConvertX86p32_8RGB332:
-.L_ALIGNED
+.L_ALIGNED:
push ecx
shr ecx,2 ; We will draw 4 pixels at once
More information about the commits
mailing list