Program Rust
MAX_EXPONENT_FAST_PATH
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
173 174 impl Lemire for f32 {175 // Exact upstream formula results for `SIG_TOTAL_BITS = 24`.176 const MAX_EXPONENT_FAST_PATH: i64 = 10;177 const MAX_EXPONENT_DISGUISED_FAST_PATH: i64 = 17;178 179 fn pow10_fast_path(exponent: usize) -> Self {Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_FAST_PATH
: Std.I64 :=
10#i64Source details
| Declaration | F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_FAST_PATH |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 176:4–176:43 |
| Program version | Preparation 1 |