Lines Matching refs:LOG

22 #define LOG(...)  macro
231 LOG(""); in self_test_division()
232 LOG("division tests (division and modulo):"); in self_test_division()
236 LOG("- test with unsigned small integers:"); in self_test_division()
244 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
247 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
249 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
250 LOG(""); in self_test_division()
252 LOG("- test with signed small integers, negative numerator:"); in self_test_division()
260 LOG(" 0x%08x / 0x%08x = %d / %d = %d = 0x%x)", in self_test_division()
263 LOG(" 0x%08x %% 0x%08x = %d %% %d = %d = 0x%x)", (unsigned)a, in self_test_division()
265 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
266 LOG(""); in self_test_division()
268 LOG("- test with signed small integers, negative denominator:"); in self_test_division()
274 LOG("- test with unsigned integers, big numerator (> 0x80000000):"); in self_test_division()
282 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
285 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
287 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
288 LOG(""); in self_test_division()
290 LOG("- test with unsigned integers, big num. & denom. (> 0x80000000):"); in self_test_division()
298 LOG(" 0x%08x / 0x%08x = %u / %u = %u = 0x%x)", in self_test_division()
301 LOG(" 0x%08x %% 0x%08x = %u %% %u = %u = 0x%x)", (unsigned)a, in self_test_division()
303 LOG(" check results => %s", r ? "ok" : "FAILED !!!"); in self_test_division()
304 LOG(""); in self_test_division()
317 LOG("malloc tests:"); in self_test_malloc()
318 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
322 LOG("- p1 = malloc(1024)"); in self_test_malloc()
324 LOG("- p2 = malloc(1024)"); in self_test_malloc()
325 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
333 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
334 LOG(""); in self_test_malloc()
340 LOG("- p3 = realloc(p1, 3*1024)"); in self_test_malloc()
341 LOG("- free p2"); in self_test_malloc()
344 LOG("- p2 = malloc(1024)"); in self_test_malloc()
345 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
350 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
351 LOG(""); in self_test_malloc()
352 LOG("- free p1, p2, p3"); in self_test_malloc()
363 LOG("- p3 = calloc(4, 1024)"); in self_test_malloc()
364 LOG("- p4 = calloc(0x100, 1024*1024) too big: should fail!"); in self_test_malloc()
365 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
370 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
371 LOG(""); in self_test_malloc()
372 LOG("- free p3, p4"); in self_test_malloc()
380 LOG("- p3 = memalign(%d, 1024)", 0x1000); in self_test_malloc()
382 LOG("- p1 = malloc(1024)"); in self_test_malloc()
384 LOG("- p4 = memalign(%d, 512)", 0x100); in self_test_malloc()
385 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
391 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
392 LOG(""); in self_test_malloc()
393 LOG("- free p1, p3, p4"); in self_test_malloc()
403 LOG("- p3 = memalign(%d, 1024)", 100); in self_test_malloc()
405 LOG("- p4 = memalign(%d, 1024)", 0); in self_test_malloc()
406 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_malloc()
411 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_malloc()
412 LOG(""); in self_test_malloc()
413 LOG("- free p3, p4"); in self_test_malloc()
420 LOG("- free NULL"); in self_test_malloc()
422 LOG(""); in self_test_malloc()
423 LOG("malloc test done"); in self_test_malloc()
437 LOG("nex_malloc tests:"); in self_test_nex_malloc()
438 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
442 LOG("- p1 = nex_malloc(1024)"); in self_test_nex_malloc()
444 LOG("- p2 = nex_malloc(1024)"); in self_test_nex_malloc()
445 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
453 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
454 LOG(""); in self_test_nex_malloc()
460 LOG("- p3 = nex_realloc(p1, 3*1024)"); in self_test_nex_malloc()
461 LOG("- nex_free p2"); in self_test_nex_malloc()
464 LOG("- p2 = nex_malloc(1024)"); in self_test_nex_malloc()
465 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
470 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
471 LOG(""); in self_test_nex_malloc()
472 LOG("- nex_free p1, p2, p3"); in self_test_nex_malloc()
483 LOG("- p3 = nex_calloc(4, 1024)"); in self_test_nex_malloc()
484 LOG("- p4 = nex_calloc(0x100, 1024*1024) too big: should fail!"); in self_test_nex_malloc()
485 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
490 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
491 LOG(""); in self_test_nex_malloc()
492 LOG("- nex_free p3, p4"); in self_test_nex_malloc()
500 LOG("- p3 = nex_memalign(%d, 1024)", 0x1000); in self_test_nex_malloc()
502 LOG("- p1 = nex_malloc(1024)"); in self_test_nex_malloc()
504 LOG("- p4 = nex_memalign(%d, 512)", 0x100); in self_test_nex_malloc()
505 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
511 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
512 LOG(""); in self_test_nex_malloc()
513 LOG("- nex_free p1, p3, p4"); in self_test_nex_malloc()
523 LOG("- p3 = nex_memalign(%d, 1024)", 100); in self_test_nex_malloc()
525 LOG("- p4 = nex_memalign(%d, 1024)", 0); in self_test_nex_malloc()
526 LOG(" p1=%p p2=%p p3=%p p4=%p", in self_test_nex_malloc()
531 LOG(" => test %s", r ? "ok" : "FAILED"); in self_test_nex_malloc()
532 LOG(""); in self_test_nex_malloc()
533 LOG("- nex_free p3, p4"); in self_test_nex_malloc()
540 LOG("- nex_free NULL"); in self_test_nex_malloc()
542 LOG(""); in self_test_nex_malloc()
543 LOG("nex_malloc test done"); in self_test_nex_malloc()