Lines Matching +full:end +full:- +full:of +full:- +full:conversion
1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: utstrsuppt - Support functions for string-to-integer conversion
27 * PARAMETERS: string - Null terminated input string
28 * return_value_ptr - Where the converted value is returned
30 * RETURN: Status and 64-bit converted integer
32 * DESCRIPTION: Performs a base 8 conversion of the input string to an
35 * NOTE: Maximum 64-bit unsigned octal value is 01777777777777777777777
36 * Maximum 32-bit unsigned octal value is 037777777777
49 * Character must be ASCII 0-7, otherwise: in acpi_ut_convert_octal_string()
81 * PARAMETERS: string - Null terminated input string
82 * return_value_ptr - Where the converted value is returned
84 * RETURN: Status and 64-bit converted integer
86 * DESCRIPTION: Performs a base 10 conversion of the input string to an
89 * NOTE: Maximum 64-bit unsigned decimal value is 18446744073709551615
90 * Maximum 32-bit unsigned decimal value is 4294967295
103 * Character must be ASCII 0-9, otherwise: in acpi_ut_convert_decimal_string()
135 * PARAMETERS: string - Null terminated input string
136 * return_value_ptr - Where the converted value is returned
138 * RETURN: Status and 64-bit converted integer
140 * DESCRIPTION: Performs a base 16 conversion of the input string to an
143 * NOTE: Maximum 64-bit unsigned hex value is 0xFFFFFFFFFFFFFFFF
144 * Maximum 32-bit unsigned hex value is 0xFFFFFFFF
157 * Character must be ASCII A-F, a-f, or 0-9, otherwise: in acpi_ut_convert_hex_string()
189 * PARAMETERS: string - Pointer to input ASCII string
192 * used by the caller to detect end-of-string.
196 * to check for the end of the string (NULL terminator).
214 * PARAMETERS: string - Pointer to input ASCII string
217 * used by the caller to detect end-of-string.
221 * to check for the end of the string (NULL terminator).
239 * PARAMETERS: string - Pointer to input ASCII string
241 * RETURN: TRUE if a "0x" prefix was found at the start of the string
263 * PARAMETERS: string - Pointer to input ASCII string
283 * PARAMETERS: string - Pointer to input ASCII string
285 * RETURN: True if an octal "0" prefix was found at the start of the
307 * PARAMETERS: accumulated_value - Current value of the integer value
310 * base - Radix, either 8/10/16
311 * ascii_digit - ASCII single digit to be inserted
313 * RETURN: Status and result of the convert/insert operation. The only
314 * possible returned exception code is numeric overflow of
315 * either the multiply or add conversion operations.
317 * DESCRIPTION: Generic conversion and insertion function for all bases:
357 * PARAMETERS: multiplicand - Current accumulated converted integer
358 * base - Base/Radix
359 * out_product - Where the product is returned
361 * RETURN: Status and 64-bit product
363 * DESCRIPTION: Multiply two 64-bit values, with checking for 64-bit overflow as
364 * well as 32-bit overflow if necessary (if the current global
383 * Check for 64-bit overflow before the actual multiplication. in acpi_ut_strtoul_multiply64()
385 * Notes: 64-bit division is often not supported on 32-bit platforms in acpi_ut_strtoul_multiply64()
387 * 64-bit divide function. Also, Multiplier is currently only used in acpi_ut_strtoul_multiply64()
397 /* Check for 32-bit overflow if necessary */ in acpi_ut_strtoul_multiply64()
411 * PARAMETERS: addend1 - Current accumulated converted integer
412 * digit - New hex value/char
413 * out_sum - Where sum is returned (Accumulator)
415 * RETURN: Status and 64-bit sum
417 * DESCRIPTION: Add two 64-bit values, with checking for 64-bit overflow as
418 * well as 32-bit overflow if necessary (if the current global
427 /* Check for 64-bit overflow before the actual addition */ in acpi_ut_strtoul_add64()
429 if ((addend1 > 0) && (digit > (ACPI_UINT64_MAX - addend1))) { in acpi_ut_strtoul_add64()
435 /* Check for 32-bit overflow if necessary */ in acpi_ut_strtoul_add64()