Skip to main content

shape_pair_key

Function shape_pair_key 

Source
pub fn shape_pair_key(k1: i32, k2: i32) -> u64
Expand description

Build a symmetric key from a pair of shape indices. (B2_SHAPE_PAIR_KEY)

The smaller index goes in the high 32 bits so (a, b) and (b, a) map to the same key.