Home
last modified time | relevance | path

Searched refs:digs (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython2/Lib/
Dfpformat.py64 def roundfrac(intpart, fraction, digs): argument
67 if f <= digs:
68 return intpart, fraction + '0'*(digs-f)
70 if i+digs < 0:
71 return '0'*-digs, ''
73 nextdigit = total[i+digs]
75 n = i + digs - 1
85 if digs >= 0:
86 return intpart, fraction[:digs]
88 return intpart[:digs] + '0'*-digs, ''
[all …]
/external/python/cpython2/Doc/library/
Dfpformat.rst26 .. function:: fix(x, digs)
28 Format *x* as ``[-]ddd.ddd`` with *digs* digits after the point and at least one
29 digit before. If ``digs <= 0``, the decimal point is suppressed.
31 *x* can be either a number or a string that looks like one. *digs* is an
37 .. function:: sci(x, digs)
39 Format *x* as ``[-]d.dddE[+-]ddd`` with *digs* digits after the point and
40 exactly one digit before. If ``digs <= 0``, one digit is kept and the point is
43 *x* can be either a real number, or a string that looks like one. *digs* is an
/external/wpa_supplicant_8/src/tls/
Dlibtommath.c141 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
143 static int s_mp_mul_high_digs(mp_int * a, mp_int * b, mp_int * c, int digs);
146 static int fast_s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs);
518 int digs = a->used + b->used + 1; in mp_mul() local
520 if ((digs < MP_WARRAY) && in mp_mul()
523 res = fast_s_mp_mul_digs (a, b, c, digs); in mp_mul()
2341 static int s_mp_mul_digs (mp_int * a, mp_int * b, mp_int * c, int digs) in s_mp_mul_digs() argument
2351 if (((digs) < MP_WARRAY) && in s_mp_mul_digs()
2354 return fast_s_mp_mul_digs (a, b, c, digs); in s_mp_mul_digs()
2358 if ((res = mp_init_size (&t, digs)) != MP_OKAY) { in s_mp_mul_digs()
[all …]
/external/dnsmasq/src/
Drfc1035.c95 unsigned int count, digs; in extract_name() local
106 digs = ((count-1)>>2)+1; in extract_name()
109 if (cp - (unsigned char *)name + digs + 9 >= MAXDNAME) in extract_name()
117 for (j=0; j<digs; j++) in extract_name()
Doption.c674 int i, addrs, digs, is_addr, is_hex, is_dec, is_string, dots; in parse_dhcp_opt() local
745 addrs = digs = 1; in parse_dhcp_opt()
755 digs++; in parse_dhcp_opt()
799 if (is_hex && digs > 1) in parse_dhcp_opt()
801 new->len = digs; in parse_dhcp_opt()
803 parse_hex(comma, new->val, digs, (flags & DHOPT_MATCH) ? &new->u.wildcard_mask : NULL, NULL); in parse_dhcp_opt()
/external/stressapptest/
Dconfigure5250 char digs[] = "0123456789";
5251 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
/external/jline/src/src/test/resources/jline/example/
Denglish.gz