aboutsummaryrefslogtreecommitdiff
path: root/graphics/scaler/hq3x_i386.asm
diff options
context:
space:
mode:
authorMax Horn2009-01-24 23:27:21 +0000
committerMax Horn2009-01-24 23:27:21 +0000
commitb93db9f30f9dca7398f56c3be1a5f04cbdbd3e8d (patch)
treef535494ee1a92a6c24ee5e05707448b7e6736370 /graphics/scaler/hq3x_i386.asm
parent16e7a7cd30e3523a53c0038b4e04289e07424479 (diff)
downloadscummvm-rg350-b93db9f30f9dca7398f56c3be1a5f04cbdbd3e8d.tar.gz
scummvm-rg350-b93db9f30f9dca7398f56c3be1a5f04cbdbd3e8d.tar.bz2
scummvm-rg350-b93db9f30f9dca7398f56c3be1a5f04cbdbd3e8d.zip
HQX: Removed some more branches (like in my previous commit) from interpolation macros (they are meant to speed up things, but in reality cause a slowdown -- branches are expensive on modern CPUs)
svn-id: r36047
Diffstat (limited to 'graphics/scaler/hq3x_i386.asm')
-rw-r--r--graphics/scaler/hq3x_i386.asm12
1 files changed, 0 insertions, 12 deletions
diff --git a/graphics/scaler/hq3x_i386.asm b/graphics/scaler/hq3x_i386.asm
index 3212ea93ac..b13fc10f0d 100644
--- a/graphics/scaler/hq3x_i386.asm
+++ b/graphics/scaler/hq3x_i386.asm
@@ -130,8 +130,6 @@ SECTION .text
%macro Interp1 3
mov edx,%2
mov ecx,%3
- cmp edx,ecx
- je %%fin
and edx,[_hqx_highbits]
and ecx,[_hqx_highbits]
add ecx,edx
@@ -140,7 +138,6 @@ SECTION .text
and ecx,[_hqx_highbits]
add edx,ecx
shr edx,1
-%%fin:
mov %1,dx
%endmacro
@@ -149,22 +146,16 @@ SECTION .text
%macro Interp2 4
mov edx,%3
mov ecx,%4
- cmp edx,ecx
- je %%fin1
and edx,[_hqx_highbits]
and ecx,[_hqx_highbits]
add ecx,edx
shr ecx,1
add ecx,[_hqx_lowbits]
-%%fin1:
mov edx,%2
- cmp edx,ecx
- je %%fin2
and ecx,[_hqx_highbits]
and edx,[_hqx_highbits]
add edx,ecx
shr edx,1
-%%fin2:
mov %1,dx
%endmacro
@@ -220,13 +211,10 @@ SECTION .text
%macro Interp5 3
mov edx,%2
mov ecx,%3
- cmp edx,ecx
- je %%fin
and edx,[_hqx_highbits]
and ecx,[_hqx_highbits]
add edx,ecx
shr edx,1
-%%fin:
mov %1,dx
%endmacro