Skip to main content

encode_and_popcount_dispatch

Function encode_and_popcount_dispatch 

Source
pub fn encode_and_popcount_dispatch<R: Rng + ?Sized>(
    weight_words: &[u64],
    prob: f64,
    length: usize,
    rng: &mut R,
) -> u64
Expand description

Fused encode+AND+popcount dispatch.

Delegates to the scalar-control implementation in bitstream, which already performs SIMD Bernoulli compare where available.