Home
last modified time | relevance | path

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

1234567

/linux/rust/syn/
H A Dbigint.rs7 digits: Vec<u8>, field
12 BigInt { digits: Vec::new() } in new()
16 let mut repr = String::with_capacity(self.digits.len()); in to_string()
19 for digit in self.digits.iter().rev() { in to_string()
34 let len = self.digits.len(); in reserve_two_digits()
36 len + !self.digits.ends_with(&[0, 0]) as usize + !self.digits.ends_with(&[0]) as usize; in reserve_two_digits()
37 self.digits.resize(desired, 0); in reserve_two_digits()
48 let sum = self.digits[i] + increment; in add_assign()
49 self.digits[i] = sum % 10; in add_assign()
62 for digit in &mut self.digits { in mul_assign()
H A Dlit.rs107 digits: Box<str>, field
122 digits: Box<str>, field
417 let (digits, suffix) = match value::parse_lit_int(repr) { in new()
427 digits, in new()
434 &self.repr.digits in base10_digits()
489 if let Some((digits, suffix)) = value::parse_lit_int(&repr) { in from()
493 digits, in from()
511 let (digits, suffix) = match value::parse_lit_float(repr) { in new()
521 digits, in new()
528 &self.repr.digits in base10_digits()
[all …]
/linux/tools/include/nolibc/
H A Dstdlib.h203 int digits = 0; in utoh_r() local
210 if (dig || digits || pos < 0) { in utoh_r()
213 buffer[digits++] = '0' + dig; in utoh_r()
217 buffer[digits] = 0; in utoh_r()
218 return digits; in utoh_r()
243 int digits = 0; in utoa_r() local
251 if (digits || in >= lim || !pos) { in utoa_r()
254 buffer[digits++] = '0' + dig; in utoa_r()
258 buffer[digits] = 0; in utoa_r()
259 return digits; in utoa_r()
[all …]
/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 …]
H A Dbinstr.S12 | Output: LEN bcd digits representing the 64-bit integer.
19 | LEN digits are formed.
121 clrw %d7 |set d7a to signal no digits done
/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()
H A Ddsp_core.c670 u8 *digits = NULL; in dsp_function() local
727 digits = dsp_dtmf_goertzel_decode(dsp, skb->data, in dsp_function()
739 if (digits) { in dsp_function()
740 while (*digits) { in dsp_function()
746 __func__, *digits, dsp->name); in dsp_function()
747 k = *digits | DTMF_TONE_VAL; in dsp_function()
759 digits++; in dsp_function()
784 digits = dsp_dtmf_goertzel_decode(dsp, skb->data, in dsp_function()
786 while (*digits) { in dsp_function()
792 __func__, *digits, dsp->name); in dsp_function()
[all …]
/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()
/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()
/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()
/linux/rust/kernel/str/
H A Dparse_int.rs84 let (radix, digits) = strip_radix(rest.as_ref()); in from_str()
93 u64::from_str_radix(core::str::from_utf8(digits).map_err(|_| EINVAL)?, radix) in from_str()
98 let (radix, digits) = strip_radix(src); in from_str()
99 Self::from_str_radix(digits, radix).map_err(|_| EINVAL) in from_str()
/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
/linux/lib/crypto/mpi/
H A Dgeneric_mpih-lshift.c18 /* Shift U (pointed to by UP and USIZE digits long) CNT bits to the left
19 * and store the USIZE least significant digits of the result at WP.
/linux/drivers/firmware/efi/libstub/
H A Dvsprintf.c116 * locase = 0 or 0x20. ORing digits or letters with 'locase' in number()
117 * produces same digits or (maybe lowercased) letters in number()
121 static const char digits[16] = "0123456789ABCDEF"; /* "GHIJKLMNOPQRSTUVWXYZ"; */ in number() local
134 *--end = digits[num & 0xf] | locase; in number()
315 int precision; /* min. # of digits for integers; max in vsnprintf()
458 /* precision is minimum number of digits to print */ in vsnprintf()
/linux/drivers/watchdog/
H A Docteon-wdt-main.c172 * @digits: Number of digits to print (1 to 16)
174 static void octeon_wdt_write_hex(u64 value, int digits) in octeon_wdt_write_hex() argument
179 for (d = 0; d < digits; d++) { in octeon_wdt_write_hex()
180 v = (value >> ((digits - d - 1) * 4)) & 0xf; in octeon_wdt_write_hex()
/linux/net/netfilter/
H A Dnf_nat_irc.c64 * AAAAAAAAA: bound addr (1.0.0.0==16777216, min 8 digits, in help()
65 * 255.255.255.255==4294967296, 10 digits) in help()
/linux/Documentation/filesystems/nfs/
H A Drpc-cache.rst215 hex digits, and pairs of these digits provide the bytes in the
217 - otherwise a \ in the field must be followed by 3 octal digits
/linux/tools/testing/selftests/arm64/fp/
H A Dasm-utils.S49 str x30, [sp, #-32]! // Result can't be > 20 digits
55 0: udiv x3, x0, x2 // div-mod loop to generate the digits
/linux/Documentation/arch/s390/
H A Dpci.rst53 PCI function. The format depicted as XXXXXXXX above is 8 hexadecimal digits
54 with 0 padding and lower case hexadecimal digits.
/linux/drivers/hwmon/pmbus/
H A Dltc4286.c41 * Thus, the MBR setting which involves rsense should be shifted by 6 digits.
49 * Thus, the MBR setting which involves rsense should be shifted by 6 digits.
/linux/Documentation/admin-guide/laptops/
H A Dasus-laptop.rst203 where T control the 3 letters display, and DDD the 3 digits display,
206 DDD (digits)
207 000 to 999 = display digits
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.h365 * @major: Version major number, represented on two digits.
366 * @minor: Version minor number, represented on two digits.
367 * @revision: Version revision number, represented on two digits.
382 * @major: Version major number, represented on three digits.
383 * @minor: Version minor number, represented on three digits.
/linux/arch/x86/lib/
H A Dmisc.c5 * Count the digits of @val including a possible sign.
/linux/scripts/
H A Drustc-llvm-version.sh8 # Convert the version string x.y.z to a canonical up-to-6-digits form.

1234567