clang 20.0.0git
Macros | Functions
popcntintrin.h File Reference

Go to the source code of this file.

Macros

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("popcnt")))
 
#define __DEFAULT_FN_ATTRS_CONSTEXPR   __DEFAULT_FN_ATTRS
 

Functions

static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR _mm_popcnt_u32 (unsigned int __A)
 Counts the number of bits in the source operand having a value of 1.
 

Macro Definition Documentation

◆ __DEFAULT_FN_ATTRS

#define __DEFAULT_FN_ATTRS   __attribute__((__always_inline__, __nodebug__, __target__("popcnt")))

Definition at line 14 of file popcntintrin.h.

◆ __DEFAULT_FN_ATTRS_CONSTEXPR

#define __DEFAULT_FN_ATTRS_CONSTEXPR   __DEFAULT_FN_ATTRS

Definition at line 19 of file popcntintrin.h.

Function Documentation

◆ _mm_popcnt_u32()

static __inline__ int __DEFAULT_FN_ATTRS_CONSTEXPR _mm_popcnt_u32 ( unsigned int  __A)
static

Counts the number of bits in the source operand having a value of 1.

This intrinsic corresponds to the POPCNT instruction.

Parameters
__AAn unsigned 32-bit integer operand.
Returns
A 32-bit integer containing the number of bits with value 1 in the source operand.

Definition at line 33 of file popcntintrin.h.