Sun Jul 20 11:30:15 AM +08 2025#0
generator_a
.zip(generator_b)
.take(5_000_000)
.map(|(a, b)| ((a ^ b) & 0xFFFF == 0) as usize)
.sum()
this is how you check lower 16 bits for equality and count matches. nice.
generator_a
.zip(generator_b)
.take(5_000_000)
.map(|(a, b)| ((a ^ b) & 0xFFFF == 0) as usize)
.sum()
this is how you check lower 16 bits for equality and count matches. nice.