Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

_CountOneBits, _CountOneBits64 

Visual Studio 2005

This function returns the number of one bits in the argument.


unsigned __cdecl _CountOneBits(
  long arg1
);

unsigned __cdecl _CountOneBits64(
  __int64 arg1
);

Parameters

arg1

[in] The long integer value that the function examines for one bits.

The number of one bits.

This function can be implemented by calling a runtime function.

Routine Required header Architecture

_CountOneBits

<cmnintrin.h>

x86, ARM, SH-4, MIPS

_CountOneBits64

<cmnintrin.h>

x86, ARM, SH-4, MIPS

Community Additions

ADD
Show:
© 2015 Microsoft