about summary refs log tree commit diff
path: root/src/libcoretest/num/dec2flt
diff options
context:
space:
mode:
authorRobin Kruppe <robin.kruppe@gmail.com>2015-09-20 18:34:33 +0200
committerRobin Kruppe <robin.kruppe@gmail.com>2015-09-20 18:39:08 +0200
commitcd67ec306fda0e3d39ead0eda3de2c0b3dd696e2 (patch)
tree1459eb0fbae698a695e0adb7e8d94f561d5fe42f /src/libcoretest/num/dec2flt
parentcff04117064ddee95f425c49f22c8aa5a3a665d4 (diff)
downloadrust-cd67ec306fda0e3d39ead0eda3de2c0b3dd696e2.tar.gz
rust-cd67ec306fda0e3d39ead0eda3de2c0b3dd696e2.zip
Reorganize core::num internals
Move private bignum module to core::num, because it is not only used in flt2dec.
Extract private 80-bit soft-float into new core::num module for the same reason.
Diffstat (limited to 'src/libcoretest/num/dec2flt')
-rw-r--r--src/libcoretest/num/dec2flt/rawfp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcoretest/num/dec2flt/rawfp.rs b/src/libcoretest/num/dec2flt/rawfp.rs
index a40d360f105..4c0a403e574 100644
--- a/src/libcoretest/num/dec2flt/rawfp.rs
+++ b/src/libcoretest/num/dec2flt/rawfp.rs
@@ -9,14 +9,14 @@
 // except according to those terms.
 
 use std::f64;
-use core::num::flt2dec::strategy::grisu::Fp;
+use core::num::diy_float::Fp;
 use core::num::dec2flt::rawfp::{fp_to_float, prev_float, next_float, round_normal};
 
 #[test]
 fn fp_to_float_half_to_even() {
     fn is_normalized(sig: u64) -> bool {
-            // intentionally written without {min,max}_sig() as a sanity check
-            sig >> 52 == 1 && sig >> 53 == 0
+        // intentionally written without {min,max}_sig() as a sanity check
+        sig >> 52 == 1 && sig >> 53 == 0
     }
 
     fn conv(sig: u64) -> u64 {