Home
last modified time | relevance | path

Searched refs:lower_n_halfway (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/minimal-lexical/src/
H A Drounding.rs6 use crate::mask::{lower_n_halfway, lower_n_mask};
92 let halfway = lower_n_halfway(shift as u64); in round_nearest_tie_even()
H A Dbellerophon.rs21 use crate::mask::{lower_n_halfway, lower_n_mask};
260 let halfway = lower_n_halfway(maskbits); in error_is_accurate()
H A Dmask.rs31 /// # use minimal_lexical::mask::lower_n_halfway;
33 /// assert_eq!(lower_n_halfway(2), 0b10);
37 pub fn lower_n_halfway(n: u64) -> u64 { in lower_n_halfway() functions
38 debug_assert!(n <= 64, "lower_n_halfway() overflow in shl."); in lower_n_halfway()
/third_party/rust/crates/minimal-lexical/tests/
H A Dmask_tests.rs10 assert_eq!(mask::lower_n_halfway(2), 0b10); in lower_n_halfway_test()

Completed in 2 milliseconds