We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 059de6b commit 44b15a7Copy full SHA for 44b15a7
examples/aobench/src/random.rs
@@ -91,6 +91,7 @@ pub mod vector {
91
RngT(z0, z1, z2, z3)
92
}
93
94
+ #[inline]
95
pub fn gen_u32(&mut self) -> u32xN {
96
let mut b = ((self.0 << 6) ^ self.0) >> 13;
97
self.0 = ((self.0 & u32xN::splat(4_294_967_294)) << 18) ^ b;
@@ -103,6 +104,7 @@ pub mod vector {
103
104
self.0 ^ self.1 ^ self.2 ^ self.3
105
106
107
108
pub fn gen(&mut self) -> f32xN {
109
let mut v = self.gen_u32();
110
v &= u32xN::splat((1_u32 << 23) - 1);
@@ -119,6 +121,7 @@ pub mod vector {
119
121
120
122
123
impl RngH {
124
125
126
unsafe { (*self.rng.get()).gen() }
127
0 commit comments