Searched refs:max_digits (Results 1 – 6 of 6) sorted by relevance
/picolibc-latest/newlib/libc/tinystdio/ |
D | ldtoa_engine.c | 53 __ldtoa_engine(long double x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __ldtoa_engine() argument 65 return max_digits; in __ldtoa_engine() 68 return max_digits; in __ldtoa_engine() 118 int save_max_digits = max_digits; in __ldtoa_engine() 121 max_digits = min(max_digits, max(1, max_decimals + decexp + 1)); in __ldtoa_engine() 123 int decimals = max_digits; in __ldtoa_engine() 134 max_digits = min(save_max_digits, max(1, max_decimals + decexp + 1)); in __ldtoa_engine() 139 for (i = 0; i < max_digits; i++) { in __ldtoa_engine() 148 return max_digits; in __ldtoa_engine()
|
D | dtoa_engine.c | 65 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __dtoa_engine() argument 86 max_digits = 1; in __dtoa_engine() 172 int save_max_digits = max_digits; in __dtoa_engine() 192 max_digits = min(max_digits, max(max_decimals<0, max_decimals + decexp + 1)); in __dtoa_engine() 195 int decimals = max_digits; in __dtoa_engine() 207 max_digits = min(save_max_digits, max(1, max_decimals + decexp + 1)); in __dtoa_engine() 213 for (i = 0; i < max_digits; i++) { in __dtoa_engine() 222 return max_digits; in __dtoa_engine()
|
D | ftoa_ryu.c | 55 f2d(const uint32_t ieeeMantissa, const uint32_t ieeeExponent, int max_digits, bool fmode, int max_d… in f2d() argument 183 int save_max_digits = max_digits; in f2d() 208 max_digits = min_int(max_digits, max_int(max_decimals<0, max_decimals + exp + 1)); in f2d() 213 if (decimalLength9(vr) <= max_digits || (max_digits == 0 && vr == 0)) in f2d() 265 if (len > max_digits) { in f2d() 270 max_digits = min_int(save_max_digits, max_int(1, max_decimals + exp + 1)); in f2d() 273 if (len > max_digits) { in f2d() 281 if (len > max_digits) in f2d() 282 len = max_digits; in f2d() 299 __ftoa_engine(float x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __ftoa_engine() argument [all …]
|
D | dtoa_ryu.c | 72 d2d(const uint64_t ieeeMantissa, const uint32_t ieeeExponent, int max_digits, bool fmode, int max_d… in d2d() argument 207 int save_max_digits = max_digits; in d2d() 232 max_digits = min_int(max_digits, max_int(max_decimals<0, max_decimals + exp + 1)); in d2d() 239 if (decimalLength17(vr) <= max_digits || (max_digits == 0 && vr == 0)) in d2d() 298 if (len > max_digits) { in d2d() 304 max_digits = min_int(save_max_digits, max_int(1, max_decimals + exp + 1)); in d2d() 307 if (len > max_digits) { in d2d() 315 if (len > max_digits) in d2d() 316 len = max_digits; in d2d() 364 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals) in __dtoa_engine() argument [all …]
|
D | dtoa.h | 121 __ldtoa_engine(long double x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals); 132 __dtoa_engine(FLOAT64 x, struct dtoa *dtoa, int max_digits, bool fmode, int max_decimals); 142 int __ftoa_engine (float val, struct dtoa *ftoa, int max_digits, bool fmode, int max_decimals);
|
/picolibc-latest/newlib/libm/test/ |
D | dcvt.c | 102 int max_digits; /* total number of digits to print */ member 303 && digit < in->max_digits) in _cvte() 315 && digit < in->max_digits) in _cvte() 369 && digit < in->max_digits in _cvtf() 389 && digit < in->max_digits ) in _cvtf() 409 && (digit < in->max_digits)) in _cvtf() 420 && digit < in->max_digits) in _cvtf() 488 in.max_digits = precision; in _dcvt() 496 in.max_digits = precision; in _dcvt() 520 in.max_digits = _MAX_CHARS; in _dcvt() [all …]
|