HomeFreeBSD

Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and

Description

Use __builtin_popcnt() to implement a BIT_COUNT() operation for bitsets and
use this to implement CPU_COUNT() to count the number of CPUs in a cpuset.

MFC after: 2 weeks

Details

Provenance
jhbAuthored on
Parents
rS278473: Add x2APIC support. Enable it by default if CPU is capable. The
Branches
Unknown
Tags
Unknown

Event Timeline