Program Rust
MAX_EXPONENT_DISGUISED_FAST_PATH
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
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 {180 // Bit constructors preserve the exact table values and masked lookup,Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible]
def
F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_DISGUISED_FAST_PATH
: Std.I64 :=
17#i64Source details
| Declaration | F32.Insts.Dec2flt_modelNumImpDec2fltLemireU32.MAX_EXPONENT_DISGUISED_FAST_PATH |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 177:4–177:53 |
| Program version | Preparation 1 |