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
2727 #define randomize_buffers() \
2828 do { \
2929 for (int i = 0; i < 16*18*2; i++) \
30− src[i] = rnd() & 0x3; \
30+ src[i] = rnd() & 0xff; \
3131 } while (0)
3232
3333 static void check_chroma_mc(void)
@@ -47,12 +47,12 @@ static void check_chroma_mc(void) · 13 unmodified lines
4747 #define CHECK_CHROMA_MC(name) \
4848 do { \
4949 if (check_func(h.name## _pixels_tab[size], #name "_mc%d", 1 << (3 - size))) { \
50− for (int x = 0; x < 2; x++) { \
51− for (int y = 0; y < 2; y++) { \
50+ for (int x = 0, mx = 0; x < 2; x++, mx = 1 + (rnd() % 7)) { \
51+ for (int y = 0, my = 0; y < 2; y++, my = 1 + (rnd() % 7)) { \
5252 memcpy(dst0, src, 16 * 18); \
5353 memcpy(dst1, src, 16 * 18); \
54− call_ref(dst0, src, 16, 16, x, y); \
55− call_new(dst1, src, 16, 16, x, y); \
54+ call_ref(dst0, src, 16, 16, mx, my); \
55+ call_new(dst1, src, 16, 16, mx, my); \
5656 if (memcmp(dst0, dst1, 16 * 16)) { \
5757 fprintf(stderr, #name ": x:%i, y:%i\n", x, y); \
5858 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