Lines Matching refs:r

175 	intmax_t r;  in self_test_mul_signed_overflow()  local
177 if (MUL_OVERFLOW(32, -30, &r)) in self_test_mul_signed_overflow()
179 if (r != -960) in self_test_mul_signed_overflow()
181 if (MUL_OVERFLOW(-32, 30, &r)) in self_test_mul_signed_overflow()
183 if (r != -960) in self_test_mul_signed_overflow()
185 if (MUL_OVERFLOW(32, 30, &r)) in self_test_mul_signed_overflow()
187 if (r != 960) in self_test_mul_signed_overflow()
190 if (MUL_OVERFLOW(INTMAX_MAX, 1, &r)) in self_test_mul_signed_overflow()
192 if (r != INTMAX_MAX) in self_test_mul_signed_overflow()
194 if (MUL_OVERFLOW(INTMAX_MAX / 4, 4, &r)) in self_test_mul_signed_overflow()
196 if (r != (INTMAX_MAX - 3)) in self_test_mul_signed_overflow()
198 if (!MUL_OVERFLOW(INTMAX_MAX / 4 + 1, 4, &r)) in self_test_mul_signed_overflow()
200 if (!MUL_OVERFLOW(INTMAX_MAX, INTMAX_MAX, &r)) in self_test_mul_signed_overflow()
202 if (MUL_OVERFLOW(INTMAX_MIN + 1, 1, &r)) in self_test_mul_signed_overflow()
204 if (r != INTMAX_MIN + 1) in self_test_mul_signed_overflow()
206 if (MUL_OVERFLOW(1, INTMAX_MIN + 1, &r)) in self_test_mul_signed_overflow()
208 if (r != INTMAX_MIN + 1) in self_test_mul_signed_overflow()
210 if (MUL_OVERFLOW(0, INTMAX_MIN, &r)) in self_test_mul_signed_overflow()
212 if (r != 0) in self_test_mul_signed_overflow()
214 if (MUL_OVERFLOW(1, INTMAX_MIN, &r)) in self_test_mul_signed_overflow()
216 if (r != INTMAX_MIN) in self_test_mul_signed_overflow()
226 bool r; in self_test_division() local
239 r = ((b * c + d) == a); in self_test_division()
240 if (!r) in self_test_division()
247 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
255 r = ((b * c + d) == a); in self_test_division()
256 if (!r) in self_test_division()
263 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
277 r = (((unsigned)b * (unsigned)c + (unsigned)d) == (unsigned)a); in self_test_division()
278 if (!r) in self_test_division()
285 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
293 r = (((unsigned)b * (unsigned)c + (unsigned)d) == (unsigned)a); in self_test_division()
294 if (!r) in self_test_division()
301 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
312 bool r; in self_test_malloc() local
325 r = (p1 && p2 && malloc_buffer_is_within_alloced(p1, 1024) && in self_test_malloc()
329 if (!r) in self_test_malloc()
331 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
345 r = (p2 && p3); in self_test_malloc()
346 if (!r) in self_test_malloc()
348 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
365 r = (p3 && !p4); in self_test_malloc()
366 if (!r) in self_test_malloc()
368 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
385 r = (p1 && p3 && p4 && in self_test_malloc()
387 if (!r) in self_test_malloc()
389 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
406 r = (!p3 && !p4); in self_test_malloc()
407 if (!r) in self_test_malloc()
409 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
432 bool r; in self_test_nex_malloc() local
445 r = (p1 && p2 && nex_malloc_buffer_is_within_alloced(p1, 1024) && in self_test_nex_malloc()
449 if (!r) in self_test_nex_malloc()
451 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
465 r = (p2 && p3); in self_test_nex_malloc()
466 if (!r) in self_test_nex_malloc()
468 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
485 r = (p3 && !p4); in self_test_nex_malloc()
486 if (!r) in self_test_nex_malloc()
488 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
505 r = (p1 && p3 && p4 && in self_test_nex_malloc()
507 if (!r) in self_test_nex_malloc()
509 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
526 r = (!p3 && !p4); in self_test_nex_malloc()
527 if (!r) in self_test_nex_malloc()
529 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()