Intel® C++ Compiler 18.0 Developer Guide and Reference

__popcnt8

Counts the number of set bits in an 8-bit unsigned integer.This topic only applies when targeting Intel® Graphics Technology.

Syntax

unsigned char __popcnt8(unsigned char value);

Parameters

value

An 8-bit unsigned integer.

Description

This function counts the number of set bits in value.

Return Values

The number of bits set to 1.