Home
last modified time | relevance | path

Searched refs:compute_float32 (Results 1 – 3 of 3) sorted by relevance

/third_party/rust/crates/minimal-lexical/tests/
Dbellerophon_tests.rs5 use bellerophon::{bellerophon_test, compute_float32, compute_float64};
176 assert_eq!(compute_float32(0, 16777216), (151, 0)); in compute_float_f32_test()
177 assert_eq!(compute_float32(0, 16777217), (111 + f32::INVALID_FP, 9223372586610589696)); in compute_float_f32_test()
178 assert_eq!(compute_float32(0, 16777218), (151, 1)); in compute_float_f32_test()
179 assert_eq!(compute_float32(0, 16777219), (111 + f32::INVALID_FP, 9223373686122217472)); in compute_float_f32_test()
180 assert_eq!(compute_float32(0, 16777220), (151, 2)); in compute_float_f32_test()
184 assert_eq!(compute_float32(-10, 167772160000000000), (151, 0)); in compute_float_f32_test()
186 compute_float32(-10, 167772170000000000), in compute_float_f32_test()
189 assert_eq!(compute_float32(-10, 167772180000000000), (151, 1)); in compute_float_f32_test()
192 compute_float32(-10, 167772190000000000), in compute_float_f32_test()
[all …]
Dlemire_tests.rs28 fn compute_float32(q: i32, w: u64) -> (i32, u64) { in compute_float32() function
330 assert_eq!(compute_float32(0, 16777216), (151, 0)); in compute_float_f32_rounding()
331 assert_eq!(compute_float32(0, 16777217), (151, 0)); in compute_float_f32_rounding()
332 assert_eq!(compute_float32(0, 16777218), (151, 1)); in compute_float_f32_rounding()
333 assert_eq!(compute_float32(0, 16777219), (151, 2)); in compute_float_f32_rounding()
334 assert_eq!(compute_float32(0, 16777220), (151, 2)); in compute_float_f32_rounding()
338 assert_eq!(compute_float32(-10, 167772160000000000), (151, 0)); in compute_float_f32_rounding()
339 assert_eq!(compute_float32(-10, 167772170000000000), (151, 0)); in compute_float_f32_rounding()
340 assert_eq!(compute_float32(-10, 167772180000000000), (151, 1)); in compute_float_f32_rounding()
342 assert_eq!(compute_float32(-10, 167772190000000000), (151, 2)); in compute_float_f32_rounding()
[all …]
Dbellerophon.rs41 pub fn compute_float32(q: i32, w: u64) -> (i32, u64) { in compute_float32() function