Lines Matching refs:over

49             bool over;  in test_int8()  local
51 n = int_add(x, y, 8, &over); in test_int8()
54 assert(over); in test_int8()
56 assert(over); in test_int8()
58 assert(!over); in test_int8()
61 n = int_sub(x, y, 8, &over); in test_int8()
64 assert(over); in test_int8()
66 assert(over); in test_int8()
68 assert(!over); in test_int8()
81 bool over; in test_int16() local
83 n = int_add(x, y, 16, &over); in test_int16()
86 assert(over); in test_int16()
88 assert(over); in test_int16()
90 assert(!over); in test_int16()
93 n = int_sub(x, y, 16, &over); in test_int16()
96 assert(over); in test_int16()
98 assert(over); in test_int16()
100 assert(!over); in test_int16()
111 bool over; in test_int24() local
113 s = int_add(1, (1ULL<<23)-1, 24, &over); assert(over); in test_int24()
114 s = int_add((1ULL<<23)-1, 1, 24, &over); assert(over); in test_int24()
115 s = int_sub(-1, (1ULL<<23), 24, &over); in test_int24()
116 assert(!over); in test_int24()
118 s = int_sub((1ULL<<23), 1, 24, &over); assert(over); in test_int24()
120 s = int_add(0, 0, 24, &over); in test_int24()
121 assert(!over); in test_int24()
123 s = int_sub(0, 0, 24, &over); in test_int24()
124 assert(!over); in test_int24()
126 s = int_add(0, -1, 24, &over); in test_int24()
127 assert(!over); in test_int24()
129 s = int_sub(0, 1, 24, &over); in test_int24()
130 assert(!over); in test_int24()
132 s = int_add(0, (1ULL<<23), 24, &over); in test_int24()
133 assert(!over); in test_int24()
135 s = int_sub(0, (1ULL<<23)-1, 24, &over); in test_int24()
136 assert(!over); in test_int24()
139 s = int_add(-1, 0, 24, &over); in test_int24()
140 assert(!over); in test_int24()
142 s = int_add(-1, 1, 24, &over); in test_int24()
143 assert(!over); in test_int24()
145 s = int_sub(-1, -1, 24, &over); in test_int24()
146 assert(!over); in test_int24()
148 s = int_sub(-1, (1ULL<<23)-1, 24, &over); in test_int24()
149 assert(!over); in test_int24()
157 bool over; in test_int32() local
159 s = int_add(1, (1ULL<<31)-1, 32, &over); assert(over); in test_int32()
160 s = int_add((1ULL<<31)-1, 1, 32, &over); assert(over); in test_int32()
161 s = int_sub(-1, (1ULL<<31), 32, &over); in test_int32()
163 assert(!over); in test_int32()
164 s = int_sub((1ULL<<31), 1, 32, &over); assert(over); in test_int32()
166 s = int_add(0, 0, 32, &over); in test_int32()
168 assert(!over); in test_int32()
169 s = int_sub(0, 0, 32, &over); in test_int32()
171 assert(!over); in test_int32()
172 s = int_add(0, -1, 32, &over); in test_int32()
174 assert(!over); in test_int32()
175 s = int_sub(0, 1, 32, &over); in test_int32()
177 assert(!over); in test_int32()
178 s = int_add(0, (1ULL<<31), 32, &over); in test_int32()
180 assert(!over); in test_int32()
181 s = int_sub(0, (1ULL<<31)-1, 32, &over); in test_int32()
183 assert(!over); in test_int32()
185 s = int_add(-1, 0, 32, &over); in test_int32()
187 assert(!over); in test_int32()
188 s = int_add(-1, 1, 32, &over); in test_int32()
190 assert(!over); in test_int32()
191 s = int_sub(-1, -1, 32, &over); in test_int32()
193 assert(!over); in test_int32()
194 s = int_sub(-1, (1ULL<<31)-1, 32, &over); in test_int32()
196 assert(!over); in test_int32()
203 bool over; in test_int64() local
205 s = int_add(1, (1ULL<<63)-1, 64, &over); assert(over); in test_int64()
206 s = int_add((1ULL<<63)-1, 1, 64, &over); assert(over); in test_int64()
207 s = int_sub(-1, (1ULL<<63), 64, &over); in test_int64()
209 assert(!over); in test_int64()
210 s = int_sub((1ULL<<63), 1, 64, &over); assert(over); in test_int64()
212 s = int_add(0, 0, 64, &over); in test_int64()
214 assert(!over); in test_int64()
215 s = int_sub(0, 0, 64, &over); in test_int64()
217 assert(!over); in test_int64()
218 s = int_add(0, -1, 64, &over); in test_int64()
220 assert(!over); in test_int64()
221 s = int_sub(0, 1, 64, &over); in test_int64()
223 assert(!over); in test_int64()
224 s = int_add(0, (1ULL<<63), 64, &over); in test_int64()
226 assert(!over); in test_int64()
227 s = int_sub(0, (1ULL<<63)-1, 64, &over); in test_int64()
229 assert(!over); in test_int64()
231 s = int_add(-1, 0, 64, &over); in test_int64()
233 assert(!over); in test_int64()
234 s = int_add(-1, 1, 64, &over); in test_int64()
236 assert(!over); in test_int64()
237 s = int_sub(-1, -1, 64, &over); in test_int64()
239 assert(!over); in test_int64()
240 s = int_sub(-1, (1ULL<<63)-1, 64, &over); in test_int64()
242 assert(!over); in test_int64()