Program Rust
default
This Rust is the input prepared for Aeneas. Modeling choices explains the adaptations from the production source.
118 const MAX_EXPONENT_FAST_PATH: i64;119 120 /// Minimum exponent for a fast path case, or `-⌊(SIG_BITS+1)/log2(5)⌋`121 const MIN_EXPONENT_FAST_PATH: i64 = -Self::MAX_EXPONENT_FAST_PATH;122 123 /// Maximum exponent that can be represented for a disguised-fast path case.124 /// This is `MAX_EXPONENT_FAST_PATH + ⌊(SIG_BITS+1)/log2(10)⌋`Aeneas declaration
The Lean below was mechanically extracted by Aeneas from Rust.
@[global_simps, irreducible, trait_default]
def num.imp.dec2flt.Lemire.MIN_EXPONENT_FAST_PATH.default {Self : Type}
{Clause0_Clause0_Clause0_Int : Type} (LemireInst : num.imp.dec2flt.Lemire
Self Clause0_Clause0_Clause0_Int) : Result Std.I64 := do
let i ← LemireInst.MAX_EXPONENT_FAST_PATH
-. iOperations used here
Source details
| Declaration | num.imp.dec2flt.Lemire.MIN_EXPONENT_FAST_PATH.default |
|---|---|
| File | num/imp/../../dec2flt/mod.rs |
| Lines | 121:4–121:70 |
| Program version | Original program |