Commit 5ba40c3c authored by Michael Niedermayer's avatar Michael Niedermayer

tests/checkasm/vp9dsp: Revert first hunk of bddcf758

The change was wrong, also add a comment explaining it

Found-by: BBB
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 435d000e
...@@ -102,7 +102,9 @@ static void check_ipred(void) ...@@ -102,7 +102,9 @@ static void check_ipred(void)
((uint16_t *)buf0)[(a) + (b) * jstride] = c; \ ((uint16_t *)buf0)[(a) + (b) * jstride] = c; \
} \ } \
} while (0) } 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 setsx(a,b,c,d) setdx(a,b,c,(d) << (bit_depth - 8))
#define randomize_buffers(bidx, lineoff, str) \ #define randomize_buffers(bidx, lineoff, str) \
do { \ do { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment