Skip to content

Commit

Permalink
Merge pull request #901 from bnjbvr/patch-1
Browse files Browse the repository at this point in the history
Always inline the cast_from_int in the non-SIMD impl
  • Loading branch information
dhardy committed Oct 28, 2019
2 parents c95ad76 + 961aa13 commit 19b5a3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/distributions/utils.rs
Expand Up @@ -321,6 +321,7 @@ macro_rules! scalar_float_impl {
<$ty>::from_bits(self.to_bits() - 1)
}
type UInt = $uty;
#[inline]
fn cast_from_int(i: Self::UInt) -> Self { i as $ty }
}

Expand Down

0 comments on commit 19b5a3e

Please sign in to comment.