Skip to content

[libc] clean up use of __builtin_popcountl in sched_getcpucount #128781

@michaelrj-google

Description

@michaelrj-google

In libc/src/sched/linux/sched_getcpucount.cpp we currently use __builtin_popcountl. Ideally we'd instead use cpp::popcount defined in libc/src/__support/CPP/bit.h.

Metadata

Metadata

Assignees

Labels

good first issuehttps://github.com/llvm/llvm-project/contributelibc

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions