HelenOS sources
precision 208 boot/generic/src/printf_core.c static int print_str(char *str, int width, unsigned int precision,
precision 216 boot/generic/src/printf_core.c if ((precision == 0) || (precision > strw))
precision 217 boot/generic/src/printf_core.c precision = strw;
precision 221 boot/generic/src/printf_core.c width -= precision;
precision 231 boot/generic/src/printf_core.c size_t size = str_lsize(str, precision);
precision 259 boot/generic/src/printf_core.c static int print_number(uint64_t num, int width, int precision, int base,
precision 331 boot/generic/src/printf_core.c if ((precision == 0) && (width > size))
precision 332 boot/generic/src/printf_core.c precision = width - size + number_size;
precision 336 boot/generic/src/printf_core.c if (number_size > precision) {
precision 338 boot/generic/src/printf_core.c precision = number_size;
precision 341 boot/generic/src/printf_core.c width -= precision + size - number_size;
precision 391 boot/generic/src/printf_core.c precision -= number_size;
precision 392 boot/generic/src/printf_core.c while (precision-- > 0) {
precision 580 boot/generic/src/printf_core.c int precision = 0;
precision 586 boot/generic/src/printf_core.c precision *= 10;
precision 587 boot/generic/src/printf_core.c precision += uc - '0';
precision 600 boot/generic/src/printf_core.c precision = (int) va_arg(ap, int);
precision 601 boot/generic/src/printf_core.c if (precision < 0) {
precision 603 boot/generic/src/printf_core.c precision = 0;
precision 664 boot/generic/src/printf_core.c retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
precision 761 boot/generic/src/printf_core.c precision = size << 1;
precision 778 boot/generic/src/printf_core.c if ((retval = print_number(number, width, precision,
precision 298 common/printf/printf_core.c static int print_str(char *str, int width, unsigned int precision,
precision 307 common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 308 common/printf/printf_core.c precision = strw;
precision 312 common/printf/printf_core.c width -= precision;
precision 322 common/printf/printf_core.c size_t size = str_lsize(str, precision);
precision 347 common/printf/printf_core.c static int print_wstr(char32_t *str, int width, unsigned int precision,
precision 356 common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 357 common/printf/printf_core.c precision = strw;
precision 361 common/printf/printf_core.c width -= precision;
precision 371 common/printf/printf_core.c size_t size = wstr_lsize(str, precision);
precision 399 common/printf/printf_core.c static int print_number(uint64_t num, int width, int precision, int base,
precision 403 common/printf/printf_core.c if (precision < 0) {
precision 404 common/printf/printf_core.c precision = 0;
precision 476 common/printf/printf_core.c if ((precision == 0) && (width > size))
precision 477 common/printf/printf_core.c precision = width - size + number_size;
precision 481 common/printf/printf_core.c if (number_size > precision) {
precision 483 common/printf/printf_core.c precision = number_size;
precision 486 common/printf/printf_core.c width -= precision + size - number_size;
precision 536 common/printf/printf_core.c precision -= number_size;
precision 537 common/printf/printf_core.c while (precision-- > 0) {
precision 705 common/printf/printf_core.c static int print_double_str_fixed(double_str_t *val_str, int precision, int width,
precision 713 common/printf/printf_core.c assert(0 <= precision);
precision 714 common/printf/printf_core.c assert(0 <= dec_exp || -dec_exp <= precision);
precision 725 common/printf/printf_core.c int trailing_frac_zeros = precision - last_frac_signif_pos;
precision 842 common/printf/printf_core.c static int print_double_fixed(double g, int precision, int width, uint32_t flags,
precision 866 common/printf/printf_core.c if (0 <= precision) {
precision 871 common/printf/printf_core.c val_str.len = double_to_fixed_str(val, -1, precision + 1, buf, buf_size,
precision 890 common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 893 common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 939 common/printf/printf_core.c static int print_double_str_scient(double_str_t *val_str, int precision,
precision 949 common/printf/printf_core.c bool has_decimal_pt = (0 < precision) || (flags & __PRINTF_FLAG_DECIMALPT);
precision 954 common/printf/printf_core.c int trailing_frac_zeros = precision - signif_frac_figs;
precision 1062 common/printf/printf_core.c static int print_double_scientific(double g, int precision, int width,
precision 1082 common/printf/printf_core.c if (0 <= precision) {
precision 1088 common/printf/printf_core.c val_str.len = double_to_fixed_str(val, precision + 2, -1, buf, buf_size,
precision 1107 common/printf/printf_core.c precision = val_str.len - 1;
precision 1110 common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1128 common/printf/printf_core.c static int print_double_generic(double g, int precision, int width,
precision 1143 common/printf/printf_core.c if (0 <= precision) {
precision 1151 common/printf/printf_core.c precision = max(1, precision);
precision 1153 common/printf/printf_core.c if (-4 <= dec_exp && dec_exp < precision) {
precision 1154 common/printf/printf_core.c precision = precision - (dec_exp + 1);
precision 1155 common/printf/printf_core.c return print_double_fixed(g, precision, width,
precision 1158 common/printf/printf_core.c --precision;
precision 1159 common/printf/printf_core.c return print_double_scientific(g, precision, width,
precision 1183 common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 1184 common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 1187 common/printf/printf_core.c precision = val_str.len - 1;
precision 1188 common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1212 common/printf/printf_core.c static int print_double(double g, char spec, int precision, int width,
precision 1220 common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1221 common/printf/printf_core.c return print_double_fixed(g, precision, width, flags, ps);
precision 1227 common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1228 common/printf/printf_core.c return print_double_scientific(g, precision, width, flags, ps);
precision 1234 common/printf/printf_core.c return print_double_generic(g, precision, width, flags, ps);
precision 1419 common/printf/printf_core.c int precision = -1;
precision 1424 common/printf/printf_core.c precision = 0;
precision 1426 common/printf/printf_core.c precision *= 10;
precision 1427 common/printf/printf_core.c precision += uc - '0';
precision 1440 common/printf/printf_core.c precision = (int) va_arg(ap, int);
precision 1441 common/printf/printf_core.c if (precision < 0) {
precision 1443 common/printf/printf_core.c precision = -1;
precision 1504 common/printf/printf_core.c precision = max(0, precision);
precision 1507 common/printf/printf_core.c retval = print_wstr(va_arg(ap, char32_t *), width, precision, flags, ps);
precision 1509 common/printf/printf_core.c retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
precision 1544 common/printf/printf_core.c retval = print_double(va_arg(ap, double), uc, precision,
precision 1632 common/printf/printf_core.c precision = size << 1;
precision 1649 common/printf/printf_core.c if ((retval = print_number(number, width, precision,
precision 298 kernel/generic/common/printf/printf_core.c static int print_str(char *str, int width, unsigned int precision,
precision 307 kernel/generic/common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 308 kernel/generic/common/printf/printf_core.c precision = strw;
precision 312 kernel/generic/common/printf/printf_core.c width -= precision;
precision 322 kernel/generic/common/printf/printf_core.c size_t size = str_lsize(str, precision);
precision 347 kernel/generic/common/printf/printf_core.c static int print_wstr(char32_t *str, int width, unsigned int precision,
precision 356 kernel/generic/common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 357 kernel/generic/common/printf/printf_core.c precision = strw;
precision 361 kernel/generic/common/printf/printf_core.c width -= precision;
precision 371 kernel/generic/common/printf/printf_core.c size_t size = wstr_lsize(str, precision);
precision 399 kernel/generic/common/printf/printf_core.c static int print_number(uint64_t num, int width, int precision, int base,
precision 403 kernel/generic/common/printf/printf_core.c if (precision < 0) {
precision 404 kernel/generic/common/printf/printf_core.c precision = 0;
precision 476 kernel/generic/common/printf/printf_core.c if ((precision == 0) && (width > size))
precision 477 kernel/generic/common/printf/printf_core.c precision = width - size + number_size;
precision 481 kernel/generic/common/printf/printf_core.c if (number_size > precision) {
precision 483 kernel/generic/common/printf/printf_core.c precision = number_size;
precision 486 kernel/generic/common/printf/printf_core.c width -= precision + size - number_size;
precision 536 kernel/generic/common/printf/printf_core.c precision -= number_size;
precision 537 kernel/generic/common/printf/printf_core.c while (precision-- > 0) {
precision 705 kernel/generic/common/printf/printf_core.c static int print_double_str_fixed(double_str_t *val_str, int precision, int width,
precision 713 kernel/generic/common/printf/printf_core.c assert(0 <= precision);
precision 714 kernel/generic/common/printf/printf_core.c assert(0 <= dec_exp || -dec_exp <= precision);
precision 725 kernel/generic/common/printf/printf_core.c int trailing_frac_zeros = precision - last_frac_signif_pos;
precision 842 kernel/generic/common/printf/printf_core.c static int print_double_fixed(double g, int precision, int width, uint32_t flags,
precision 866 kernel/generic/common/printf/printf_core.c if (0 <= precision) {
precision 871 kernel/generic/common/printf/printf_core.c val_str.len = double_to_fixed_str(val, -1, precision + 1, buf, buf_size,
precision 890 kernel/generic/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 893 kernel/generic/common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 939 kernel/generic/common/printf/printf_core.c static int print_double_str_scient(double_str_t *val_str, int precision,
precision 949 kernel/generic/common/printf/printf_core.c bool has_decimal_pt = (0 < precision) || (flags & __PRINTF_FLAG_DECIMALPT);
precision 954 kernel/generic/common/printf/printf_core.c int trailing_frac_zeros = precision - signif_frac_figs;
precision 1062 kernel/generic/common/printf/printf_core.c static int print_double_scientific(double g, int precision, int width,
precision 1082 kernel/generic/common/printf/printf_core.c if (0 <= precision) {
precision 1088 kernel/generic/common/printf/printf_core.c val_str.len = double_to_fixed_str(val, precision + 2, -1, buf, buf_size,
precision 1107 kernel/generic/common/printf/printf_core.c precision = val_str.len - 1;
precision 1110 kernel/generic/common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1128 kernel/generic/common/printf/printf_core.c static int print_double_generic(double g, int precision, int width,
precision 1143 kernel/generic/common/printf/printf_core.c if (0 <= precision) {
precision 1151 kernel/generic/common/printf/printf_core.c precision = max(1, precision);
precision 1153 kernel/generic/common/printf/printf_core.c if (-4 <= dec_exp && dec_exp < precision) {
precision 1154 kernel/generic/common/printf/printf_core.c precision = precision - (dec_exp + 1);
precision 1155 kernel/generic/common/printf/printf_core.c return print_double_fixed(g, precision, width,
precision 1158 kernel/generic/common/printf/printf_core.c --precision;
precision 1159 kernel/generic/common/printf/printf_core.c return print_double_scientific(g, precision, width,
precision 1183 kernel/generic/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 1184 kernel/generic/common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 1187 kernel/generic/common/printf/printf_core.c precision = val_str.len - 1;
precision 1188 kernel/generic/common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1212 kernel/generic/common/printf/printf_core.c static int print_double(double g, char spec, int precision, int width,
precision 1220 kernel/generic/common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1221 kernel/generic/common/printf/printf_core.c return print_double_fixed(g, precision, width, flags, ps);
precision 1227 kernel/generic/common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1228 kernel/generic/common/printf/printf_core.c return print_double_scientific(g, precision, width, flags, ps);
precision 1234 kernel/generic/common/printf/printf_core.c return print_double_generic(g, precision, width, flags, ps);
precision 1419 kernel/generic/common/printf/printf_core.c int precision = -1;
precision 1424 kernel/generic/common/printf/printf_core.c precision = 0;
precision 1426 kernel/generic/common/printf/printf_core.c precision *= 10;
precision 1427 kernel/generic/common/printf/printf_core.c precision += uc - '0';
precision 1440 kernel/generic/common/printf/printf_core.c precision = (int) va_arg(ap, int);
precision 1441 kernel/generic/common/printf/printf_core.c if (precision < 0) {
precision 1443 kernel/generic/common/printf/printf_core.c precision = -1;
precision 1504 kernel/generic/common/printf/printf_core.c precision = max(0, precision);
precision 1507 kernel/generic/common/printf/printf_core.c retval = print_wstr(va_arg(ap, char32_t *), width, precision, flags, ps);
precision 1509 kernel/generic/common/printf/printf_core.c retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
precision 1544 kernel/generic/common/printf/printf_core.c retval = print_double(va_arg(ap, double), uc, precision,
precision 1632 kernel/generic/common/printf/printf_core.c precision = size << 1;
precision 1649 kernel/generic/common/printf/printf_core.c if ((retval = print_number(number, width, precision,
precision 85 uspace/app/hbench/main.c static double estimate_square_root(double value, double precision)
precision 88 uspace/app/hbench/main.c double prev_estimate = estimate + 10 * precision;
precision 90 uspace/app/hbench/main.c while (fabs(estimate - prev_estimate) > precision) {
precision 112 uspace/app/hbench/main.c uint64_t workload_size, double precision, double *out_duration_avg,
precision 132 uspace/app/hbench/main.c *out_duration_sigma = estimate_square_root(sigma2, precision);
precision 147 uspace/app/top/screen.c static void print_percent(fixed_float ffloat, unsigned int precision)
precision 153 uspace/app/top/screen.c for (i = 0; i < precision; i++) {
precision 149 uspace/dist/src/c/demos/top/screen.c static void print_percent(fixed_float ffloat, unsigned int precision)
precision 155 uspace/dist/src/c/demos/top/screen.c for (i = 0; i < precision; i++) {
precision 298 uspace/lib/c/common/printf/printf_core.c static int print_str(char *str, int width, unsigned int precision,
precision 307 uspace/lib/c/common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 308 uspace/lib/c/common/printf/printf_core.c precision = strw;
precision 312 uspace/lib/c/common/printf/printf_core.c width -= precision;
precision 322 uspace/lib/c/common/printf/printf_core.c size_t size = str_lsize(str, precision);
precision 347 uspace/lib/c/common/printf/printf_core.c static int print_wstr(char32_t *str, int width, unsigned int precision,
precision 356 uspace/lib/c/common/printf/printf_core.c if ((precision == 0) || (precision > strw))
precision 357 uspace/lib/c/common/printf/printf_core.c precision = strw;
precision 361 uspace/lib/c/common/printf/printf_core.c width -= precision;
precision 371 uspace/lib/c/common/printf/printf_core.c size_t size = wstr_lsize(str, precision);
precision 399 uspace/lib/c/common/printf/printf_core.c static int print_number(uint64_t num, int width, int precision, int base,
precision 403 uspace/lib/c/common/printf/printf_core.c if (precision < 0) {
precision 404 uspace/lib/c/common/printf/printf_core.c precision = 0;
precision 476 uspace/lib/c/common/printf/printf_core.c if ((precision == 0) && (width > size))
precision 477 uspace/lib/c/common/printf/printf_core.c precision = width - size + number_size;
precision 481 uspace/lib/c/common/printf/printf_core.c if (number_size > precision) {
precision 483 uspace/lib/c/common/printf/printf_core.c precision = number_size;
precision 486 uspace/lib/c/common/printf/printf_core.c width -= precision + size - number_size;
precision 536 uspace/lib/c/common/printf/printf_core.c precision -= number_size;
precision 537 uspace/lib/c/common/printf/printf_core.c while (precision-- > 0) {
precision 705 uspace/lib/c/common/printf/printf_core.c static int print_double_str_fixed(double_str_t *val_str, int precision, int width,
precision 713 uspace/lib/c/common/printf/printf_core.c assert(0 <= precision);
precision 714 uspace/lib/c/common/printf/printf_core.c assert(0 <= dec_exp || -dec_exp <= precision);
precision 725 uspace/lib/c/common/printf/printf_core.c int trailing_frac_zeros = precision - last_frac_signif_pos;
precision 842 uspace/lib/c/common/printf/printf_core.c static int print_double_fixed(double g, int precision, int width, uint32_t flags,
precision 866 uspace/lib/c/common/printf/printf_core.c if (0 <= precision) {
precision 871 uspace/lib/c/common/printf/printf_core.c val_str.len = double_to_fixed_str(val, -1, precision + 1, buf, buf_size,
precision 890 uspace/lib/c/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 893 uspace/lib/c/common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 939 uspace/lib/c/common/printf/printf_core.c static int print_double_str_scient(double_str_t *val_str, int precision,
precision 949 uspace/lib/c/common/printf/printf_core.c bool has_decimal_pt = (0 < precision) || (flags & __PRINTF_FLAG_DECIMALPT);
precision 954 uspace/lib/c/common/printf/printf_core.c int trailing_frac_zeros = precision - signif_frac_figs;
precision 1062 uspace/lib/c/common/printf/printf_core.c static int print_double_scientific(double g, int precision, int width,
precision 1082 uspace/lib/c/common/printf/printf_core.c if (0 <= precision) {
precision 1088 uspace/lib/c/common/printf/printf_core.c val_str.len = double_to_fixed_str(val, precision + 2, -1, buf, buf_size,
precision 1107 uspace/lib/c/common/printf/printf_core.c precision = val_str.len - 1;
precision 1110 uspace/lib/c/common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1128 uspace/lib/c/common/printf/printf_core.c static int print_double_generic(double g, int precision, int width,
precision 1143 uspace/lib/c/common/printf/printf_core.c if (0 <= precision) {
precision 1151 uspace/lib/c/common/printf/printf_core.c precision = max(1, precision);
precision 1153 uspace/lib/c/common/printf/printf_core.c if (-4 <= dec_exp && dec_exp < precision) {
precision 1154 uspace/lib/c/common/printf/printf_core.c precision = precision - (dec_exp + 1);
precision 1155 uspace/lib/c/common/printf/printf_core.c return print_double_fixed(g, precision, width,
precision 1158 uspace/lib/c/common/printf/printf_core.c --precision;
precision 1159 uspace/lib/c/common/printf/printf_core.c return print_double_scientific(g, precision, width,
precision 1183 uspace/lib/c/common/printf/printf_core.c precision = max(0, -val_str.dec_exp);
precision 1184 uspace/lib/c/common/printf/printf_core.c return print_double_str_fixed(&val_str, precision, width, flags, ps);
precision 1187 uspace/lib/c/common/printf/printf_core.c precision = val_str.len - 1;
precision 1188 uspace/lib/c/common/printf/printf_core.c return print_double_str_scient(&val_str, precision, width, flags, ps);
precision 1212 uspace/lib/c/common/printf/printf_core.c static int print_double(double g, char spec, int precision, int width,
precision 1220 uspace/lib/c/common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1221 uspace/lib/c/common/printf/printf_core.c return print_double_fixed(g, precision, width, flags, ps);
precision 1227 uspace/lib/c/common/printf/printf_core.c precision = (precision < 0) ? 6 : precision;
precision 1228 uspace/lib/c/common/printf/printf_core.c return print_double_scientific(g, precision, width, flags, ps);
precision 1234 uspace/lib/c/common/printf/printf_core.c return print_double_generic(g, precision, width, flags, ps);
precision 1419 uspace/lib/c/common/printf/printf_core.c int precision = -1;
precision 1424 uspace/lib/c/common/printf/printf_core.c precision = 0;
precision 1426 uspace/lib/c/common/printf/printf_core.c precision *= 10;
precision 1427 uspace/lib/c/common/printf/printf_core.c precision += uc - '0';
precision 1440 uspace/lib/c/common/printf/printf_core.c precision = (int) va_arg(ap, int);
precision 1441 uspace/lib/c/common/printf/printf_core.c if (precision < 0) {
precision 1443 uspace/lib/c/common/printf/printf_core.c precision = -1;
precision 1504 uspace/lib/c/common/printf/printf_core.c precision = max(0, precision);
precision 1507 uspace/lib/c/common/printf/printf_core.c retval = print_wstr(va_arg(ap, char32_t *), width, precision, flags, ps);
precision 1509 uspace/lib/c/common/printf/printf_core.c retval = print_str(va_arg(ap, char *), width, precision, flags, ps);
precision 1544 uspace/lib/c/common/printf/printf_core.c retval = print_double(va_arg(ap, double), uc, precision,
precision 1632 uspace/lib/c/common/printf/printf_core.c precision = size << 1;
precision 1649 uspace/lib/c/common/printf/printf_core.c if ((retval = print_number(number, width, precision,
precision 738 uspace/lib/cpp/include/__bits/complex.hpp oss.precision(os.precision());
precision 145 uspace/lib/cpp/include/__bits/io/ios.hpp streamsize precision() const;
precision 146 uspace/lib/cpp/include/__bits/io/ios.hpp streamsize precision(streamsize prec);
precision 464 uspace/lib/cpp/include/__bits/io/ios.hpp precision(6);
precision 79 uspace/lib/cpp/src/iomanip.cpp str.precision(prec);
HelenOS homepage, sources at GitHub