Lines Matching refs:NAN
19 assert!(libm::fabsf(f32::NAN).is_nan());
39 assert!(libm::sqrtf(f32::NAN).is_nan());
57 const NANS: &[f64] = &[f64::NAN];
139 // NAN as the base:
140 // (NAN ^ anything *but 0* should be NAN)
141 powd_test_sets_as_exponent(f64::NAN, &ALL[2..], f64::NAN);
143 // NAN as the exponent:
144 // (anything *but 1* ^ NAN should be NAN)
145 powd_test_sets_as_base(&ALL[..(ALL.len() - 2)], f64::NAN, f64::NAN);
151 // (+Infinity ^ positive anything but 0 and NAN should be +Infinity)
154 // (+Infinity ^ negative anything except 0 and NAN should be 0.0)
170 // (pos/neg > 1 ^ Infinity should be Infinity - note this excludes NAN as the base)
179 // (pos/neg < 1 ^ Infinity should be 0.0 - this also excludes NAN as the base)
196 // (+0 ^ anything positive but 0 and NAN should be +0)
199 // (+0 ^ anything negative but 0 and NAN should be Infinity)
204 // (-0 ^ anything positive but 0, NAN, and odd ints should be +0)
207 // (-0 ^ anything negative but 0, NAN, and odd ints should be Infinity)
240 // (-anything except 0 and Infinity ^ non-integer should be NAN)
243 powd_test_sets(&ALL[3..7], &|v: f64| libm::powd(*val, v), &|_| f64::NAN);
265 assert!(libm::fabsd(f64::NAN).is_nan());
285 assert!(libm::sqrtd(f64::NAN).is_nan());