Mercurial > vec
comparison test/test_compare.h @ 13:53197dbf4e8e
vec.h: initial refactor for runtime SSE and stuff
author | Paper <paper@tflc.us> |
---|---|
date | Tue, 19 Nov 2024 15:54:38 -0500 |
parents | d1d5d767004c |
children | e05c257c6a23 |
comparison
equal
deleted
inserted
replaced
11:13575ba795d3 | 13:53197dbf4e8e |
---|---|
31 CREATE_TEST(sign, psign, bits, size, cmpge, orig_a[i] >= orig_b[i]) | 31 CREATE_TEST(sign, psign, bits, size, cmpge, orig_a[i] >= orig_b[i]) |
32 | 32 |
33 #define CREATE_TESTS(bits, size) CREATE_TESTS_SIGN(, d, bits, size) CREATE_TESTS_SIGN(u, u, bits, size) | 33 #define CREATE_TESTS(bits, size) CREATE_TESTS_SIGN(, d, bits, size) CREATE_TESTS_SIGN(u, u, bits, size) |
34 | 34 |
35 CREATE_TESTS(8, 16) | 35 CREATE_TESTS(8, 16) |
36 CREATE_TESTS(16, 8) | |
37 CREATE_TESTS(32, 4) | |
38 CREATE_TESTS(64, 2) | |
39 | |
40 CREATE_TESTS(8, 32) | |
41 CREATE_TESTS(16, 16) | |
42 CREATE_TESTS(32, 8) | |
43 CREATE_TESTS(64, 4) | |
44 | |
45 CREATE_TESTS(8, 64) | |
46 CREATE_TESTS(16, 32) | |
47 CREATE_TESTS(32, 16) | |
48 CREATE_TESTS(64, 8) | |
49 | 36 |
50 #undef CREATE_TESTS_SIGN | 37 #undef CREATE_TESTS_SIGN |
51 #undef CREATE_TESTS | 38 #undef CREATE_TESTS |
52 #undef CREATE_TEST | 39 #undef CREATE_TEST |
53 | 40 |
71 #define RUN_TESTS(bits, size) \ | 58 #define RUN_TESTS(bits, size) \ |
72 RUN_TESTS_SIGN( , bits, size) \ | 59 RUN_TESTS_SIGN( , bits, size) \ |
73 RUN_TESTS_SIGN(u, bits, size) | 60 RUN_TESTS_SIGN(u, bits, size) |
74 | 61 |
75 RUN_TESTS(8, 16) | 62 RUN_TESTS(8, 16) |
76 RUN_TESTS(16, 8) | |
77 RUN_TESTS(32, 4) | |
78 RUN_TESTS(64, 2) | |
79 | |
80 RUN_TESTS(8, 32) | |
81 RUN_TESTS(16, 16) | |
82 RUN_TESTS(32, 8) | |
83 RUN_TESTS(64, 4) | |
84 | |
85 RUN_TESTS(8, 64) | |
86 RUN_TESTS(16, 32) | |
87 RUN_TESTS(32, 16) | |
88 RUN_TESTS(64, 8) | |
89 | 63 |
90 #undef RUN_TESTS_SIGN | 64 #undef RUN_TESTS_SIGN |
91 #undef RUN_TESTS | 65 #undef RUN_TESTS |
92 | 66 |
93 return ret; | 67 return ret; |