123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef _FPMAXTOSTR_H
- #define _FPMAXTOSTR_H 1
- #include <features.h>
- #define __need_size_t
- #include <stddef.h>
- #include <stdint.h>
- #include <stdio.h>
- #include <printf.h>
- #include <sys/types.h>
- #ifdef __UCLIBC_HAS_FLOATS__
- # include <float.h>
- # include <bits/uClibc_fpmax.h>
- # define DIGITS_PER_BLOCK 9
- # define NUM_DIGIT_BLOCKS ((DECIMAL_DIG+DIGITS_PER_BLOCK-1)/DIGITS_PER_BLOCK)
- # define BUF_SIZE ( 3 + NUM_DIGIT_BLOCKS * DIGITS_PER_BLOCK )
- # ifdef __USE_OLD_VFPRINTF__
- typedef void (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len, intptr_t buf);
- extern size_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
- __fp_outfunc_t fp_outfunc) attribute_hidden;
- # else
- typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len, intptr_t buf);
- extern ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
- __fp_outfunc_t fp_outfunc) attribute_hidden;
- # endif
- # endif
- #endif
|