HomeFreeBSD

Optimize bitcount32 by replacing 6 logical operations with 2. The key
rS166698Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Optimize bitcount32 by replacing 6 logical operations with 2. The key
observation here is that it doesn't matter what garbage accumulates in
bits which we're going to end up masking away anyway, as long as the
garbage doesn't overflow into bits which we care about.

This improved version may not be the fastest possible on all systems,
but it's certainly going to be better than what was here before.

Details

Provenance
cpercivaAuthored on
Parents
rS166697: Add KTR tracing
Branches
Unknown
Tags
Unknown

Event Timeline