Lines Matching refs:powd
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()
243 powd_test_sets(&ALL[3..7], &|v: f64| libm::powd(*val, v), &|_| f64::NAN); in special_cases()
250 assert_eq!(libm::powd(2.0, 20.0), (1 << 20) as f64); in normal_cases()
251 assert_eq!(libm::powd(-1.0, 9.0), -1.0); in normal_cases()
252 assert!(libm::powd(-1.0, 2.2).is_nan()); in normal_cases()
253 assert!(libm::powd(-1.0, -1.14).is_nan()); in normal_cases()