Intel® C++ Compiler 16.0 User and Reference Guide

_mm_countbits

Performs a bit population count. Corresponding instruction is _mm_countbits This intrinsic only applies to Intel® Many Integrated Core Architecture (Intel® MIC Architecture).

Syntax

extern unsigned int __cdecl _mm_countbits_32(unsigned int r2);

extern _MM_UINT64_TYPE __cdecl _mm_countbits_64(_MM_UINT64_TYPE r2);

Parameters

r2

source operand with 32-, or 64-bit elements

Description

Performs a population count of the 1-bits in the source operand r2. The result is returned. This intrinsic is used to support data queuing.

Returns

Returns the result of the count operation.