comparison test/test_arith.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
68 #define CREATE_TESTS(bits, size) \ 68 #define CREATE_TESTS(bits, size) \
69 CREATE_TESTS_SIGN(, d, , bits, size) \ 69 CREATE_TESTS_SIGN(, d, , bits, size) \
70 CREATE_TESTS_SIGN(u, u, U, bits, size) 70 CREATE_TESTS_SIGN(u, u, U, bits, size)
71 71
72 CREATE_TESTS(8, 16) 72 CREATE_TESTS(8, 16)
73 CREATE_TESTS(16, 8)
74 CREATE_TESTS(32, 4)
75 CREATE_TESTS(64, 2)
76
77 CREATE_TESTS(8, 32)
78 CREATE_TESTS(16, 16)
79 CREATE_TESTS(32, 8)
80 CREATE_TESTS(64, 4)
81
82 CREATE_TESTS(8, 64)
83 CREATE_TESTS(16, 32)
84 CREATE_TESTS(32, 16)
85 CREATE_TESTS(64, 8)
86 73
87 #undef CREATE_TESTS_SIGN 74 #undef CREATE_TESTS_SIGN
88 #undef CREATE_TESTS 75 #undef CREATE_TESTS
89 #undef CREATE_TEST 76 #undef CREATE_TEST
90 77
121 #define RUN_TESTS(bits, size) \ 108 #define RUN_TESTS(bits, size) \
122 RUN_TESTS_SIGN( , bits, size) \ 109 RUN_TESTS_SIGN( , bits, size) \
123 RUN_TESTS_SIGN(u, bits, size) 110 RUN_TESTS_SIGN(u, bits, size)
124 111
125 RUN_TESTS(8, 16) 112 RUN_TESTS(8, 16)
126 RUN_TESTS(16, 8)
127 RUN_TESTS(32, 4)
128 RUN_TESTS(64, 2)
129
130 RUN_TESTS(8, 32)
131 RUN_TESTS(16, 16)
132 RUN_TESTS(32, 8)
133 RUN_TESTS(64, 4)
134
135 RUN_TESTS(8, 64)
136 RUN_TESTS(16, 32)
137 RUN_TESTS(32, 16)
138 RUN_TESTS(64, 8)
139 113
140 #undef RUN_TESTS_SIGN 114 #undef RUN_TESTS_SIGN
141 #undef RUN_TESTS 115 #undef RUN_TESTS
142 116
143 return ret; 117 return ret;