HomeFreeBSD

amd64: micro-optimize vptopte()/vtopde() further

Description

amd64: micro-optimize vptopte()/vtopde() further

Eliminate shlq $3,address shift after masking of the va is done, which
is needed to convert pt_entry_t[] array index into byte offset.
Do it by preshifting the mask, and compensating the right shift of va.

Suggested by: alc
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D33786

Details

Provenance
kibAuthored on Jan 8 2022, 5:09 AM
Reviewer
markj
Differential Revision
D33786: amd64: micro-optimize vptopte()/vtopde() further
Parents
rG0b8643eaf6e7: vmmeter(): Fix detection of the named swap objects
Branches
Unknown
Tags
Unknown