2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
|
*----------------------------------------------------------------------
*
* RequiredPrecision --
*
* Determines the number of bits needed to hold an intger.
*
* Results:
* Returns the position of the most significant bit (0 - 63). Returns 0
* if the number is zero.
*
*----------------------------------------------------------------------
*/
static int
RequiredPrecision(
|
|
>
|
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
|
*----------------------------------------------------------------------
*
* RequiredPrecision --
*
* Determines the number of bits needed to hold an intger.
*
* Results:
* Returns the position of the most significant bit (1 - 64), starting
* the counting at 1 for the LSB. (RP(1) -> 1). Returns 0
* if the number is zero.
*
*----------------------------------------------------------------------
*/
static int
RequiredPrecision(
|