_CountLeadingSigns, _CountLeadingSigns64
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

_CountLeadingSigns, _CountLeadingSigns64 

Visual Studio 2005

This function returns the number of contiguous bits that match the sign bit, starting with the next most significant bit.


unsigned __cdecl _CountLeadingSigns(
  long arg1
);

unsigned __cdecl _CountLeadingSigns64(
  __int64 arg1
);

Parameters

arg1

[in] The unsigned integer value that the function operates on.

The number of contiguous bits in arg1 that match the sign bit.

This function can be implemented by calling a runtime function.

Routine Required header Architecture

_CountLeadingSigns

<cmnintrin.h>

x86, ARM, SH-4, MIPS

_CountLeadingSigns64

<cmnintrin.h>

x86, ARM, SH-4, MIPS

Show:
© 2016 Microsoft