Searched refs:ExtendedFloat (Results 1 – 9 of 9) sorted by relevance
/third_party/rust/crates/minimal-lexical/src/ |
D | bellerophon.rs | 20 use crate::extended_float::ExtendedFloat; 39 pub fn bellerophon<F: Float>(num: &Number) -> ExtendedFloat { in bellerophon() argument 40 let fp_zero = ExtendedFloat { in bellerophon() 44 let fp_inf = ExtendedFloat { in bellerophon() 85 let mut fp = ExtendedFloat { in bellerophon() 175 fn error_is_accurate<F: Float>(errors: u32, fp: &ExtendedFloat) -> bool { in error_is_accurate() 280 pub fn normalize(fp: &mut ExtendedFloat) -> i32 { in normalize() 314 pub fn mul(x: &ExtendedFloat, y: &ExtendedFloat) -> ExtendedFloat { in mul() argument 337 ExtendedFloat { in mul() 367 pub fn get_small(&self, index: usize) -> ExtendedFloat { in get_small() argument [all …]
|
D | lemire.rs | 9 use crate::extended_float::ExtendedFloat; 16 pub fn lemire<F: Float>(num: &Number) -> ExtendedFloat { in lemire() argument 48 pub fn compute_float<F: Float>(q: i32, mut w: u64) -> ExtendedFloat { in compute_float() argument 49 let fp_zero = ExtendedFloat { in compute_float() 53 let fp_inf = ExtendedFloat { in compute_float() 102 return ExtendedFloat { in compute_float() 143 ExtendedFloat { in compute_float() 153 pub fn compute_error<F: Float>(q: i32, mut w: u64) -> ExtendedFloat { in compute_error() argument 162 pub fn compute_error_scaled<F: Float>(q: i32, mut w: u64, lz: i32) -> ExtendedFloat { in compute_error_scaled() argument 168 ExtendedFloat { in compute_error_scaled()
|
D | slow.rs | 10 use crate::extended_float::{extended_to_float, ExtendedFloat}; 38 fp: ExtendedFloat, in slow() argument 41 ) -> ExtendedFloat in slow() 69 pub fn positive_digit_comp<F: Float>(mut bigmant: Bigint, exponent: i32) -> ExtendedFloat { in positive_digit_comp() argument 81 let mut fp = ExtendedFloat { in positive_digit_comp() 118 mut fp: ExtendedFloat, in negative_digit_comp() argument 120 ) -> ExtendedFloat { in negative_digit_comp() argument 388 pub fn b<F: Float>(float: F) -> ExtendedFloat { in b() argument 389 ExtendedFloat { in b() 397 pub fn bh<F: Float>(float: F) -> ExtendedFloat { in bh() argument [all …]
|
D | rounding.rs | 5 use crate::extended_float::ExtendedFloat; 17 pub fn round<F, Cb>(fp: &mut ExtendedFloat, cb: Cb) in round() argument 20 Cb: Fn(&mut ExtendedFloat, i32), in round() argument 22 let fp_inf = ExtendedFloat { in round() 77 pub fn round_nearest_tie_even<Cb>(fp: &mut ExtendedFloat, shift: i32, cb: Cb) in round_nearest_tie_even() argument 124 pub fn round_down(fp: &mut ExtendedFloat, shift: i32) { in round_down() argument
|
D | extended_float.rs | 11 pub struct ExtendedFloat { struct 20 pub fn extended_to_float<F: Float>(x: ExtendedFloat) -> F { in extended_to_float()
|
D | parse.rs | 7 use crate::extended_float::{extended_to_float, ExtendedFloat}; 176 pub fn moderate_path<F: Float>(num: &Number) -> ExtendedFloat { in moderate_path() argument
|
/third_party/rust/crates/minimal-lexical/tests/ |
D | rounding_tests.rs | 1 use minimal_lexical::extended_float::ExtendedFloat; 6 let mut fp = ExtendedFloat { in round_test() 17 let mut fp = ExtendedFloat { in round_test() 31 let mut fp = ExtendedFloat { in round_test() 44 let mut fp = ExtendedFloat { in round_test() 57 let mut fp = ExtendedFloat { in round_test()
|
D | slow_tests.rs | 4 use minimal_lexical::extended_float::ExtendedFloat; 59 let fp = ExtendedFloat { in slow_test() 81 let fp = ExtendedFloat { in slow_test() 142 let fp = ExtendedFloat { in negative_digit_comp_test() 212 let fp = ExtendedFloat { in negative_digit_comp_test()
|
D | bellerophon.rs | 5 use minimal_lexical::extended_float::{extended_to_float, ExtendedFloat}; 22 let yfp = ExtendedFloat { in bellerophon_test()
|