Change prefixes used by the Float trait

Change `EXPONENT_` to `EXP_` and `SIGNIFICAND_` to `SIG_`. These are
pretty unambiguous, and just makes for less to type once these get used.
This commit is contained in:
Trevor Gross
2024-10-31 22:47:11 -05:00
committed by Trevor Gross
parent c357c1bd98
commit 4c1772ed85
2 changed files with 26 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ use crate::Float;
/// Create a multiple-precision float with the correct number of bits for a concrete float type.
fn new_mpfloat<F: Float>() -> MpFloat {
MpFloat::new(F::SIGNIFICAND_BITS + 1)
MpFloat::new(F::SIG_BITS + 1)
}
/// Set subnormal emulation and convert to a concrete float type.