823 B
823 B
Partial-Element Getter
This function extracts a portion of an integer value from a PartialElement.
The BitField implementations call it as they assemble a complete integer. It
performs the following steps:
- the
PartialElementis loaded (and masked to discard unused bits), - the loaded value is then shifted to abut the LSedge of the stack local,
- and then
resized into aUvalue.
Type Parameters
OandTare the type parameters of thePartialElementargument.Uis the destination integer type.
Parameters
elem: APartialElementcontaining a value segment.shamt: The distance by which to right-shift the value loaded fromelemso that it abuts the LSedge.
Returns
The segment of an integer stored in elem.