Lines Matching defs:fp
662 png_init_io(png_structrp png_ptr, png_FILE_p fp)
669 png_ptr->io_ptr = (png_voidp)fp;
2636 /* ASCII to fp functions */
2829 double fp, unsigned int precision)
2846 if (fp < 0)
2848 fp = -fp;
2853 if (fp >= DBL_MIN && fp <= DBL_MAX)
2867 (void)frexp(fp, &exp_b10); /* exponent to base 2 */
2874 while (base < DBL_MIN || base < fp)
2886 /* Normalize fp and correct exp_b10, after this fp is in the
2893 fp /= base;
2894 while (fp >= 1) fp /= 10, ++exp_b10;
2896 /* Because of the code above fp may, at this point, be
2927 fp *= 10;
2934 fp = modf(fp, &d);
2938 d = floor(fp + .5);
3000 fp = 0; /* Guarantees termination below. */
3039 while (cdigits+czero < precision+clead && fp > DBL_MIN);
3117 else if (!(fp >= DBL_MIN))
3144 png_size_t size, png_fixed_point fp)
3154 if (fp < 0)
3155 *ascii++ = 45, num = -fp;
3157 num = fp;
3221 png_fixed(png_const_structrp png_ptr, double fp, png_const_charp text)
3223 double r = floor(100000 * fp + .5);
3768 * hardware FP limitations. (E.g. if the hardware conversion always
4429 FILE *fp = png_voidcast(FILE*, cp->png_ptr->io_ptr);
4433 if (fp != NULL)
4436 (void)fclose(fp);