Skip to content

Commit

Permalink
Fix an error in the MIPS DSPr2 fancy upsampling routine
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1277 632fc199-4ca6-4c93-a231-07263d6284db
  • Loading branch information
dcommander committed May 9, 2014
1 parent a32b3ec commit 771886c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simd/jsimd_mips_dspr2.S
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,8 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
beqz a0, 3f
sll t0, a0, 2
lw s1, 0(a3)
addu s0, s1, t0
li s3, 0x10001
addu s0, s1, t0
0:
addiu t8, a1, -2
srl t9, t8, 2
Expand Down Expand Up @@ -574,8 +574,9 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
addiu t7, 4
11:
andi t8, 3
beqz t8, 3f
beqz t8, 22f
addiu t7, 1

2:
lbu t0, 0(t7)
addiu t7, 1
Expand All @@ -595,6 +596,7 @@ LEAF_MIPS_DSPR2(jsimd_h2v1_fancy_upsample_mips_dspr2)
bgtz t8, 2b
addiu s2, 2

22:
lbu t0, 0(t7)
lbu t2, -1(t7)
sll t1, t0, 1
Expand Down

0 comments on commit 771886c

Please sign in to comment.