/openbmc/qemu/libdecnumber/ |
H A D | decNumber.c | 51 /* precision (up to 999,999,999 digits) and arbitrary exponent */ 55 /* tightly: digits, emax, and -emin in the context must be <= */ 60 /* be finite, positive, have an exponent of zero, and all digits */ 61 /* must be either 0 or 1. The result will only contain digits */ 141 /* 6. The digits count is allowed to rise to a multiple of DECDPUN */ 143 /* accounting of digits is not needed. The correct digits value */ 145 /* This must be called before any rounding if the number of digits */ 149 /* numbers up to four digits, using appropriate constants. This */ 307 /* complement of digits (where appropriate -- this is not the case */ 358 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32() [all …]
|
/openbmc/qemu/libdecnumber/dpd/ |
H A D | decimal64.c | 80 /* digits or an overflow is detected). If the exponent is out of the */ 100 /* If the number has too many digits, or the exponent could be */ in decimal64FromNumber() 105 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() 148 Int pad=0; /* coefficient pad digits */ in decimal64FromNumber() 162 Int d=dn->digits; in decimal64FromNumber() 167 if (dn->digits>6) { in decimal64FromNumber() 349 /* convert 16 digits of significand to characters */ in decimal64ToString() [all …]
|
H A D | decimal32.c | 74 /* digits or an overflow is detected). If the exponent is out of the */ 92 /* If the number has too many digits, or the exponent could be */ in decimal32FromNumber() 97 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() 140 Int pad=0; /* coefficient pad digits */ 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() 296 /* convert 7 digits of significand to characters */ in decimal32ToString() [all …]
|
H A D | decimal128.c | 74 /* digits or an overflow is detected). If the exponent is out of the */ 96 /* If the number has too many digits, or the exponent could be */ in decimal128FromNumber() 101 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() 144 Int pad=0; /* coefficient pad digits */ in decimal128FromNumber() 340 /* convert 34 digits of significand to characters */ in decimal128ToString() 346 /* the 4-chars are a 1-char length (significant digits, except 000 */ in decimal128ToString() 388 /* [here, pre-exp is the digits count (==1 for zero)] */ in decimal128ToString() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | hex_utils.hpp | 15 inline std::string intToHexString(uint64_t value, size_t digits) in intToHexString() argument 17 std::string rc(digits, '0'); in intToHexString() 18 size_t bitIndex = (digits - 1) * 4; in intToHexString() 19 for (size_t digitIndex = 0; digitIndex < digits; digitIndex++) in intToHexString()
|
/openbmc/u-boot/lib/ |
H A D | vsprintf.c | 49 * Outputs from one to five digits depending on input. 86 /* Same with if's removed. Always emits five digits */ 162 static const char digits[16] = "0123456789ABCDEF"; in number() local 170 /* locase = 0 or 0x20. ORing digits or letters with 'locase' in number() 171 * produces same digits or (maybe lowercased) letters */ in number() 201 tmp[i++] = (digits[do_div(num,base)] | locase); in number() 212 tmp[i++] = (digits[((unsigned char)num) & mask] in number() 248 /* actual digits of result */ in number() 323 /* (6 * 2 hex digits), 5 colons and trailing zero */ in mac_address_string() 342 /* (8 * 4 hex digits), 7 colons and trailing zero */ in ip6_addr_string() [all …]
|
H A D | tiny-printf.c | 73 /* (6 * 2 hex digits), 5 colons and trailing zero */ in mac_address_string() 126 /* (4 * 3 decimal digits), 3 dots and trailing zero */ in ip4_addr_string() 130 int i, digits; in ip4_addr_string() local 133 digits = put_dec_trunc(temp, addr[i]) - temp; in ip4_addr_string() 134 /* reverse the digits in the quad */ in ip4_addr_string() 135 while (digits--) in ip4_addr_string() 136 *p++ = temp[digits]; in ip4_addr_string()
|
/openbmc/qemu/include/libdecnumber/ |
H A D | decNumber.h | 56 #define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */ 59 /* DECNUMDIGITS is the default number of digits that can be held in */ 68 /* number of digits it will hold. */ 81 int32_t digits; /* Count of digits in the coefficient; >0 */ member 90 /* 1. If digits is > DECDPUN then there will one or more */ 92 /* These contain the remaining (more significant) digits of the */ 99 /* contains DECDPUN digits (e.g., a value in the range 0 through */ 102 /* 2. A decNumber converted to a string may need up to digits+14 */ 200 && (dn)->digits==1 \
|
/openbmc/qemu/hw/s390x/ |
H A D | sclpcpi.c | 29 * <cc>: are two digits for a distribution-specific encoding of the major 31 * <dd>: are two digits for a distribution-specific encoding of the minor 33 * <eeee>: are four digits for the patch level of the distribution 34 * <ff>: are two digits for the major version of the kernel 35 * <gg>: are two digits for the minor version of the kernel 36 * <hh>: are two digits for the stable version of the kernel
|
/openbmc/u-boot/lib/libavb/ |
H A D | avb_cmdline.c | 136 /* Writes |value| to |digits| in base 10 followed by a NUL byte. 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/qemu/include/gdbstub/ |
H A D | commands.h | 103 * Convert a hex string to bytes. Conversion is done per byte, so 2 hex digits 104 * are converted to 1 byte. Invalid hex digits are treated as 0 digits.
|
/openbmc/qemu/target/ppc/ |
H A D | dfp_helper.c | 583 leftmost_is_nonzero = (dfp.a.digits == nzero_digits) && \ 659 /* Zero has no sig digits */ \ 662 unsigned nsd = dfp.b.digits; \ 694 /* Zero has no sig 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() [all …]
|
/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)); \
|
H A D | vsprintf.h | 203 * print_grouped_ull() - print a value with digits grouped by ',' 205 * This prints a value with grouped digits, like 12,345,678 to make it easier 209 * @digits: Number of digiits to print 211 void print_grouped_ull(unsigned long long int_val, int digits);
|
/openbmc/openbmc/poky/meta/recipes-extended/at/at/ |
H A D | posixtm.c | 40 POSIX says that only '0' through '9' are digits. Prefer ISDIGIT to 49 8, 10, or 12 digits, followed by optional .ss 53 8 or 10 digits, YY (if present) must be in the range 69-99 57 8, 10, or 12 digits 149 /* Handle 8 digits worth of `MMDDhhmm'. */ in posix_time_parse()
|
/openbmc/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | slot-hsc-fault | 8 local digits="0123456789ABCDEF" 12 hex="${digits:remainder:1}$hex"
|
H A D | medusa-hsc-alert | 8 local digits="0123456789ABCDEF" 12 hex="${digits:remainder:1}$hex"
|
H A D | medusa-hsc-fault | 10 local digits="0123456789ABCDEF" 14 hex="${digits:remainder:1}$hex"
|
H A D | medusa-power-module-fault | 8 local digits="0123456789ABCDEF" 12 hex="${digits:remainder:1}$hex"
|
/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/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/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Network/ |
H A D | MACAddress.interface.yaml | 9 digits separated by colons. Example: 01:23:45:67:89:AB
|
/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/phosphor-settingsd/ |
H A D | README.txt | 15 followed by any number of digits. The name should be at the end of the path.
|
/openbmc/u-boot/common/ |
H A D | hash.c | 452 * If the length is exactly the right number of hex digits 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() 496 printf("Expected %d hex digits in env var\n", in parse_verify_sum() 497 digits); in parse_verify_sum()
|