Fix an error in the MIPS DSPr2 fancy upsampling routine
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1277 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -522,8 +522,8 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
|
|||||||
beqz a0, 3f
|
beqz a0, 3f
|
||||||
sll t0, a0, 2
|
sll t0, a0, 2
|
||||||
lw s1, 0(a3)
|
lw s1, 0(a3)
|
||||||
addu s0, s1, t0
|
|
||||||
li s3, 0x10001
|
li s3, 0x10001
|
||||||
|
addu s0, s1, t0
|
||||||
0:
|
0:
|
||||||
addiu t8, a1, -2
|
addiu t8, a1, -2
|
||||||
srl t9, t8, 2
|
srl t9, t8, 2
|
||||||
@@ -574,8 +574,9 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
|
|||||||
addiu t7, 4
|
addiu t7, 4
|
||||||
11:
|
11:
|
||||||
andi t8, 3
|
andi t8, 3
|
||||||
beqz t8, 3f
|
beqz t8, 22f
|
||||||
addiu t7, 1
|
addiu t7, 1
|
||||||
|
|
||||||
2:
|
2:
|
||||||
lbu t0, 0(t7)
|
lbu t0, 0(t7)
|
||||||
addiu t7, 1
|
addiu t7, 1
|
||||||
@@ -595,6 +596,7 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
|
|||||||
bgtz t8, 2b
|
bgtz t8, 2b
|
||||||
addiu s2, 2
|
addiu s2, 2
|
||||||
|
|
||||||
|
22:
|
||||||
lbu t0, 0(t7)
|
lbu t0, 0(t7)
|
||||||
lbu t2, -1(t7)
|
lbu t2, -1(t7)
|
||||||
sll t1, t0, 1
|
sll t1, t0, 1
|
||||||
|
|||||||
Reference in New Issue
Block a user