Home | History | Annotate | Download | only in libtests

Lines Matching refs:correct

330    /* Test this character (ch) to ensure the parser does the correct thing.
645 * numbers, so correct for that here.
793 double correct = -log(i/255.)/log(2.)*65536;
794 double error = png_log8bit(i) - correct;
800 i != 0 && png_log8bit(i) != floor(correct+.5))
803 i, png_log8bit(i), correct);
813 double correct = -log(i/65535.)/log(2.)*65536;
814 double error = png_log16bit(i) - correct;
820 i != 0 && png_log16bit(i) != floor(correct+.5))
825 " error: %f\n", i, png_log16bit(i), correct, error);
837 double correct = exp(-i/65536. * log(2.)) * (65536. * 65536);
838 double error = png_exp(i) - correct;
845 " error: %f\n", i, png_exp(i), correct, error);
855 double correct = exp(-i/65536. * log(2.)) * 255;
856 double error = png_exp8bit(i) - correct;
863 " error: %f\n", i, png_exp8bit(i), correct, error);
873 double correct = exp(-i/65536. * log(2.)) * 65535;
874 double error = png_exp16bit(i) - correct;
881 " error: %f\n", i, png_exp16bit(i), correct, error);
902 double correct = pow(j/255., g) * 255;
904 double error = out - correct;
908 if (out != floor(correct+.5))
911 j, g, out, correct, error);
921 double correct = pow(j/65535., g) * 65535;
923 double error = out - correct;
930 j, g, out, correct, error);