Change-Id: I4dc04dc4d948b5ddd329ba4765afc556a12e78ef
* \param a Input value.
* \return The number of one bits in the input.
*//*--------------------------------------------------------------------*/
-DE_INLINE int dePop32 (int a)
+DE_INLINE int dePop32 (deUint32 a)
{
deUint32 mask0 = 0x55555555; /* 1-bit values. */
deUint32 mask1 = 0x33333333; /* 2-bit values. */
return (int)t;
}
+DE_INLINE int dePop64 (deUint64 a)
+{
+ return dePop32((deUint32)(a & 0xffffffffull)) + dePop32((deUint32)(a >> 32));
+}
+
/*--------------------------------------------------------------------*//*!
* \brief Reverse bytes in 32-bit integer (for example MSB -> LSB).
* \param a Input value.