/external/libcxx/test/std/numerics/complex.number/complex.member.ops/ |
H A D | divide_equal_scalar.pass.cpp | 23 assert(c.imag() == 0); 26 assert(c.imag() == 0); 29 assert(c.imag() == 0); 32 assert(c.imag() == 0); 33 c.imag(2); 36 assert(c.imag() == 4);
|
H A D | times_equal_scalar.pass.cpp | 23 assert(c.imag() == 0); 26 assert(c.imag() == 0); 29 assert(c.imag() == 0); 32 assert(c.imag() == 0); 33 c.imag(2); 36 assert(c.imag() == 3);
|
H A D | minus_equal_scalar.pass.cpp | 23 assert(c.imag() == 0); 26 assert(c.imag() == 0); 29 assert(c.imag() == 0); 32 assert(c.imag() == 0);
|
H A D | plus_equal_scalar.pass.cpp | 23 assert(c.imag() == 0); 26 assert(c.imag() == 0); 29 assert(c.imag() == 0); 32 assert(c.imag() == 0);
|
H A D | assignment_scalar.pass.cpp | 23 assert(c.imag() == 0); 26 assert(c.imag() == 0); 29 assert(c.imag() == 0);
|
/external/libcxx/test/std/numerics/complex.number/complex.special/ |
H A D | double_long_double_implicit.fail.cpp | 26 assert(cf.imag() == cd.imag());
|
H A D | float_double_implicit.fail.cpp | 26 assert(cf.imag() == cd.imag());
|
H A D | float_long_double_implicit.fail.cpp | 26 assert(cf.imag() == cd.imag());
|
H A D | double_float_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | double_float_implicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | double_long_double_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | float_double_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | float_long_double_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | long_double_double_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | long_double_double_implicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | long_double_float_explicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
H A D | long_double_float_implicit.pass.cpp | 27 assert(cf.imag() == cd.imag()); 34 static_assert(cf.imag() == cd.imag(), "");
|
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
H A D | exp.pass.cpp | 41 if (x[i].real() == 0 && x[i].imag() == 0) 44 assert(r.imag() == 0); 45 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 47 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 50 assert(std::isnan(r.imag())); 52 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) 55 assert(std::isnan(r.imag())); 57 else if (std::isinf(x[i].real()) && x[i].real() > 0 && x[i].imag() == 0) 61 assert(r.imag() [all...] |
H A D | cosh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 assert(r.imag() == 0); 47 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 49 else if (x[i].real() == 0 && std::isinf(x[i].imag())) 52 assert(r.imag() == 0); 54 else if (x[i].real() == 0 && std::isnan(x[i].imag())) 57 assert(r.imag() == 0); 59 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 62 assert(std::isnan(r.imag())); [all...] |
H A D | acos.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 assert(r.imag() == 0); 47 assert(std::signbit(x[i].imag()) != std::signbit(r.imag())); 49 else if (x[i].real() == 0 && std::isnan(x[i].imag())) 52 assert(std::isnan(r.imag())); 54 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 57 assert(std::isinf(r.imag())); 58 assert(std::signbit(x[i].imag()) != std::signbit(r.imag())); [all...] |
H A D | sqrt.pass.cpp | 27 assert(std::abs(imag(c)) < 1.e-6); 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 48 else if (std::isinf(x[i].imag())) 52 assert(std::isinf(r.imag())); 53 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 55 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) 58 assert(std::isnan(r.imag())); [all...] |
H A D | acosh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 if (std::signbit(x[i].imag())) 47 is_about(r.imag(), -pi/2); 49 is_about(r.imag(), pi/2); 51 else if (x[i].real() == 1 && x[i].imag() == 0) 55 assert(r.imag() == 0); 56 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 58 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 62 if (std::signbit(x[i].imag())) [all...] |
H A D | log.pass.cpp | 42 if (x[i].real() == 0 && x[i].imag() == 0) 48 if (std::signbit(x[i].imag())) 49 is_about(r.imag(), -pi); 51 is_about(r.imag(), pi); 57 assert(r.imag() == 0); 58 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 61 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 65 if (x[i].imag() > 0) 66 is_about(r.imag(), p [all...] |
H A D | tanh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 47 assert(r.imag() == 0); 48 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 50 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 53 assert(std::isnan(r.imag())); 55 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) 58 assert(std::isnan(r.imag())); 60 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag())) 63 assert(r.imag() [all...] |
/external/libcxx/test/std/numerics/complex.number/complex.members/ |
H A D | real_imag.pass.cpp | 13 // void imag(T val); 25 static_assert(c1.imag() == 0, ""); 28 static_assert(c2.imag() == 0, ""); 31 static_assert(c3.imag() == 4, ""); 41 assert(c.imag() == 0); 44 assert(c.imag() == 0); 45 c.imag(4.5); 47 assert(c.imag() == 4.5); 50 assert(c.imag() == 4.5); 51 c.imag( [all...] |