History

checkasm/rv40dsp: cover more cases

sunyuechi committed 1 year ago

Commit 82da7691 parent 40feba51 file · +5 −5Browse files

Unified · Split

tests/checkasm/rv40dsp.c+5−5
@@ -27,7 +27,7 @@ · 26 unmodified lines
27#define randomize_buffers() \27#define randomize_buffers() \
28 do { \28 do { \
29 for (int i = 0; i < 16*18*2; i++) \29 for (int i = 0; i < 16*18*2; i++) \
30 src[i] = rnd() & 0x3; \30 src[i] = rnd() & 0xff; \
31 } while (0)31 } while (0)
32 32
33static void check_chroma_mc(void)33static void check_chroma_mc(void)
@@ -47,12 +47,12 @@ static void check_chroma_mc(void) · 13 unmodified lines
47#define CHECK_CHROMA_MC(name) \47#define CHECK_CHROMA_MC(name) \
48 do { \48 do { \
49 if (check_func(h.name## _pixels_tab[size], #name "_mc%d", 1 << (3 - size))) { \49 if (check_func(h.name## _pixels_tab[size], #name "_mc%d", 1 << (3 - size))) { \
50 for (int x = 0; x < 2; x++) { \50 for (int x = 0, mx = 0; x < 2; x++, mx = 1 + (rnd() % 7)) { \
51 for (int y = 0; y < 2; y++) { \51 for (int y = 0, my = 0; y < 2; y++, my = 1 + (rnd() % 7)) { \
52 memcpy(dst0, src, 16 * 18); \52 memcpy(dst0, src, 16 * 18); \
53 memcpy(dst1, src, 16 * 18); \53 memcpy(dst1, src, 16 * 18); \
54 call_ref(dst0, src, 16, 16, x, y); \54 call_ref(dst0, src, 16, 16, mx, my); \
55 call_new(dst1, src, 16, 16, x, y); \55 call_new(dst1, src, 16, 16, mx, my); \
56 if (memcmp(dst0, dst1, 16 * 16)) { \56 if (memcmp(dst0, dst1, 16 * 16)) { \
57 fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \57 fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \
58 fail(); \58 fail(); \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t