Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 56) sorted by relevance

123

/openbmc/qemu/libdecnumber/
H A DdecNumber.c358 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32()
378 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32()
391 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32()
413 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32()
427 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32()
462 dn->digits = decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt64()
497 dn->digits = decGetDigits(dn->lsu, up - dn->lsu); in decNumberFromUInt128()
516 (dn->digits + dn->exponent > 19)) { in decNumberIntegralToInt64()
524 for (d = 1; d <= dn->digits; up++, d += DECDPUN) { in decNumberIntegralToInt64()
565 (dn->digits + dn->exponent > 39)) { in decNumberIntegralToInt128()
[all …]
H A DdecContext.c93 context->digits=9; /* 9 digits */ in decContextDefault()
108 context->digits=7; /* digits */ in decContextDefault()
119 context->digits=16; /* digits */ in decContextDefault()
130 context->digits=34; /* digits */ in decContextDefault()
/openbmc/qemu/libdecnumber/dpd/
H A Ddecimal64.c105 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal64FromNumber()
106 if (dn->digits>DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber()
121 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal64FromNumber()
122 && (dn->digits<DECIMAL64_Pmax)) { /* coefficient fits */ in decimal64FromNumber()
162 Int d=dn->digits; in decimal64FromNumber()
167 if (dn->digits>6) { in decimal64FromNumber()
619 Int digits=dn->digits; /* digit countdown */ in decDigitsToDPD() local
638 source=dn->lsu+D2U(digits)-1; /* where msu comes from */ in decDigitsToDPD()
639 target=uar+D2U(digits)-1+D2U(shift);/* where upper part of first cut goes */ in decDigitsToDPD()
645 first=uar+D2U(digits+shift)-1; /* where msu will end up */ in decDigitsToDPD()
[all …]
H A Ddecimal32.c97 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber()
98 if (dn->digits>DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber()
113 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal32FromNumber()
114 && (dn->digits<DECIMAL32_Pmax)) { /* coefficient fits */ in decimal32FromNumber()
153 if (dn->digits>3) targ|=(uInt)(BIN2DPD[dn->lsu[1]])<<10; in decimal32FromNumber()
154 msd=(dn->digits==7 ? dn->lsu[2] : 0); in decimal32FromNumber()
H A Ddecimal128.c101 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal128FromNumber()
102 if (dn->digits>DECIMAL128_Pmax /* too many digits */ in decimal128FromNumber()
117 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal128FromNumber()
118 && (dn->digits<DECIMAL128_Pmax)) { /* coefficient fits */ in decimal128FromNumber()
/openbmc/u-boot/include/
H A Ddebug_uart.h153 static inline void printhex(uint value, int digits) \
155 while (digits-- > 0) \
156 printhex1(value >> (4 * digits)); \
H A Dvsprintf.h211 void print_grouped_ull(unsigned long long int_val, int digits);
/openbmc/u-boot/lib/libavb/
H A Davb_cmdline.c140 char digits[AVB_MAX_DIGITS_UINT64]) { in uint64_to_base10()
152 digits[n] = rev_digits[num_digits - 1 - n]; in uint64_to_base10()
154 digits[n] = '\0'; in uint64_to_base10()
180 char digits[AVB_MAX_DIGITS_UINT64]; in cmdline_append_uint64_base10() local
181 uint64_to_base10(value, digits); in cmdline_append_uint64_base10()
182 return cmdline_append_option(slot_data, key, digits); in cmdline_append_uint64_base10()
/openbmc/u-boot/lib/
H A Dvsprintf.c162 static const char digits[16] = "0123456789ABCDEF"; in number() local
212 tmp[i++] = (digits[((unsigned char)num) & mask] in number()
366 int i, digits; in ip4_addr_string() local
369 digits = put_dec_trunc(temp, addr[i]) - temp; in ip4_addr_string()
371 while (digits--) in ip4_addr_string()
372 *p++ = temp[digits]; in ip4_addr_string()
843 void print_grouped_ull(unsigned long long int_val, int digits) in print_grouped_ull() argument
848 digits = (digits + 2) / 3; in print_grouped_ull()
849 sprintf(str, "%*llu", digits * 3, int_val); in print_grouped_ull()
H A Dtiny-printf.c130 int i, digits; in ip4_addr_string() local
133 digits = put_dec_trunc(temp, addr[i]) - temp; in ip4_addr_string()
135 while (digits--) in ip4_addr_string()
136 *p++ = temp[digits]; in ip4_addr_string()
/openbmc/qemu/target/ppc/
H A Ddfp_helper.c583 leftmost_is_nonzero = (dfp.a.digits == nzero_digits) && \
662 unsigned nsd = dfp.b.digits; \
697 unsigned nsd = dfp.b.digits; \
783 if (unlikely((ref_sig == 0) || (dfp->b.digits <= ref_sig))) { in _dfp_reround()
796 dfp->a.exponent = dfp->b.exponent + dfp->b.digits - ref_sig; in _dfp_reround()
799 dfp->t.digits = 0; in _dfp_reround()
808 msd_orig = dfp_get_digit(&dfp->b, dfp->b.digits-1); in _dfp_reround()
809 msd_rslt = dfp_get_digit(&dfp->t, dfp->t.digits-1); in _dfp_reround()
824 dfp->t.digits = 0; in _dfp_reround()
1110 uint8_t digits[34]; \
[all …]
/openbmc/qemu/tests/multiboot/
H A Dlibc.c51 char digits[] = "0123456789abcdef"; in print_num() local
56 buf[i--] = digits[value % base]; in print_num()
/openbmc/qemu/tests/tcg/minilib/
H A Dprintf.c30 static const char digits[] = "0123456789abcdef"; in print_num() local
40 buf[i--] = digits[value % base]; in print_num()
/openbmc/sdbusplus/tools/sdbusplus/
H A Dservicename.py31 if s[0] in string.digits:
/openbmc/openbmc/poky/meta/recipes-support/vte/vte/
H A D0004-fast_float-Add-single-header-library-for-from_char-i.patch1133 +// Call this if chars are definitely 8 digits.
1152 +// Call this if chars might not be 8 digits.
1248 + // [JSON-only] If there is a decimal point, there must be digits in the
1264 + // contains the range of the significant digits
1283 +// Assuming that you use no more than 19 digits, this will
1352 + // for integers with many digits, digit parsing is the primary bottleneck.
1425 + // If we frequently had to deal with long strings of digits,
1429 + // We can deal with up to 19 digits.
2361 +// for significant digits already multiplied by 10 ** q.
2534 +// `log2(10**(digits + max_exp))`, or `log2(10**(767 + 342))`, or
[all …]
/openbmc/u-boot/common/
H A Dhash.c484 int digits = algo->digest_size * 2; in parse_verify_sum() local
491 if (strlen(verify_str) == digits) in parse_verify_sum()
495 if (vsum_str == NULL || strlen(vsum_str) != digits) { in parse_verify_sum()
497 digits); in parse_verify_sum()
/openbmc/openbmc/poky/meta/recipes-devtools/dosfstools/dosfstools/
H A Dsource-date-epoch.patch59 + die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
99 + die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
149 + die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
/openbmc/openbmc-test-automation/lib/
H A Dpldm_utils.py170 data = string.ascii_uppercase + string.digits
176 data = string.ascii_uppercase + string.digits
/openbmc/phosphor-settingsd/
H A DREADME.txt15 followed by any number of digits. The name should be at the end of the path.
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dslot-hsc-fault8 local digits="0123456789ABCDEF"
H A Dmedusa-hsc-alert8 local digits="0123456789ABCDEF"
H A Dmedusa-hsc-fault10 local digits="0123456789ABCDEF"
H A Dmedusa-power-module-fault8 local digits="0123456789ABCDEF"
/openbmc/bmcweb/http/routing/
H A Dbaserule.hpp90 static_assert(std::numeric_limits<decltype(methodsBitfield)>::digits >
/openbmc/qemu/include/libdecnumber/
H A DdecNumber.h81 int32_t digits; /* Count of digits in the coefficient; >0 */ member
200 && (dn)->digits==1 \

123