_CountLeadingOnes, _CountLeadingOnes64 (Windows Embedded CE 6.0)
1/5/2010
This function returns the number of contiguous one bits starting with the most significant bit.
Syntax
unsigned __cdecl _CountLeadingOnes(
long arg1
);
unsigned __cdecl _CountLeadingOnes64(
__int64 arg1
);
Parameters
- arg1
[in] The long integer argument that the function examines to find one bits.
Return Values
The number of contiguous one bits in arg1. If all bits in arg1 are set, the return value of _CountLeadingOnes is 32, or the value of _CountLeadingOnes64 is 64.
Remarks
This function can be implemented by calling a runtime function.
Requirements
Architecture | ARM, MIPS, SH-4 |
Header | cmnintrin.h |
Routine | _CountLeadingOnes |
See Also
Reference
Common Intrinsic Functions for Device Compilers