Home
last modified time | relevance | path

Searched refs:digit (Results 1 - 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/arch/m68k/fpsp040/
H A Dbinstr.S18 | msb form a decimal digit. This process is iterated until
21 | A1. Init d7 to 1. D7 is the byte digit counter, and if 1, the
22 | digit formed will be assumed the least significant. This is
36 | into d2:d3. D1 will contain the bcd digit formed.
38 | A6. Test d7. If zero, the digit formed is the ms digit. If non-
39 | zero, it is the ls digit. Put the digit in its place in the
40 | upper word of d0. If it is the ls digit, write the word
50 | d1: temp used to form the digit
[all...]
H A Ddecbin.S33 | assumed following the least-significant digit.
43 | SM = 0 a non-zero digit in the integer position
44 | SM = 1 a non-zero digit in Mant0, lsd of the fraction
133 | (*) d0: temp digit storage
135 | (*) d2: digit count
153 mulul #TEN,%d1 |mul partial product by one digit place
154 bfextu %d4{%d3:#4},%d0 |get the digit and zero extend into d0
156 addqb #4,%d3 |advance d3 to the next digit
179 | (*) d0: temp digit storage
181 | (*) d2: digit coun
[all...]
/kernel/linux/linux-6.6/arch/m68k/fpsp040/
H A Dbinstr.S18 | msb form a decimal digit. This process is iterated until
21 | A1. Init d7 to 1. D7 is the byte digit counter, and if 1, the
22 | digit formed will be assumed the least significant. This is
36 | into d2:d3. D1 will contain the bcd digit formed.
38 | A6. Test d7. If zero, the digit formed is the ms digit. If non-
39 | zero, it is the ls digit. Put the digit in its place in the
40 | upper word of d0. If it is the ls digit, write the word
50 | d1: temp used to form the digit
[all...]
H A Ddecbin.S33 | assumed following the least-significant digit.
43 | SM = 0 a non-zero digit in the integer position
44 | SM = 1 a non-zero digit in Mant0, lsd of the fraction
133 | (*) d0: temp digit storage
135 | (*) d2: digit count
153 mulul #TEN,%d1 |mul partial product by one digit place
154 bfextu %d4{%d3:#4},%d0 |get the digit and zero extend into d0
156 addqb #4,%d3 |advance d3 to the next digit
179 | (*) d0: temp digit storage
181 | (*) d2: digit coun
[all...]
/kernel/linux/linux-5.10/arch/powerpc/boot/
H A Dstdlib.c21 int digit; in strtoull() local
24 digit = *ptr - '0'; in strtoull()
26 digit = *ptr - 'A' + 10; in strtoull()
28 digit = *ptr - 'a' + 10; in strtoull()
33 ret += digit; in strtoull()
/kernel/linux/linux-6.6/arch/powerpc/boot/
H A Dstdlib.c21 int digit; in strtoull() local
24 digit = *ptr - '0'; in strtoull()
26 digit = *ptr - 'A' + 10; in strtoull()
28 digit = *ptr - 'a' + 10; in strtoull()
33 ret += digit; in strtoull()
/kernel/linux/linux-5.10/arch/arm/boot/compressed/
H A Datags_to_fdt.c105 uint32_t digit; in hex_str() local
109 digit = value >> 28; in hex_str()
111 digit &= 0xf; in hex_str()
112 if (digit < 10) in hex_str()
113 digit += '0'; in hex_str()
115 digit += 'A'-10; in hex_str()
116 *out++ = digit; in hex_str()
/kernel/linux/linux-6.6/arch/arm/boot/compressed/
H A Datags_to_fdt.c106 uint32_t digit; in hex_str() local
110 digit = value >> 28; in hex_str()
112 digit &= 0xf; in hex_str()
113 if (digit < 10) in hex_str()
114 digit += '0'; in hex_str()
116 digit += 'A'-10; in hex_str()
117 *out++ = digit; in hex_str()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dexoparg1.c230 u64 digit; in acpi_ex_opcode_1A_1T_1R() local
303 digit = operand[0]->integer.value; in acpi_ex_opcode_1A_1T_1R()
305 /* Convert each BCD digit (each is one nybble wide) */ in acpi_ex_opcode_1A_1T_1R()
308 (i < acpi_gbl_integer_nybble_width) && (digit > 0); in acpi_ex_opcode_1A_1T_1R()
311 /* Get the least significant 4-bit BCD digit */ in acpi_ex_opcode_1A_1T_1R()
313 temp32 = ((u32) digit) & 0xF; in acpi_ex_opcode_1A_1T_1R()
315 /* Check the range of the digit */ in acpi_ex_opcode_1A_1T_1R()
319 "BCD digit too large (not decimal): 0x%X", in acpi_ex_opcode_1A_1T_1R()
326 /* Sum the digit into the result with the current power of 10 */ in acpi_ex_opcode_1A_1T_1R()
331 /* Shift to next BCD digit */ in acpi_ex_opcode_1A_1T_1R()
[all...]
H A Dutstrsuppt.c21 static acpi_status acpi_ut_strtoul_add64(u64 addend1, u32 digit, u64 *out_sum);
60 /* Convert and insert this octal digit into the accumulator */ in acpi_ut_convert_octal_string()
114 /* Convert and insert this decimal digit into the accumulator */ in acpi_ut_convert_decimal_string()
168 /* Convert and insert this hex digit into the accumulator */ in acpi_ut_convert_hex_string()
311 * ascii_digit - ASCII single digit to be inserted
336 /* Make room in the accumulated value for the incoming digit */ in acpi_ut_insert_digit()
343 /* Add in the new digit, and store the sum to the accumulated value */ in acpi_ut_insert_digit()
412 * digit - New hex value/char
423 static acpi_status acpi_ut_strtoul_add64(u64 addend1, u32 digit, u64 *out_sum) in acpi_ut_strtoul_add64() argument
429 if ((addend1 > 0) && (digit > (ACPI_UINT64_MA in acpi_ut_strtoul_add64()
[all...]
H A Dexconvrt.c262 u64 digit; in acpi_ex_convert_to_ascii() local
303 digit = integer; in acpi_ex_convert_to_ascii()
305 (void)acpi_ut_short_divide(digit, 10, &digit, in acpi_ex_convert_to_ascii()
329 /* Get one hex digit, most significant digits first */ in acpi_ex_convert_to_ascii()
533 /* Each digit is separated by either a comma or space */ in acpi_ex_convert_to_string()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dexoparg1.c236 u64 digit; in acpi_ex_opcode_1A_1T_1R() local
310 digit = operand[0]->integer.value; in acpi_ex_opcode_1A_1T_1R()
312 /* Convert each BCD digit (each is one nybble wide) */ in acpi_ex_opcode_1A_1T_1R()
315 (i < acpi_gbl_integer_nybble_width) && (digit > 0); in acpi_ex_opcode_1A_1T_1R()
318 /* Get the least significant 4-bit BCD digit */ in acpi_ex_opcode_1A_1T_1R()
320 temp32 = ((u32) digit) & 0xF; in acpi_ex_opcode_1A_1T_1R()
322 /* Check the range of the digit */ in acpi_ex_opcode_1A_1T_1R()
326 "BCD digit too large (not decimal): 0x%X", in acpi_ex_opcode_1A_1T_1R()
333 /* Sum the digit into the result with the current power of 10 */ in acpi_ex_opcode_1A_1T_1R()
338 /* Shift to next BCD digit */ in acpi_ex_opcode_1A_1T_1R()
[all...]
H A Dutstrsuppt.c21 static acpi_status acpi_ut_strtoul_add64(u64 addend1, u32 digit, u64 *out_sum);
60 /* Convert and insert this octal digit into the accumulator */ in acpi_ut_convert_octal_string()
114 /* Convert and insert this decimal digit into the accumulator */ in acpi_ut_convert_decimal_string()
168 /* Convert and insert this hex digit into the accumulator */ in acpi_ut_convert_hex_string()
311 * ascii_digit - ASCII single digit to be inserted
336 /* Make room in the accumulated value for the incoming digit */ in acpi_ut_insert_digit()
343 /* Add in the new digit, and store the sum to the accumulated value */ in acpi_ut_insert_digit()
412 * digit - New hex value/char
423 static acpi_status acpi_ut_strtoul_add64(u64 addend1, u32 digit, u64 *out_sum) in acpi_ut_strtoul_add64() argument
429 if ((addend1 > 0) && (digit > (ACPI_UINT64_MA in acpi_ut_strtoul_add64()
[all...]
H A Dexconvrt.c262 u64 digit; in acpi_ex_convert_to_ascii() local
303 digit = integer; in acpi_ex_convert_to_ascii()
305 (void)acpi_ut_short_divide(digit, 10, &digit, in acpi_ex_convert_to_ascii()
329 /* Get one hex digit, most significant digits first */ in acpi_ex_convert_to_ascii()
533 /* Each digit is separated by either a comma or space */ in acpi_ex_convert_to_string()
/kernel/linux/linux-5.10/tools/testing/selftests/size/
H A Dget_size.c47 unsigned int digit; in num_to_str() local
53 digit = num % 10; in num_to_str()
54 *(--buf) = digit + '0'; in num_to_str()
/kernel/linux/linux-6.6/tools/testing/selftests/size/
H A Dget_size.c47 unsigned int digit; in num_to_str() local
53 digit = num % 10; in num_to_str()
54 *(--buf) = digit + '0'; in num_to_str()
/kernel/linux/linux-5.10/samples/pktgen/
H A Dfunctions.sh232 # check each digit (0 <= $digit <= $max)
233 for digit in "${addr[@]}"; do
234 [[ $IP6 ]] && digit=$[ 16#$digit ]
235 if ! (in_between $digit 0 $max); then
283 digit=$[ IP6 ? 16#${ip[$i]} : ${ip[$i]} ]
284 ip_bit=${D2B[$digit]}
/kernel/linux/linux-6.6/samples/pktgen/
H A Dfunctions.sh238 # check each digit (0 <= $digit <= $max)
239 for digit in "${addr[@]}"; do
240 [[ $IP6 ]] && digit=$[ 16#$digit ]
241 if ! (in_between $digit 0 $max); then
289 digit=$[ IP6 ? 16#${ip[$i]} : ${ip[$i]} ]
290 ip_bit=${D2B[$digit]}
/kernel/linux/linux-5.10/lib/
H A Dstring_helpers.c109 /* add a 5 to the digit below what will be printed to ensure in string_get_size()
183 int digit; in unescape_hex() local
189 num = digit = hex_to_bin(*q++); in unescape_hex()
190 if (digit < 0) in unescape_hex()
193 digit = hex_to_bin(*q); in unescape_hex()
194 if (digit >= 0) { in unescape_hex()
196 num = (num << 4) | digit; in unescape_hex()
H A Dvsprintf.c71 /* Field too short for prefix + digit, skip over without converting */ in simple_strntoull()
3267 char digit; in vsscanf() local
3466 digit = *str; in vsscanf()
3467 if (is_sign && digit == '-') in vsscanf()
3468 digit = *(str + 1); in vsscanf()
3470 if (!digit in vsscanf()
3471 || (base == 16 && !isxdigit(digit)) in vsscanf()
3472 || (base == 10 && !isdigit(digit)) in vsscanf()
3473 || (base == 8 && (!isdigit(digit) || digit > ' in vsscanf()
[all...]
/kernel/linux/linux-6.6/lib/
H A Dstring_helpers.c110 /* add a 5 to the digit below what will be printed to ensure in string_get_size()
228 int digit; in unescape_hex() local
234 num = digit = hex_to_bin(*q++); in unescape_hex()
235 if (digit < 0) in unescape_hex()
238 digit = hex_to_bin(*q); in unescape_hex()
239 if (digit >= 0) { in unescape_hex()
241 num = (num << 4) | digit; in unescape_hex()
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
H A Dmisc.c164 unsigned long digit = (value >> bits) & 0xf; in __puthex() local
166 if (digit < 0xA) in __puthex()
167 alpha[0] = '0' + digit; in __puthex()
169 alpha[0] = 'a' + (digit - 0xA); in __puthex()
/kernel/linux/linux-6.6/arch/x86/boot/compressed/
H A Dmisc.c173 unsigned long digit = (value >> bits) & 0xf; in __puthex() local
175 if (digit < 0xA) in __puthex()
176 alpha[0] = '0' + digit; in __puthex()
178 alpha[0] = 'a' + (digit - 0xA); in __puthex()
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/
H A Dilsp.S312 mov.w %d5, %d1 # 2nd quotient 'digit'
320 # In this algorithm, the divisor is treated as a 2 digit (word) number
321 # which is divided into a 3 digit (word) dividend to get one quotient
322 # digit (word). After subtraction, the dividend is shifted and the
324 # 'normalized' so that the process of estimating the quotient digit
341 # The comments use subscripts for the first quotient digit determination.
388 # the 3 digit (word) result with the current dividend words
400 bcc ldd2nd # no carry, do next quotient digit
418 # first quotient digit now correct. store digit an
[all...]
/kernel/linux/linux-6.6/arch/m68k/ifpsp060/src/
H A Dilsp.S312 mov.w %d5, %d1 # 2nd quotient 'digit'
320 # In this algorithm, the divisor is treated as a 2 digit (word) number
321 # which is divided into a 3 digit (word) dividend to get one quotient
322 # digit (word). After subtraction, the dividend is shifted and the
324 # 'normalized' so that the process of estimating the quotient digit
341 # The comments use subscripts for the first quotient digit determination.
388 # the 3 digit (word) result with the current dividend words
400 bcc ldd2nd # no carry, do next quotient digit
418 # first quotient digit now correct. store digit an
[all...]

Completed in 18 milliseconds

12