__popcnt8

Counts the number of set bits in an 8-bit unsigned integer.This topic only applies to Intel® 64 and IA-32 architectures 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.

For more complete information about compiler optimizations, see our Optimization Notice.