/AliOS-Things-master/components/py_engine/engine/py/ |
A D | formatfloat.c | 161 if (prec < 0) { in mp_format_float() 162 prec = 6; in mp_format_float() 168 prec = 1; in mp_format_float() 256 prec++; in mp_format_float() 287 prec++; in mp_format_float() 305 prec -= (e + 1); in mp_format_float() 314 if (prec < 0) { in mp_format_float() 316 prec = 0; in mp_format_float() 333 if (prec == 0) { in mp_format_float() 334 prec = 1; in mp_format_float() [all …]
|
A D | mpprint.c | 218 width = prec; in mp_print_mp_int() 220 prec = 0; in mp_print_mp_int() 264 if (prec > 1) { in mp_print_mp_int() 285 if (prec > 1) { in mp_print_mp_int() 326 if (prec > 1) { in mp_print_mp_int() 327 width = prec; in mp_print_mp_int() 437 int prec = -1; in mp_vprintf() local 444 prec = 0; in mp_vprintf() 446 prec = prec * 10 + *fmt - '0'; in mp_vprintf() 487 if (prec >= 0 && (size_t)prec < len) { in mp_vprintf() [all …]
|
A D | formatfloat.h | 32 int mp_format_float(mp_float_t f, char *buf, size_t bufSize, char fmt, int prec, char sign);
|
A D | mpprint.h | 74 …_float(const mp_print_t *print, mp_float_t f, char fmt, int flags, char fill, int width, int prec);
|
A D | objstr.c | 1493 int prec = -1; in str_modulo_format() local 1500 prec = mp_obj_get_int(args[arg_i++]); in str_modulo_format() 1503 prec = 0; in str_modulo_format() 1504 str = (const byte *)str_to_int((const char *)str, (const char *)top, &prec); in str_modulo_format() 1546 mp_print_mp_int(&print, arg_as_int(arg), 10, 'a', flags, fill, width, prec); in str_modulo_format() 1556 mp_print_float(&print, mp_obj_get_float(arg), *str, flags, fill, width, prec); in str_modulo_format() 1564 mp_print_mp_int(&print, arg, 8, 'a', flags, fill, width, prec); in str_modulo_format() 1580 if (prec < 0) { in str_modulo_format() 1581 prec = vlen; in str_modulo_format() 1583 if (vlen > (uint)prec) { in str_modulo_format() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | libbf.h | 141 limb_t prec; member 287 int bf_mul_si(bf_t *r, const bf_t *a, int64_t b1, limb_t prec, 293 limb_t prec, bf_flags_t flags, int rnd_mode); 300 int bf_round(bf_t *r, limb_t prec, bf_flags_t flags); 319 limb_t prec, bf_flags_t flags); 324 limb_t prec, bf_flags_t flags); 401 int bf_const_log2(bf_t *T, limb_t prec, bf_flags_t flags); 402 int bf_const_pi(bf_t *T, limb_t prec, bf_flags_t flags); 412 limb_t prec, bf_flags_t flags); 518 int bfdec_round(bfdec_t *r, limb_t prec, bf_flags_t flags); [all …]
|
A D | libbf.c | 508 prec = prec1; in __bf_round() 515 if (prec <= 0) { in __bf_round() 645 if (k < (prec + 2)) in bf_can_round() 648 n = k - prec; in bf_can_round() 4049 w = prec + 15; in bf_const_log2_internal() 4133 prec1 = prec + 32; in bf_const_pi_internal() 4425 return bf_add_epsilon(r, r, -(prec + 2), a->sign, prec, flags); in bf_exp() 5013 prec1 = prec + 8; in bf_tan_internal() 5238 prec1 = prec + 8; in bf_asin_internal() 6441 prec = prec1; in __bfdec_round() [all …]
|
A D | repl.js | 105 var prec; variable 1109 std.puts("BigFloat precision=" + prec + " bits (~" + 1110 Math.floor(prec / log2_10) + 1113 prec = 11; 1116 prec = 24; 1119 prec = 53; 1122 prec = 113; 1142 prec = prec1; 1154 prec = prec1; 1267 prec = 113; [all …]
|
/AliOS-Things-master/components/minilibc/libc/ |
A D | printf.c | 415 prec = PRINTF_DEFAULT_FLOAT_PRECISION; in _ftoa() 420 prec--; in _ftoa() 431 if (frac >= pow10[prec]) { in _ftoa() 443 if (prec == 0U) { in _ftoa() 452 unsigned int count = prec; in _ftoa() 522 prec = PRINTF_DEFAULT_FLOAT_PRECISION; in _etoa() 557 if ((int)prec > expval) { in _etoa() 558 prec = (unsigned)((int)prec - expval - 1); in _etoa() 561 prec = 0; in _etoa() 571 --prec; in _etoa() [all …]
|
/AliOS-Things-master/components/py_engine/tests/float/ |
A D | string_format2.py | 107 for prec in ("", "1", "3", "6"): 109 test_fmt("", fill, alignment, sign, "", width, prec, type, num) 152 for prec in ("1", "2", "3"): 154 test_fmt("", fill, alignment, sign, "", width, prec, type, num) 172 for prec in ("1", "2", "3"): 174 test_fmt("", fill, alignment, sign, "", width, prec, type, num)
|
A D | float_format.py | 10 for prec in range(8): 11 print(("%%.%df" % prec) % 6e-5)
|
A D | string_format_modulo2_intbig.py | 10 for prec in range(23, 36, 2): 11 fmt = "%." + "%d" % prec + kind
|
A D | string_format_modulo2.py | 10 for prec in range(23, 36, 2): 11 fmt = "%." + "%d" % prec + kind
|
/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | utils.c | 139 int width, prec, fillch; in ppp_vslprintf() local 173 prec = -1; in ppp_vslprintf() 191 prec = va_arg(args, int); in ppp_vslprintf() 194 prec = 0; in ppp_vslprintf() 196 prec = prec * 10 + c - '0'; in ppp_vslprintf() 290 n = prec; in ppp_vslprintf() 293 if (prec >= 0 && n > prec) in ppp_vslprintf() 294 n = prec; in ppp_vslprintf() 365 if (--prec <= 0 && val == 0) in ppp_vslprintf() 382 if (prec >= 0 && len > prec) in ppp_vslprintf() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/examples/ |
A D | pi_bigint.js | 51 function calc_pi(prec) { argument 83 n = BigInt(Math.ceil(Number(prec) / CHUD_BITS_PER_TERM)) + 10n; 85 Q = (CHUD_C / 12n) * (Q << prec) / (P + Q * CHUD_A); 86 G = int_sqrt(CHUD_C << (2n * prec)); 87 return (Q * G) >> prec;
|
A D | pi_bigdecimal.js | 8 function calc_pi(prec) { argument 42 n = BigInt(Math.ceil(prec / CHUD_DIGITS_PER_TERM)) + 10n; 46 maximumSignificantDigits: prec }); 49 maximumSignificantDigits: prec });
|
A D | pi_bigfloat.js | 41 n = BigInt(Math.ceil(BigFloatEnv.prec / CHUD_BITS_PER_TERM)) + 10n;
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | jcmarker.c | 151 int prec; in emit_dqt() local 157 prec = 0; in emit_dqt() 160 prec = 1; in emit_dqt() 167 prec ? cinfo->lim_Se * 2 + 2 + 1 + 2 : cinfo->lim_Se + 1 + 1 + 2); in emit_dqt() 169 emit_byte(cinfo, index + (prec<<4)); in emit_dqt() 174 if (prec) in emit_dqt() 182 return prec; in emit_dqt() 547 int ci, prec; in write_frame_header() local 554 prec = 0; in write_frame_header() 557 prec += emit_dqt(cinfo, compptr->quant_tbl_no); in write_frame_header() [all …]
|
A D | jdmarker.c | 536 int n, prec; in get_dqt() local 548 prec = n >> 4; in get_dqt() 551 TRACEMS2(cinfo, 1, JTRC_DQT, n, prec); in get_dqt() 560 if (prec) { in get_dqt() 591 if (prec) in get_dqt() 610 if (prec) length -= count; in get_dqt()
|
/AliOS-Things-master/components/py_engine/engine/lib/libm/ |
A D | kf_rem_pio2.c | 65 int __kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const __uint8_t *ipio2) in __kernel_rem_pio2f() argument 67 int __kernel_rem_pio2f(x,y,e0,nx,prec,ipio2) in __kernel_rem_pio2f() 68 float x[], y[]; int e0,nx,prec; __uint8_t ipio2[]; in __kernel_rem_pio2f() 75 jk = init_jk[prec]; 184 switch(prec) {
|
/AliOS-Things-master/components/SDL2/src/libm/ |
A D | k_rem_pio2.c | 152 …l_rem_pio2(const double *x, double *y, int e0, int nx, const unsigned int prec, const int32_t *ipi… in __kernel_rem_pio2() argument 162 SDL_assert(prec < SDL_arraysize(init_jk)); in __kernel_rem_pio2() 163 jk = init_jk[prec]; in __kernel_rem_pio2() 283 switch(prec) { in __kernel_rem_pio2()
|
/AliOS-Things-master/components/py_engine/engine/lib/libm_dbl/ |
A D | __rem_pio2_large.c | 273 int __rem_pio2_large(double *x, double *y, int e0, int nx, int prec) in __rem_pio2_large() argument 279 jk = init_jk[prec]; in __rem_pio2_large() 402 switch(prec) { in __rem_pio2_large()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | ppm2tiff.c | 99 unsigned int w, h, prec, row; in main() local 206 if (fscanf(in, " %u %u %u", &w, &h, &prec) != 3) in main() 208 if (fgetc(in) != '\n' || prec != 255) in main()
|
/AliOS-Things-master/components/amp/jslib/src/ |
A D | repl.js | 106 var prec; variable 1117 REPL.puts("BigFloat precision=" + prec + " bits (~" + 1118 Math.floor(prec / log2_10) + 1121 prec = 11; 1124 prec = 24; 1127 prec = 53; 1130 prec = 113; 1150 prec = prec1; 1162 prec = prec1; 1288 prec = 113; [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/utils/jansson/ |
A D | jansson_private.h | 84 int jsonp_dtostr(char *buffer, size_t size, double value, int prec);
|