/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
D | log.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 48 if (std::signbit(testcases[i].imag())) in test_edges() 49 is_about(r.imag(), -pi); in test_edges() 51 is_about(r.imag(), pi); in test_edges() 57 assert(r.imag() == 0); in test_edges() 58 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() 61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 65 if (testcases[i].imag() > 0) in test_edges() 66 is_about(r.imag(), pi/2); in test_edges() 68 is_about(r.imag(), -pi/2); in test_edges() [all …]
|
D | acosh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 if (std::signbit(testcases[i].imag())) in test_edges() 46 is_about(r.imag(), -pi/2); in test_edges() 48 is_about(r.imag(), pi/2); in test_edges() 50 else if (testcases[i].real() == 1 && testcases[i].imag() == 0) in test_edges() 54 assert(r.imag() == 0); in test_edges() 55 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 57 else if (testcases[i].real() == -1 && testcases[i].imag() == 0) in test_edges() 61 if (std::signbit(testcases[i].imag())) in test_edges() 62 is_about(r.imag(), -pi); in test_edges() [all …]
|
D | acos.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(r.imag() == 0); in test_edges() 46 assert(std::signbit(testcases[i].imag()) != std::signbit(r.imag())); in test_edges() 48 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 51 assert(std::isnan(r.imag())); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 56 assert(std::isinf(r.imag())); in test_edges() 57 assert(std::signbit(testcases[i].imag()) != std::signbit(r.imag())); in test_edges() 59 …(std::isfinite(testcases[i].real()) && testcases[i].real() != 0 && std::isnan(testcases[i].imag())) in test_edges() 62 assert(std::isnan(r.imag())); in test_edges() [all …]
|
D | asinh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 47 else if (testcases[i].real() == 0 && std::abs(testcases[i].imag()) == 1) in test_edges() 50 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() 51 if (std::signbit(testcases[i].imag())) in test_edges() 52 is_about(r.imag(), -pi/2); in test_edges() 54 is_about(r.imag(), pi/2); in test_edges() 56 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 60 if (std::signbit(testcases[i].imag())) in test_edges() 61 is_about(r.imag(), -pi/2); in test_edges() [all …]
|
D | exp.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 44 assert(r.imag() == 0); in test_edges() 45 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 50 assert(std::isnan(r.imag())); in test_edges() 52 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 55 assert(std::isnan(r.imag())); in test_edges() 57 … else if (std::isinf(testcases[i].real()) && testcases[i].real() > 0 && testcases[i].imag() == 0) in test_edges() 61 assert(r.imag() == 0); in test_edges() 62 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() [all …]
|
D | sinh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(r.imag() == 0); in test_edges() 46 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 48 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 51 assert(std::isnan(r.imag())); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 56 assert(std::isnan(r.imag())); in test_edges() 58 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 61 assert(std::isnan(r.imag())); 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() 44 assert(r.imag() == 0); in test_edges() 45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges() 50 assert(r.imag() == 0); in test_edges() 52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 55 assert(r.imag() == 0); in test_edges() 57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 60 assert(std::isnan(r.imag())); in test_edges() 62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() [all …]
|
D | atanh.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 47 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 51 assert(std::isnan(r.imag())); in test_edges() 53 else if (std::abs(testcases[i].real()) == 1 && testcases[i].imag() == 0) in test_edges() 57 assert(r.imag() == 0); in test_edges() 58 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 64 if (testcases[i].imag() > 0) in test_edges() 65 is_about(r.imag(), pi/2); in test_edges() [all …]
|
D | asin.pass.cpp | 42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 47 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 51 assert(std::isinf(r.imag())); in test_edges() 52 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges() 54 else if ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges() 58 assert(std::isnan(r.imag())); in test_edges() 60 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 63 assert(std::isnan(r.imag())); in test_edges() 65 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() [all …]
|
D | sqrt.pass.cpp | 27 assert(std::abs(imag(c)) < 1.e-6); in test() 43 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 46 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 48 else if (std::isinf(testcases[i].imag())) in test_edges() 52 assert(std::isinf(r.imag())); in test_edges() 53 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 55 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 58 assert(std::isnan(r.imag())); in test_edges() 60 … (std::isinf(testcases[i].real()) && testcases[i].real() < 0 && std::isfinite(testcases[i].imag())) in test_edges() 64 assert(std::isinf(r.imag())); in test_edges() [all …]
|
D | tanh.pass.cpp | 41 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges() 45 assert(r.imag() == 0); in test_edges() 46 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges() 48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 51 assert(std::isnan(r.imag())); in test_edges() 53 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges() 56 assert(std::isnan(r.imag())); in test_edges() 58 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges() 61 assert(r.imag() == 0); in test_edges() 62 assert(std::signbit(r.imag()) == std::signbit(sin(2*testcases[i].imag()))); in test_edges() [all …]
|
/external/python/cpython3/Modules/ |
D | cmathmodule.c | 105 r.imag = m_inf(); in c_infj() 126 r.imag = m_nan(); in c_nanj() 183 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 186 [special_type((z).imag)]; \ 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() 231 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 232 M_LN2*2., z.imag); in cmath_acos_impl() 234 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 235 M_LN2*2., -z.imag); in cmath_acos_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | cmathmodule.c | 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 104 [special_type((z).imag)]; \ 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() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 140 M_LN2*2., z.imag); in c_acos() 142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 143 M_LN2*2., -z.imag); in c_acos() 147 s1.imag = -z.imag; in c_acos() 150 s2.imag = z.imag; in c_acos() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 46 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); in TEST() 47 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); in TEST() 48 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); in TEST() 49 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); in TEST() 79 EXPECT_NEAR(actual_els[0][0].imag(), 0.f, kTolerance); in TEST() 80 EXPECT_NEAR(actual_els[0][1].imag(), 0.f, kTolerance); in TEST() 81 EXPECT_NEAR(actual_els[0][2].imag(), 0.f, kTolerance); in TEST() 82 EXPECT_NEAR(actual_els[1][0].imag(), 0.f, kTolerance); in TEST() 83 EXPECT_NEAR(actual_els[1][1].imag(), 0.f, kTolerance); in TEST() 84 EXPECT_NEAR(actual_els[1][2].imag(), 0.f, kTolerance); in TEST() [all …]
|
/external/python/cpython3/Objects/ |
D | complexobject.c | 27 r.imag = a.imag + b.imag; in _Py_c_sum() 36 r.imag = a.imag - b.imag; in _Py_c_diff() 45 r.imag = -a.imag; in _Py_c_neg() 53 r.real = a.real*b.real - a.imag*b.imag; in _Py_c_prod() 54 r.imag = a.real*b.imag + a.imag*b.real; in _Py_c_prod() 86 const double abs_bimag = b.imag < 0 ? -b.imag : b.imag; in _Py_c_quot() 92 r.real = r.imag = 0.0; in _Py_c_quot() 95 const double ratio = b.imag / b.real; in _Py_c_quot() 96 const double denom = b.real + b.imag * ratio; in _Py_c_quot() 97 r.real = (a.real + a.imag * ratio) / denom; in _Py_c_quot() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | cabs-discrete.ll | 3 define double @std_cabs(double %real, double %imag) { 6 %call = tail call double @cabs(double %real, double %imag) 10 define float @std_cabsf(float %real, float %imag) { 13 %call = tail call float @cabsf(float %real, float %imag) 17 define fp128 @std_cabsl(fp128 %real, fp128 %imag) { 20 %call = tail call fp128 @cabsl(fp128 %real, fp128 %imag) 24 define double @fast_cabs(double %real, double %imag) { 27 ; CHECK: %2 = fmul fast double %imag, %imag 31 %call = tail call fast double @cabs(double %real, double %imag) 35 define float @fast_cabsf(float %real, float %imag) { [all …]
|
/external/python/cpython2/Objects/ |
D | complexobject.c | 38 r.imag = a.imag + b.imag; in c_sum() 47 r.imag = a.imag - b.imag; in c_diff() 56 r.imag = -a.imag; in c_neg() 64 r.real = a.real*b.real - a.imag*b.imag; in c_prod() 65 r.imag = a.real*b.imag + a.imag*b.real; in c_prod() 97 const double abs_bimag = b.imag < 0 ? -b.imag : b.imag; in c_quot() 103 r.real = r.imag = 0.0; in c_quot() 106 const double ratio = b.imag / b.real; in c_quot() 107 const double denom = b.real + b.imag * ratio; in c_quot() 108 r.real = (a.real + a.imag * ratio) / denom; in c_quot() [all …]
|
/external/cblas/testing/ |
D | c_cblas2.c | 27 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_cgemv() 59 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].imag; in F77_cgbmv() 66 A[ LDA*j+irow ].imag=a[ (*lda)*j+i ].imag; in F77_cgbmv() 73 A[ LDA*j+irow ].imag=a[ (*lda)*(j-jcol)+i ].imag; in F77_cgbmv() 101 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_cgeru() 107 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag; in F77_cgeru() 129 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_cgerc() 135 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag; in F77_cgerc() 161 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_chemv() 200 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].imag; in F77_chbmv() [all …]
|
D | c_zblas2.c | 27 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_zgemv() 59 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].imag; in F77_zgbmv() 66 A[ LDA*j+irow ].imag=a[ (*lda)*j+i ].imag; in F77_zgbmv() 73 A[ LDA*j+irow ].imag=a[ (*lda)*(j-jcol)+i ].imag; in F77_zgbmv() 101 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_zgeru() 107 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag; in F77_zgeru() 129 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_zgerc() 135 a[ (*lda)*j+i ].imag=A[ LDA*i+j ].imag; in F77_zgerc() 161 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag; in F77_zhemv() 200 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].imag; in F77_zhbmv() [all …]
|
D | c_zblas3.c | 33 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_zgemm() 42 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_zgemm() 52 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_zgemm() 61 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_zgemm() 70 C[i*LDC+j].imag=c[j*(*ldc)+i].imag; in F77_zgemm() 77 c[j*(*ldc)+i].imag=C[i*LDC+j].imag; in F77_zgemm() 110 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_zhemm() 119 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_zhemm() 127 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_zhemm() 134 C[i*LDC+j].imag=c[j*(*ldc)+i].imag; in F77_zhemm() [all …]
|
D | c_cblas3.c | 33 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_cgemm() 42 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_cgemm() 52 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_cgemm() 61 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_cgemm() 70 C[i*LDC+j].imag=c[j*(*ldc)+i].imag; in F77_cgemm() 77 c[j*(*ldc)+i].imag=C[i*LDC+j].imag; in F77_cgemm() 110 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_chemm() 119 A[i*LDA+j].imag=a[j*(*lda)+i].imag; in F77_chemm() 127 B[i*LDB+j].imag=b[j*(*ldb)+i].imag; in F77_chemm() 134 C[i*LDC+j].imag=c[j*(*ldc)+i].imag; in F77_chemm() [all …]
|
/external/libcxx/include/ |
D | complex | 31 T imag() const; // constexpr in C++14 34 void imag(T); 62 constexpr float imag() const; 63 void imag(float); 91 constexpr double imag() const; 92 void imag(double); 120 constexpr long double imag() const; 121 void imag(long double); 174 template<class T> T imag(const complex<T>&); // constexpr in C++14 175 long double imag(long double); // constexpr in C++14 [all …]
|
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
D | arg.pass.cpp | 36 if (std::isnan(testcases[i].real()) || std::isnan(testcases[i].imag())) in test_edges() 45 if (std::signbit(testcases[i].imag())) in test_edges() 52 assert(std::signbit(testcases[i].imag()) == std::signbit(r)); in test_edges() 58 if (testcases[i].imag() < 0) in test_edges() 63 else if (testcases[i].imag() == 0) in test_edges() 67 if (std::signbit(testcases[i].imag())) in test_edges() 75 assert(std::signbit(testcases[i].imag()) == std::signbit(r)); in test_edges() 78 else if (testcases[i].imag() > 0) in test_edges() 84 if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges() 88 if (testcases[i].imag() > 0) in test_edges() [all …]
|
/external/libcxx/test/std/numerics/complex.number/complex.members/ |
D | real_imag.pass.cpp | 27 static_assert(c1.imag() == 0, ""); in test_constexpr() 30 static_assert(c2.imag() == 0, ""); in test_constexpr() 33 static_assert(c3.imag() == 4, ""); in test_constexpr() 43 assert(c.imag() == 0); in test() 46 assert(c.imag() == 0); in test() 47 c.imag(4.5); in test() 49 assert(c.imag() == 4.5); in test() 52 assert(c.imag() == 4.5); in test() 53 c.imag(-5.5); in test() 55 assert(c.imag() == -5.5); in test()
|
/external/fonttools/Lib/fontTools/svgLib/path/ |
D | parser.py | 94 pen.moveTo((current_pos.real, current_pos.imag)) 109 pen.lineTo((start_pos.real, start_pos.imag)) 121 pen.lineTo((pos.real, pos.imag)) 126 pos = float(x) + current_pos.imag * 1j 129 pen.lineTo((pos.real, pos.imag)) 136 pos += current_pos.imag * 1j 137 pen.lineTo((pos.real, pos.imag)) 150 pen.curveTo((control1.real, control1.imag), 151 (control2.real, control2.imag), 152 (end.real, end.imag)) [all …]
|