Ref. + AVX code & generic tests + benches (#85)

This commit is contained in:
Jean-Philippe Bossuat
2025-09-15 16:16:11 +02:00
committed by GitHub
parent 99b9e3e10e
commit 56dbd29c59
286 changed files with 27797 additions and 7270 deletions

View File

@@ -39,6 +39,12 @@ impl Source {
min + ((self.next_u64() << 11 >> 11) as f64) / MAXF64 * (max - min)
}
#[inline(always)]
pub fn next_i32(&mut self) -> i32 {
self.next_u32() as i32
}
#[inline(always)]
pub fn next_i64(&mut self) -> i64 {
self.next_u64() as i64
}