Browse Source

tests/checkasm/vp9dsp: Revert first hunk of bddcf758d3

The change was wrong, also add a comment explaining it

Found-by: BBB
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
5ba40c3c71
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      tests/checkasm/vp9dsp.c

+ 3
- 1
tests/checkasm/vp9dsp.c View File

@@ -102,7 +102,9 @@ static void check_ipred(void)
((uint16_t *)buf0)[(a) + (b) * jstride] = c; \
} \
} while (0)
#define setdx(a,b,c,d) setpx(a,b,(c)-(d)+(rnd()%((d)*2+1)))

// c can be an assignment and must not be put under ()
#define setdx(a,b,c,d) setpx(a,b,c-(d)+(rnd()%((d)*2+1)))
#define setsx(a,b,c,d) setdx(a,b,c,(d) << (bit_depth - 8))
#define randomize_buffers(bidx, lineoff, str) \
do { \


Loading…
Cancel
Save