ref: 764e8ea1a1b21bfe936d9eb960df92d55c88ca6e
parent: fcb6a6da125364f47823bd56e9771044cb01735d
author: Martin Storsjö <[email protected]>
date: Sat Jun 29 19:36:55 EDT 2019
checkasm: ipred: Use checkasm_check*
--- a/tests/checkasm/ipred.c
+++ b/tests/checkasm/ipred.c
@@ -104,8 +104,8 @@
HIGHBD_TAIL_SUFFIX);
call_new(a_dst, stride, topleft, w, h, a, maxw, maxh
HIGHBD_TAIL_SUFFIX);
- if (memcmp(c_dst, a_dst, w * h * sizeof(*c_dst)))
- fail();
+ checkasm_check_pixel(c_dst, stride, a_dst, stride,
+ w, h, "dst");
bench_new(a_dst, stride, topleft, w, h, a, 128, 128
HIGHBD_TAIL_SUFFIX);
@@ -144,8 +144,9 @@
call_ref(c_dst, luma, stride, w_pad, h_pad, w, h);
call_new(a_dst, luma, stride, w_pad, h_pad, w, h);
- if (memcmp(c_dst, a_dst, w * h * sizeof(*c_dst)))
- fail();
+ checkasm_check(int16_t, c_dst, w * sizeof(*c_dst),
+ a_dst, w * sizeof(*a_dst),
+ w, h, "dst");
}
}
@@ -198,8 +199,8 @@
HIGHBD_TAIL_SUFFIX);
call_new(a_dst, stride, topleft, w, h, ac, alpha
HIGHBD_TAIL_SUFFIX);
- if (memcmp(c_dst, a_dst, w * h * sizeof(*c_dst)))
- fail();
+ checkasm_check_pixel(c_dst, stride, a_dst, stride,
+ w, h, "dst");
bench_new(a_dst, stride, topleft, w, h, ac, alpha
HIGHBD_TAIL_SUFFIX);
@@ -236,8 +237,7 @@
call_ref(c_dst, stride, pal, idx, w, h);
call_new(a_dst, stride, pal, idx, w, h);
- if (memcmp(c_dst, a_dst, w * h * sizeof(*c_dst)))
- fail();
+ checkasm_check_pixel(c_dst, stride, a_dst, stride, w, h, "dst");
bench_new(a_dst, stride, pal, idx, w, h);
}