Home
last modified time | relevance | path

Searched full:digits (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/openbmc/qemu/libdecnumber/
H A DdecNumber.c52 /* precision (up to 999,999,999 digits) and arbitrary exponent */
56 /* tightly: digits, emax, and -emin in the context must be <= */
61 /* be finite, positive, have an exponent of zero, and all digits */
62 /* must be either 0 or 1. The result will only contain digits */
142 /* 6. The digits count is allowed to rise to a multiple of DECDPUN */
144 /* accounting of digits is not needed. The correct digits value */
146 /* This must be called before any rounding if the number of digits */
150 /* numbers up to four digits, using appropriate constants. This */
308 /* complement of digits (where appropriate -- this is not the case */
359 dn->digits=decGetDigits(dn->lsu, up-dn->lsu); in decNumberFromUInt32()
[all …]
/openbmc/linux/tools/include/nolibc/
H A Dstdlib.h205 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 Ddecimal64.c81 /* digits or an overflow is detected). If the exponent is out of the */
101 /* If the number has too many digits, or the exponent could be */ in decimal64FromNumber()
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()
149 Int pad=0; /* coefficient pad digits */ in decimal64FromNumber()
163 Int d=dn->digits; in decimal64FromNumber()
168 if (dn->digits>6) { in decimal64FromNumber()
350 /* convert 16 digits of significand to characters */ in decimal64ToString()
[all …]
H A Ddecimal32.c75 /* digits or an overflow is detected). If the exponent is out of the */
93 /* If the number has too many digits, or the exponent could be */ in decimal32FromNumber()
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()
141 Int pad=0; /* coefficient pad digits */ 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()
297 /* convert 7 digits of significand to characters */ in decimal32ToString()
[all …]
H A Ddecimal128.c75 /* digits or an overflow is detected). If the exponent is out of the */
97 /* If the number has too many digits, or the exponent could be */ in decimal128FromNumber()
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()
145 Int pad=0; /* coefficient pad digits */ in decimal128FromNumber()
341 /* convert 34 digits of significand to characters */ in decimal128ToString()
347 /* the 4-chars are a 1-char length (significant digits, except 000 */ in decimal128ToString()
389 /* [here, pre-exp is the digits count (==1 for zero)] */ in decimal128ToString()
[all …]
/openbmc/u-boot/lib/
H A Dvsprintf.c49 * 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 Dtiny-printf.c73 /* (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/linux/arch/m68k/fpsp040/
H A Dbindec.S44 | 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 Ddecbin.S27 | 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
174 | (i.e., all digits assumed left of the decimal point.)
207 moveql #FSTRT,%d3 |counter to pick up digits
208 moveql #FNIBS,%d2 |reset number of digits per a0 ptr
[all …]
/openbmc/qemu/include/libdecnumber/
H A DdecNumber.h57 #define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */
60 /* DECNUMDIGITS is the default number of digits that can be held in */
69 /* number of digits it will hold. */
82 int32_t digits; /* Count of digits in the coefficient; >0 */ member
91 /* 1. If digits is > DECDPUN then there will one or more */
93 /* These contain the remaining (more significant) digits of the */
100 /* contains DECDPUN digits (e.g., a value in the range 0 through */
103 /* 2. A decNumber converted to a string may need up to digits+14 */
201 && (dn)->digits==1 \
/openbmc/bmcweb/redfish-core/include/utils/
H A Dhex_utils.hpp13 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/linux/drivers/isdn/mISDN/
H A Ddsp_dtmf.c130 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()
/openbmc/u-boot/lib/libavb/
H A Davb_cmdline.c136 /* 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/target/ppc/
H A Ddfp_helper.c583 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/linux/tools/perf/util/
H A Ddemangle-rust.c59 * 1. The hash must consist of "h" followed by 16 lowercase hex digits.
62 * hex digits. This is true of 99.9998% of hashes so once in your life you
97 * A hash is the prefix "::h" followed by 16 lowercase hex digits. The hex
98 * digits must comprise between 5 and 15 (inclusive) distinct digits.
120 /* Count how many distinct digits seen */ in is_prefixed_hash()
/openbmc/qemu/include/gdbstub/
H A Dcommands.h103 * 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/openbmc/meta-facebook/meta-yosemite4/recipes-phosphor/gpio/phosphor-gpio-monitor/
H A Dslot-hsc-fault6 local digits="0123456789ABCDEF"
10 hex="${digits:remainder:1}$hex"
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dguest_sprintf.c47 static const char digits[16] = "0123456789ABCDEF"; /* "GHIJKLMNOPQRSTUVWXYZ"; */ in number() local
54 * locase = 0 or 0x20. ORing digits or letters with 'locase' in number()
55 * produces same digits or (maybe lowercased) letters in number()
88 tmp[i++] = (digits[__do_div(num, base)] | locase); in number()
130 * min. # of digits for integers; max in guest_vsnprintf()
/openbmc/linux/arch/alpha/boot/
H A Dstdio.c46 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()
121 int precision; /* min. # of digits for integers; max in vsprintf()
/openbmc/linux/arch/x86/boot/
H A Dprintf.c45 static const char digits[16] = "0123456789ABCDEF"; /* "GHIJKLMNOPQRSTUVWXYZ"; */ in number() local
51 /* locase = 0 or 0x20. ORing digits or letters with 'locase' in number()
52 * produces same digits or (maybe lowercased) letters */ in number()
84 tmp[i++] = (digits[__do_div(num, base)] | locase); in number()
124 int precision; /* min. # of digits for integers; max in vsprintf()
/openbmc/linux/include/crypto/internal/
H A Decc.h48 * @ndigits: Number of digits to copy
63 * @ndigits: curve's number of digits
78 * @ndigits: curve number of digits
90 * @ndigits: curve's number of digits
104 * @ndigits: curve's number of 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/linux/Documentation/admin-guide/
H A Dlcd-panel-cgram.rst8 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-extended/at/at/
H A Dposixtm.c40 POSIX says that only '0' through '9' are digits. Prefer ISDIGIT to
51 8, 10, or 12 digits, followed by optional .ss
55 8 or 10 digits, YY (if present) must be in the range 69-99
59 8, 10, or 12 digits
151 /* Handle 8 digits worth of `MMDDhhmm'. */ in posix_time_parse()
/openbmc/linux/arch/powerpc/boot/
H A Dstdio.c82 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()
157 int precision; /* min. # of digits for integers; max in vsprintf()

12345678910>>...13