Skip to main content

select_register

Function select_register 

Source
pub fn select_register<const W: usize, const S: usize>(
    a: [b32; S],
    b: [b32; S],
) -> (bool, b32, [b32; W])
Expand description

The register read from its two subslots a (subslot 0) and b: whether either is valid, the higher valid incarnation, and its value. Equal valid generations with different decoded payloads are ambiguous and return invalid/default. Identical copies remain acceptable. This comparison is within one host’s register; equal generations across hosts are normal.