Searched refs:powd (Results 1 – 3 of 3) sorted by relevance
/third_party/rust/crates/minimal-lexical/tests/ |
D | libm_tests.rs | 81 fn powd(base: f64, exponent: f64, expected: f64) { in powd() function 82 let res = libm::powd(base, exponent); in powd() 87 libm::powd(base, exponent) == expected in powd() 98 sets.iter().for_each(|s| s.iter().for_each(|val| powd(*val, exponent, expected))); in powd_test_sets_as_base() 102 sets.iter().for_each(|s| s.iter().for_each(|val| powd(base, *val, expected))); in powd_test_sets_as_exponent() 164 powd_test_sets(ALL, &|v: f64| libm::powd(f64::NEG_INFINITY, v), &|v: f64| libm::powd(-0.0, -v)); in powd_infinity_as_base() 223 powd_test_sets(ALL, &|v: f64| libm::powd(v, 1.0), &|v: f64| v); in special_cases() 227 powd_test_sets(ALL, &|v: f64| libm::powd(v, -1.0), &|v: f64| 1.0 / v); in special_cases() 233 powd_test_sets(ALL, &|v: f64| libm::powd(-v, *int), &|v: f64| { in special_cases() 234 libm::powd(-1.0, *int) * libm::powd(v, *int) in special_cases() [all …]
|
/third_party/rust/crates/minimal-lexical/src/ |
D | num.rs | 6 use crate::libm::{powd, powf}; 279 return powd(10.0f64, exponent as f64); in pow_fast_path() 306 pub fn powd(x: f64, y: f64) -> f64 { in powd() function
|
D | libm.rs | 588 pub fn powd(x: f64, y: f64) -> f64 { in powd() function
|