Ring1_Intrinsic_countLeadingZeroes
Computes the number of leading zeroes of the binary representation of unsigned integer value.
short
Ring1_Intrinsic_countLeadingZeroes_suffix
(
short *result,
type x
)
The following table denotes the valid combinations of suffix and type
suffix |
type |
u8 |
uint8_t |
u16 |
uint16_t |
u32 |
uint32_t |
u64 |
uint64_t |
sz |
size_t |
Parameter Values
result
- A pointer to a variable.
result
is assigned the leading zeroes on success.result
is not dereferenced on failure. - x
- The value value.
Return Values
Ring1_Result_Success
on success,
Ring1_Result_Failure
on failure.
Post Conditions
If this function fails, then it sets the by-thread status variable.
Below is a list of failure conditions and the status codes indicating them.
Ring1_Status_InvalidArgument
result
was0
.