]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/num/flt2dec/estimator.rs
revert making internal APIs const fn.
[rust.git] / src / libcore / num / flt2dec / estimator.rs
index 2a87bf436646d344cd200a83e0e16c6e9643bd82..4e33fcfd76e61cf210d786833b59e131b5e7a1a4 100644 (file)
@@ -15,7 +15,7 @@
 /// This is used to approximate `k = ceil(log_10 (mant * 2^exp))`;
 /// the true `k` is either `k_0` or `k_0+1`.
 #[doc(hidden)]
-pub const fn estimate_scaling_factor(mant: u64, exp: i16) -> i16 {
+pub fn estimate_scaling_factor(mant: u64, exp: i16) -> i16 {
     // 2^(nbits-1) < mant <= 2^nbits if mant > 0
     let nbits = 64 - (mant - 1).leading_zeros() as i64;
     // 1292913986 = floor(2^32 * log_10 2)