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>
This commit is contained in:
Michael Niedermayer 2015-09-24 18:33:11 +02:00
parent 435d000eb5
commit 5ba40c3c71

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 { \