MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_popcount64

Function rte_popcount64

dpdk/lib/eal/include/rte_bitops.h:336–340  ·  view source on GitHub ↗

* Get the count of 1-bits in v. * * @param v * The value. * @return * The count of 1-bits. */

Source from the content-addressed store, hash-verified

334 * The count of 1-bits.
335 */
336static inline unsigned int
337rte_popcount64(uint64_t v)
338{
339 return (unsigned int)__popcnt64(v);
340}
341
342#else
343

Calls

no outgoing calls

Tested by 2

test_popcount64Function · 0.68