Skip to content

Commit

Permalink
Implement HighPrecision for f32 and f64
Browse files Browse the repository at this point in the history
  • Loading branch information
sicking committed Jun 25, 2018
1 parent 20b0017 commit f089a53
Show file tree
Hide file tree
Showing 2 changed files with 284 additions and 234 deletions.
3 changes: 3 additions & 0 deletions benches/distributions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ distr_int!(distr_uniform_i128, i128, Uniform::new(-123_456_789_123i128, 123_456_

distr_float!(distr_uniform_f32, f32, Uniform::new(2.26f32, 2.319));
distr_float!(distr_uniform_f64, f64, Uniform::new(2.26f64, 2.319));
distr_float!(distr_highprecision1_f32, f32, HighPrecision::new(2.26f32, 2.319));
distr_float!(distr_highprecision2_f32, f32, HighPrecision::new(-1.0f32 / 3.0, 2.319));
distr_float!(distr_highprecision3_f32, f32, HighPrecision::new(0.001f32, 123_456_789_012_345.987));
distr_float!(distr_highprecision1_f64, f64, HighPrecision::new(2.26f64, 2.319));
distr_float!(distr_highprecision2_f64, f64, HighPrecision::new(-1.0f64 / 3.0, 2.319));
distr_float!(distr_highprecision3_f64, f64, HighPrecision::new(0.001f64, 123_456_789_012_345.987));
Expand Down
Loading

0 comments on commit f089a53

Please sign in to comment.