/external/llvm-project/clang/lib/Headers/openmp_wrappers/ |
D | complex_cmath.h | 35 return hypot(__c.real(), __c.imag()); in abs() 41 return atan2(__c.imag(), __c.real()); in arg() 59 if (std::isinf(__c.real())) in norm() 60 return abs(__c.real()); in norm() 63 return __c.real() * __c.real() + __c.imag() * __c.imag(); in norm() 69 return std::complex<_Tp>(__c.real(), -__c.imag()); in conj() 76 if (std::isinf(__c.real()) || std::isinf(__c.imag())) in proj() 124 if (std::isinf(__x.real())) { in sqrt() 125 if (__x.real() > _Tp(0)) in sqrt() 126 return std::complex<_Tp>(__x.real(), std::isnan(__x.imag()) in sqrt() [all …]
|
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
D | atanh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 53 else if (std::abs(testcases[i].real()) == 1 && testcases[i].imag() == 0) in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 62 assert(r.real() == 0); in test_edges() [all …]
|
D | acosh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(!std::signbit(r.real())); in test_edges() 50 else if (testcases[i].real() == 1 && testcases[i].imag() == 0) in test_edges() 52 assert(r.real() == 0); in test_edges() 53 assert(!std::signbit(r.real())); in test_edges() 57 else if (testcases[i].real() == -1 && testcases[i].imag() == 0) in test_edges() 59 assert(r.real() == 0); in test_edges() 60 assert(!std::signbit(r.real())); in test_edges() 66 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 68 assert(std::isinf(r.real())); in test_edges() [all …]
|
D | asin.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 54 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 56 assert(r.real() == 0); in test_edges() 57 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 62 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | asinh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (testcases[i].real() == 0 && std::abs(testcases[i].imag()) == 1) in test_edges() 49 assert(r.real() == 0); in test_edges() 56 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 58 assert(std::isinf(r.real())); in test_edges() 59 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 65 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 67 assert(std::isnan(r.real())); in test_edges() 70 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() [all …]
|
D | log.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 if (std::signbit(testcases[i].real())) in test_edges() 46 assert(std::isinf(r.real())); in test_edges() 47 assert(r.real() < 0); in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(r.real() < 0); in test_edges() 61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 63 assert(std::isinf(r.real())); in test_edges() 64 assert(r.real() > 0); in test_edges() 70 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | exp.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1.0); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); in test_edges() 52 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 54 assert(std::isnan(r.real())); in test_edges() 57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges() 59 assert(std::isinf(r.real())); in test_edges() 60 assert(r.real() > 0); in test_edges() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges() [all …]
|
D | acos.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 is_about(r.real(), pi/2); in test_edges() 48 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 50 is_about(r.real(), pi/2); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 is_about(r.real(), pi/2); in test_edges() 59 …else if (std::isfinite(testcases[i].real()) && testcases[i].real() != 0 && std::isnan(testcases[i]… in test_edges() 61 assert(std::isnan(r.real())); in test_edges() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 66 is_about(r.real(), pi); in test_edges() [all …]
|
D | sinh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 0); in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 50 assert(r.real() == 0); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 assert(std::isnan(r.real())); in test_edges() 58 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 60 assert(r.real() == 0); in test_edges() 63 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | cosh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1); in test_edges() 47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); in test_edges() 52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 54 assert(std::isnan(r.real())); in test_edges() 57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 59 assert(std::isnan(r.real())); in test_edges() 62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 64 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | sqrt.pass.cpp | 26 is_about(real(a), real(x)); in test() 43 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(!std::signbit(r.real())); in test_edges() 50 assert(std::isinf(r.real())); in test_edges() 51 assert(r.real() > 0); in test_edges() 55 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 62 assert(r.real() == 0); in test_edges() 63 assert(!std::signbit(r.real())); in test_edges() [all …]
|
/external/llvm-project/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
D | atanh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 53 else if (std::abs(testcases[i].real()) == 1 && testcases[i].imag() == 0) in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 62 assert(r.real() == 0); in test_edges() [all …]
|
D | acosh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(!std::signbit(r.real())); in test_edges() 50 else if (testcases[i].real() == 1 && testcases[i].imag() == 0) in test_edges() 52 assert(r.real() == 0); in test_edges() 53 assert(!std::signbit(r.real())); in test_edges() 57 else if (testcases[i].real() == -1 && testcases[i].imag() == 0) in test_edges() 59 assert(r.real() == 0); in test_edges() 60 assert(!std::signbit(r.real())); in test_edges() 66 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 68 assert(std::isinf(r.real())); in test_edges() [all …]
|
D | asin.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(r.real() == 0); in test_edges() 50 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 54 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 56 assert(r.real() == 0); in test_edges() 57 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 62 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | asinh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 47 else if (testcases[i].real() == 0 && std::abs(testcases[i].imag()) == 1) in test_edges() 49 assert(r.real() == 0); in test_edges() 56 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 58 assert(std::isinf(r.real())); in test_edges() 59 assert(std::signbit(testcases[i].real()) == std::signbit(r.real())); in test_edges() 65 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 67 assert(std::isnan(r.real())); in test_edges() 70 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() [all …]
|
D | log.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 if (std::signbit(testcases[i].real())) in test_edges() 46 assert(std::isinf(r.real())); in test_edges() 47 assert(r.real() < 0); in test_edges() 55 assert(std::isinf(r.real())); in test_edges() 56 assert(r.real() < 0); in test_edges() 61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 63 assert(std::isinf(r.real())); in test_edges() 64 assert(r.real() > 0); in test_edges() 70 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | exp.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1.0); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); in test_edges() 52 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 54 assert(std::isnan(r.real())); in test_edges() 57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges() 59 assert(std::isinf(r.real())); in test_edges() 60 assert(r.real() > 0); in test_edges() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isinf(testcases[i].ima… in test_edges() [all …]
|
D | acos.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 is_about(r.real(), pi/2); in test_edges() 48 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 50 is_about(r.real(), pi/2); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 is_about(r.real(), pi/2); in test_edges() 59 …else if (std::isfinite(testcases[i].real()) && testcases[i].real() != 0 && std::isnan(testcases[i]… in test_edges() 61 assert(std::isnan(r.real())); in test_edges() 64 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 66 is_about(r.real(), pi); in test_edges() [all …]
|
D | sinh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 0); in test_edges() 44 assert(std::signbit(r.real()) == std::signbit(testcases[i].real())); in test_edges() 48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 50 assert(r.real() == 0); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 55 assert(std::isnan(r.real())); in test_edges() 58 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 60 assert(r.real() == 0); in test_edges() 63 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | cosh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 43 assert(r.real() == 1); in test_edges() 47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); in test_edges() 52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 54 assert(std::isnan(r.real())); in test_edges() 57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 59 assert(std::isnan(r.real())); in test_edges() 62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 64 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | sqrt.pass.cpp | 26 is_about(real(a), real(x)); in test() 43 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(!std::signbit(r.real())); in test_edges() 50 assert(std::isinf(r.real())); in test_edges() 51 assert(r.real() > 0); in test_edges() 55 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 …else if (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].… in test_edges() 62 assert(r.real() == 0); in test_edges() 63 assert(!std::signbit(r.real())); in test_edges() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | Complex.java | 74 private final double real; field in Complex 88 public Complex(double real, double imaginary) { in Complex() argument 90 this.real = real; in Complex() 93 isNaN = Double.isNaN(real) || Double.isNaN(imaginary); in Complex() 95 (Double.isInfinite(real) || Double.isInfinite(imaginary)); in Complex() 117 if (FastMath.abs(real) < FastMath.abs(imaginary)) { in abs() 119 return FastMath.abs(real); in abs() 121 double q = real / imaginary; in abs() 124 if (real == 0.0) { in abs() 127 double q = imaginary / real; in abs() [all …]
|
/external/python/cpython3/Modules/ |
D | cmathmodule.c | 104 r.real = 0.0; in c_infj() 125 r.real = 0.0; in c_nanj() 183 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 185 return table[special_type((z).real)] \ 225 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in cmath_acos_impl() 227 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl() 230 if (z.real < 0.) { in cmath_acos_impl() 231 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 234 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 238 s1.real = 1.-z.real; in cmath_acos_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | cmathmodule.c | 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 103 return table[special_type((z).real)] \ 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 138 if (z.real < 0.) { in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 146 s1.real = 1.-z.real; in c_acos() 149 s2.real = 1.+z.real; in c_acos() 152 r.real = 2.*atan2(s1.real, s2.real); in c_acos() [all …]
|
/external/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | dual_quaternion.inl | 15 return (&real)[i]; 22 return (&real)[i]; 31 : real(tquat<T, P>()) 40 : real(d.real) 48 : real(d.real) 60 : real(r), dual(tquat<T, P>(0, 0, 0, 0)) 65 : real(q), dual( 74 : real(r), dual(d) 82 : real(q.real) 104 this->real = q.real; [all …]
|