about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-09-22 18:25:57 +0530
committerGitHub <noreply@github.com>2022-09-22 18:25:57 +0530
commit33b7ff128fcae9fd06beef64926ce59e47b10229 (patch)
tree5421cf029f4c0ca475f23b80451965219977fd20
parent53e08f36be2ee58bb00f64076d213d9dca901f73 (diff)
parent186debc65020e1f906d9ca6bb8cbde9cacebe178 (diff)
downloadrust-33b7ff128fcae9fd06beef64926ce59e47b10229.tar.gz
rust-33b7ff128fcae9fd06beef64926ce59e47b10229.zip
Rollup merge of #102131 - orlp:patch-1, r=thomcc
Added which number is computed in compute_float.

The original comment was very elaborate but ultimately did not mention at all what is being computed using parameters `w, q`, only referencing an external article for the algorithm.
-rw-r--r--library/core/src/num/dec2flt/lemire.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/dec2flt/lemire.rs b/library/core/src/num/dec2flt/lemire.rs
index 75405f47154..b8b0a1d3d7e 100644
--- a/library/core/src/num/dec2flt/lemire.rs
+++ b/library/core/src/num/dec2flt/lemire.rs
@@ -6,7 +6,7 @@ use crate::num::dec2flt::table::{
     LARGEST_POWER_OF_FIVE, POWER_OF_FIVE_128, SMALLEST_POWER_OF_FIVE,
 };
 
-/// Compute a float using an extended-precision representation.
+/// Compute w * 10^q using an extended-precision float representation.
 ///
 /// Fast conversion of a the significant digits and decimal exponent
 /// a float to an extended representation with a binary float. This