10#ifndef __POPCNTINTRIN_H
11#define __POPCNTINTRIN_H
14#if defined(__cplusplus) && (__cplusplus >= 201103L)
15#define __DEFAULT_FN_ATTRS \
16 __attribute__((__always_inline__, __nodebug__, \
17 __target__("popcnt"))) constexpr
19#define __DEFAULT_FN_ATTRS \
20 __attribute__((__always_inline__, __nodebug__, __target__("popcnt")))
36 return __builtin_popcount(__A);
51_mm_popcnt_u64(
unsigned long long __A)
53 return __builtin_popcountll(__A);
57#undef __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS
static __inline__ int __DEFAULT_FN_ATTRS _mm_popcnt_u32(unsigned int __A)
Counts the number of bits in the source operand having a value of 1.