/openbmc/qemu/libdecnumber/ |
H A D | decNumber.c | 359 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32() 379 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0) ; /* bad */ in decNumberToInt32() 392 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32() 414 if (dn->bits&DECSPECIAL || dn->digits>10 || dn->exponent!=0 in decNumberToUInt32() 428 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32() 463 dn->digits = decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt64() 498 dn->digits = decGetDigits(dn->lsu, up - dn->lsu); in decNumberFromUInt128() 517 (dn->digits + dn->exponent > 19)) { in decNumberIntegralToInt64() 525 for (d = 1; d <= dn->digits; up++, d += DECDPUN) { in decNumberIntegralToInt64() 566 (dn->digits + dn->exponent > 39)) { in decNumberIntegralToInt128() [all …]
|
H A D | decContext.c | 94 context->digits=9; /* 9 digits */ in decContextDefault() 109 context->digits=7; /* digits */ in decContextDefault() 120 context->digits=16; /* digits */ in decContextDefault() 131 context->digits=34; /* digits */ in decContextDefault()
|
/openbmc/linux/tools/include/nolibc/ |
H A D | stdlib.h | 205 int digits = 0; in utoh_r() local 212 if (dig || digits || pos < 0) { in utoh_r() 215 buffer[digits++] = '0' + dig; in utoh_r() 219 buffer[digits] = 0; in utoh_r() 220 return digits; in utoh_r() 245 int digits = 0; in utoa_r() local 253 if (digits || in >= lim || !pos) { in utoa_r() 256 buffer[digits++] = '0' + dig; in utoa_r() 260 buffer[digits] = 0; in utoa_r() 261 return digits; in utoa_r() [all …]
|
/openbmc/qemu/libdecnumber/dpd/ |
H A D | decimal64.c | 106 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal64FromNumber() 107 if (dn->digits>DECIMAL64_Pmax /* too many digits */ in decimal64FromNumber() 122 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal64FromNumber() 123 && (dn->digits<DECIMAL64_Pmax)) { /* coefficient fits */ in decimal64FromNumber() 163 Int d=dn->digits; in decimal64FromNumber() 168 if (dn->digits>6) { in decimal64FromNumber() 620 Int digits=dn->digits; /* digit countdown */ in decDigitsToDPD() local 639 source=dn->lsu+D2U(digits)-1; /* where msu comes from */ in decDigitsToDPD() 640 target=uar+D2U(digits)-1+D2U(shift);/* where upper part of first cut goes */ in decDigitsToDPD() 646 first=uar+D2U(digits+shift)-1; /* where msu will end up */ in decDigitsToDPD() [all …]
|
H A D | decimal32.c | 98 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal32FromNumber() 99 if (dn->digits>DECIMAL32_Pmax /* too many digits */ in decimal32FromNumber() 114 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal32FromNumber() 115 && (dn->digits<DECIMAL32_Pmax)) { /* coefficient fits */ in decimal32FromNumber() 154 if (dn->digits>3) targ|=(uInt)(BIN2DPD[dn->lsu[1]])<<10; in decimal32FromNumber() 155 msd=(dn->digits==7 ? dn->lsu[2] : 0); in decimal32FromNumber()
|
H A D | decimal128.c | 102 ae=dn->exponent+dn->digits-1; /* [0 if special] */ in decimal128FromNumber() 103 if (dn->digits>DECIMAL128_Pmax /* too many digits */ in decimal128FromNumber() 118 if ((*dn->lsu!=0 || dn->digits>1) /* non-zero coefficient */ in decimal128FromNumber() 119 && (dn->digits<DECIMAL128_Pmax)) { /* coefficient fits */ in decimal128FromNumber()
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | dsp_dtmf.c | 130 dsp->dtmf.digits[0] = '\0'; in dsp_dtmf_goertzel_decode() 155 return dsp->dtmf.digits; in dsp_dtmf_goertzel_decode() 179 return dsp->dtmf.digits; in dsp_dtmf_goertzel_decode() 298 if ((strlen(dsp->dtmf.digits) + 1) in dsp_dtmf_goertzel_decode() 299 < sizeof(dsp->dtmf.digits)) { in dsp_dtmf_goertzel_decode() 300 dsp->dtmf.digits[strlen( in dsp_dtmf_goertzel_decode() 301 dsp->dtmf.digits) + 1] = '\0'; in dsp_dtmf_goertzel_decode() 302 dsp->dtmf.digits[strlen( in dsp_dtmf_goertzel_decode() 303 dsp->dtmf.digits)] = what; in dsp_dtmf_goertzel_decode()
|
H A D | dsp_core.c | 669 u8 *digits = NULL; in dsp_function() local 726 digits = dsp_dtmf_goertzel_decode(dsp, skb->data, in dsp_function() 738 if (digits) { in dsp_function() 739 while (*digits) { in dsp_function() 745 __func__, *digits, dsp->name); in dsp_function() 746 k = *digits | DTMF_TONE_VAL; in dsp_function() 758 digits++; in dsp_function() 783 digits = dsp_dtmf_goertzel_decode(dsp, skb->data, in dsp_function() 785 while (*digits) { in dsp_function() 791 __func__, *digits, dsp->name); in dsp_function() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | hex_utils.hpp | 13 inline std::string intToHexString(uint64_t value, size_t digits) in intToHexString() argument 15 std::string rc(digits, '0'); in intToHexString() 16 size_t bitIndex = (digits - 1) * 4; in intToHexString() 17 for (size_t digitIndex = 0; digitIndex < digits; digitIndex++) in intToHexString()
|
/openbmc/u-boot/include/ |
H A D | debug_uart.h | 153 static inline void printhex(uint value, int digits) \ 155 while (digits-- > 0) \ 156 printhex1(value >> (4 * digits)); \
|
/openbmc/qemu/target/ppc/ |
H A D | dfp_helper.c | 583 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/linux/arch/m68k/fpsp040/ |
H A D | bindec.S | 44 | LEN is the number of digits to be displayed. The 45 | k-factor can dictate either the total number of digits, 46 | if it is a positive number, or the number of digits 54 | of decimal places needed to insure LEN integer digits 69 | significant digits. The excess digits are collected 85 | A13. Check for LEN digits. 86 | If the int operation results in more than LEN digits, 87 | or less than LEN -1 digits, adjust ILOG and repeat from 97 | The bcd digits are stored in the correct position in 102 | digits are stored in the final string. [all …]
|
H A D | decbin.S | 27 | digits, rather than 1 integer and 16 fraction digits. 32 | The mantissa digits will be converted with the decimal point 127 | 4. Subtract 16 to compensate for interpreting the mant as all integer digits. 128 | (i.e., all digits assumed left of the decimal point.) 144 movel #EDIGITS,%d2 |# of nibbles (digits) in fraction part 145 moveql #ESTRT,%d3 |counter to pick up digits 157 dbf %d2,e_gd |if we have used all 3 digits, exit loop
|
/openbmc/u-boot/lib/ |
H A D | vsprintf.c | 162 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 D | tiny-printf.c | 130 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/u-boot/lib/libavb/ |
H A D | avb_cmdline.c | 140 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/linux/arch/alpha/boot/ |
H A D | stdio.c | 46 const char *digits = "0123456789abcdefghijklmnopqrstuvwxyz"; in number() local 50 digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; in number() 80 tmp[i++] = digits[do_div(num, base)]; in number() 95 *str++ = digits[33]; in number()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | stdio.c | 82 const char *digits="0123456789abcdefghijklmnopqrstuvwxyz"; in number() local 86 digits = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; in number() 116 tmp[i++] = digits[do_div(num, base)]; in number() 131 *str++ = digits[33]; in number()
|
/openbmc/qemu/tests/multiboot/ |
H A D | libc.c | 51 char digits[] = "0123456789abcdef"; in print_num() local 56 buf[i--] = digits[value % base]; in print_num()
|
/openbmc/qemu/tests/tcg/minilib/ |
H A D | printf.c | 30 static const char digits[] = "0123456789abcdef"; in print_num() local 40 buf[i--] = digits[value % base]; in print_num()
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | lcd-panel-cgram.rst | 8 number, and up to 8 couples of hex digits terminated by a semi-colon 9 (';'). Each couple of digits represents a line, with 1-bits for each
|
/openbmc/openbmc/poky/meta/recipes-support/vte/vte/ |
H A D | 0004-fast_float-Add-single-header-library-for-from_char-i.patch | 1133 +// 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 D | hash.c | 484 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 D | source-date-epoch.patch | 59 + 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/linux/arch/x86/boot/ |
H A D | printf.c | 45 static const char digits[16] = "0123456789ABCDEF"; /* "GHIJKLMNOPQRSTUVWXYZ"; */ in number() local 84 tmp[i++] = (digits[__do_div(num, base)] | locase); in number()
|