Lines Matching full:infinity
23 for f in [f32::INFINITY, f32::NEG_INFINITY].iter().copied() { in fabsf_spec_test()
24 assert_eq!(libm::fabsf(f), f32::INFINITY); in fabsf_spec_test()
40 for f in [0.0, -0.0, f32::INFINITY].iter().copied() { in sqrtf_spec_test()
58 const POS_INF: &[f64] = &[f64::INFINITY];
150 // Positive Infinity as the base: in powd_infinity_as_base()
151 // (+Infinity ^ positive anything but 0 and NAN should be +Infinity) in powd_infinity_as_base()
152 powd_test_sets_as_exponent(f64::INFINITY, &POS[1..], f64::INFINITY); in powd_infinity_as_base()
154 // (+Infinity ^ negative anything except 0 and NAN should be 0.0) in powd_infinity_as_base()
155 powd_test_sets_as_exponent(f64::INFINITY, &NEG[1..], 0.0); in powd_infinity_as_base()
157 // Negative Infinity as the base: in powd_infinity_as_base()
158 // (-Infinity ^ positive odd ints should be -Infinity) in powd_infinity_as_base()
161 // (-Infinity ^ anything but odd ints should be == -0 ^ (-anything)) in powd_infinity_as_base()
170 // (pos/neg > 1 ^ Infinity should be Infinity - note this excludes NAN as the base) in infinity_as_exponent()
171 powd_test_sets_as_base(&ALL[5..(ALL.len() - 2)], f64::INFINITY, f64::INFINITY); in infinity_as_exponent()
173 // (pos/neg > 1 ^ -Infinity should be 0.0) in infinity_as_exponent()
179 // (pos/neg < 1 ^ Infinity should be 0.0 - this also excludes NAN as the base) in infinity_as_exponent()
180 powd_test_sets_as_base(base_below_one, f64::INFINITY, 0.0); in infinity_as_exponent()
182 // (pos/neg < 1 ^ -Infinity should be Infinity) in infinity_as_exponent()
183 powd_test_sets_as_base(base_below_one, f64::NEG_INFINITY, f64::INFINITY); in infinity_as_exponent()
186 // (pos/neg 1 ^ Infinity should be 1) in infinity_as_exponent()
187 powd_test_sets_as_base(&[NEG_ONE, POS_ONE], f64::INFINITY, 1.0); in infinity_as_exponent()
189 // (pos/neg 1 ^ -Infinity should be 1) in infinity_as_exponent()
199 // (+0 ^ anything negative but 0 and NAN should be Infinity) in powd_zero_as_base()
201 powd_test_sets_as_exponent(0.0, &NEG[1..], f64::INFINITY); in powd_zero_as_base()
207 // (-0 ^ anything negative but 0, NAN, and odd ints should be Infinity) in powd_zero_as_base()
209 powd_test_sets_as_exponent(-0.0, &NEG[3..], f64::INFINITY); in powd_zero_as_base()
214 // (-0 ^ negative odd ints should be -Infinity) in powd_zero_as_base()
240 // (-anything except 0 and Infinity ^ non-integer should be NAN) in special_cases()
269 for f in [f64::INFINITY, f64::NEG_INFINITY].iter().copied() { in fabsd_spec_test()
270 assert_eq!(libm::fabsd(f), f64::INFINITY); in fabsd_spec_test()
286 for f in [0.0, -0.0, f64::INFINITY].iter().copied() { in sqrtd_spec_test()