43 #ifndef INCLUDED_VOLK_32u_POPCNT_A16_H
44 #define INCLUDED_VOLK_32u_POPCNT_A16_H
49 #ifdef LV_HAVE_GENERIC
54 uint32_t retVal = value;
56 retVal = (retVal & 0x55555555) + (retVal >> 1 & 0x55555555);
57 retVal = (retVal & 0x33333333) + (retVal >> 2 & 0x33333333);
58 retVal = (retVal + (retVal >> 4)) & 0x0F0F0F0F;
59 retVal = (retVal + (retVal >> 8));
60 retVal = (retVal + (retVal >> 16)) & 0x0000003F;
70 #include <nmmintrin.h>
FORCE_INLINE int _mm_popcnt_u32(unsigned int a)
Definition: sse2neon.h:8736
static void volk_32u_popcnt_a_sse4_2(uint32_t *ret, const uint32_t value)
Definition: volk_32u_popcnt.h:72
static void volk_32u_popcnt_generic(uint32_t *ret, const uint32_t value)
Definition: volk_32u_popcnt.h:51