Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl Float {
}
}

fn from_bits(sem: Semantics, float: u64) -> Self {
pub fn from_bits(sem: Semantics, float: u64) -> Self {
// Extract the biased exponent (wipe the sign and mantissa).
let biased_exp = ((float >> sem.get_mantissa_len())
& mask(sem.get_exponent_len()) as u64)
Expand Down Expand Up @@ -225,7 +225,7 @@ impl Float {
self.cast_with_rm(to, self.get_rounding_mode())
}

fn as_native_float(&self) -> u64 {
pub fn as_native_float(&self) -> u64 {
// https://en.wikipedia.org/wiki/IEEE_754
let mantissa: u64;
let mut exp: u64;
Expand Down