The document is archived and information here might be outdated
Visual Studio 2005
This function returns the number of contiguous one bits starting with the most significant bit.
unsigned __cdecl _CountLeadingOnes( long arg1 ); unsigned __cdecl _CountLeadingOnes64( __int64 arg1 );
- [in] The long integer argument that the function examines to find one bits.