Lines Matching refs:correct

191                 A correct = input(x, y) + input(x + 1, y);  in test()  local
192 if (im1(x, y) != correct) { in test()
193 … printf("im1(%d, %d) = %f instead of %f\n", x, y, (double)(im1(x, y)), (double)(correct)); in test()
210 A correct = input(x, y) - input(x + 1, y); in test() local
211 if (im2(x, y) != correct) { in test()
212 … printf("im2(%d, %d) = %f instead of %f\n", x, y, (double)(im2(x, y)), (double)(correct)); in test()
229 A correct = input(x, y) * input(x + 1, y); in test() local
230 if (im3(x, y) != correct) { in test()
231 … printf("im3(%d, %d) = %f instead of %f\n", x, y, (double)(im3(x, y)), (double)(correct)); in test()
248 A correct = input(x, y) > input(x + 1, y) ? input(x + 2, y) : input(x + 3, y); in test() local
249 if (im4(x, y) != correct) { in test()
250 … printf("im4(%d, %d) = %f instead of %f\n", x, y, (double)(im4(x, y)), (double)(correct)); in test()
277 A correct = input(xCoord, yCoord); in test() local
279 if (im5(x, y) != correct) { in test()
280 … printf("im5(%d, %d) = %f instead of %f\n", x, y, (double)(im5(x, y)), (double)(correct)); in test()
296 A correct = input(x, y) * ((A)(2)); in test() local
297 if (im5a(x, y) != correct) { in test()
298 … printf("im5a(%d, %d) = %f instead of %f\n", x, y, (double)(im5a(x, y)), (double)(correct)); in test()
322 int correct = y == yCoord ? 1 : 0; in test() local
323 if (im6(x, y) != correct) { in test()
324 printf("im6(%d, %d) = %d instead of %d\n", x, y, im6(x, y), correct); in test()
359 float correct = hypotf(1.1f, (float)input(x, y)); in test() local
360 if (!close_enough(im8(x, y), correct)) { in test()
362 x, y, (double)im8(x, y), correct); in test()
382 A correct = divide(input(x, y), clamped); in test() local
384 if (!close_enough(im9(x, y), correct)) { in test()
388 (double)(im9(x, y)), (double)(correct)); in test()
406 A correct = divide(input(x, y), (A)c); in test() local
408 if (!close_enough(im10(x, y), correct)) { in test()
412 (double)(correct)); in test()
431 A correct = ((x % 2) == 0) ? input(x / 2, y) : input(x / 2, y + 1); in test() local
432 if (im11(x, y) != correct) { in test()
433 … printf("im11(%d, %d) = %f instead of %f\n", x, y, (double)(im11(x, y)), (double)(correct)); in test()
450 A correct = input(W - 1 - x, H - 1 - y); in test() local
451 if (im12(x, y) != correct) { in test()
452 … printf("im12(%d, %d) = %f instead of %f\n", x, y, (double)(im12(x, y)), (double)(correct)); in test()
469 A correct = input(x + 3, y); in test() local
470 if (im13(x, y) != correct) { in test()
471 … printf("im13(%d, %d) = %f instead of %f\n", x, y, (double)(im13(x, y)), (double)(correct)); in test()
487 A correct = input(x, y); in test() local
488 if (correct <= A(0)) correct = -correct; in test()
489 if (im14(x, y) != correct) { in test()
490 … printf("im14(%d, %d) = %f instead of %f\n", x, y, (double)(im14(x, y)), (double)(correct)); in test()
683 A correct = (A)(lerped); in test() local
684 if (im21(x, y) != correct) { in test()
685 … printf("lerp(%f, %f, %f) = %f instead of %f\n", a, b, w, (double)(im21(x, y)), (double)(correct)); in test()
703 T correct = T(absd((double)input(x, y), (double)input(x + 1, y))); in test() local
704 if (im22(x, y) != correct) { in test()
705 … printf("im22(%d, %d) = %f instead of %f\n", x, y, (double)(im22(x, y)), (double)(correct)); in test()