/external/dbus/dbus/ |
D | dbus-string.c | 79 fixup_alignment (DBusRealString *real) in fixup_alignment() argument 86 _dbus_assert (real->len <= real->allocated - _DBUS_STRING_ALLOCATION_PADDING); in fixup_alignment() 88 old_align_offset = real->align_offset; in fixup_alignment() 89 real_block = real->str - old_align_offset; in fixup_alignment() 93 real->align_offset = aligned - real_block; in fixup_alignment() 94 real->str = aligned; in fixup_alignment() 96 if (old_align_offset != real->align_offset) in fixup_alignment() 99 memmove (real_block + real->align_offset, in fixup_alignment() 101 real->len + 1); in fixup_alignment() 104 _dbus_assert (real->align_offset < 8); in fixup_alignment() [all …]
|
D | dbus-string-private.h | 76 #define DBUS_GENERIC_STRING_PREAMBLE(real) \ argument 78 (void) real; /* might be unused unless asserting */ \ 79 _dbus_assert ((real) != NULL); \ 80 _dbus_assert (!(real)->invalid); \ 81 _dbus_assert ((real)->len >= 0); \ 82 _dbus_assert ((real)->allocated >= 0); \ 83 _dbus_assert ((real)->len <= ((real)->allocated - _DBUS_STRING_ALLOCATION_PADDING)); \ 84 _dbus_assert ((real)->len <= _DBUS_STRING_MAX_LENGTH); \ 93 #define DBUS_STRING_PREAMBLE(str) DBusRealString *real = (DBusRealString*) str; \ 94 DBUS_GENERIC_STRING_PREAMBLE (real); \ [all …]
|
D | dbus-errors.c | 190 DBusRealError *real; in dbus_error_init() local 196 real = (DBusRealError *)error; in dbus_error_init() 198 real->name = NULL; in dbus_error_init() 199 real->message = NULL; in dbus_error_init() 201 real->const_message = TRUE; in dbus_error_init() 213 DBusRealError *real; in dbus_error_free() local 217 real = (DBusRealError *)error; in dbus_error_free() 219 if (!real->const_message) in dbus_error_free() 221 dbus_free (real->name); in dbus_error_free() 222 dbus_free (real->message); in dbus_error_free() [all …]
|
D | dbus-hash.c | 520 DBusRealHashIter *real; in _dbus_hash_iter_init() local 524 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_init() 526 real->table = table; in _dbus_hash_iter_init() 527 real->bucket = NULL; in _dbus_hash_iter_init() 528 real->entry = NULL; in _dbus_hash_iter_init() 529 real->next_entry = NULL; in _dbus_hash_iter_init() 530 real->next_bucket = 0; in _dbus_hash_iter_init() 531 real->n_entries_on_init = table->n_entries; in _dbus_hash_iter_init() 545 DBusRealHashIter *real; in _dbus_hash_iter_next() local 549 real = (DBusRealHashIter*) iter; in _dbus_hash_iter_next() [all …]
|
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
D | atanh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.real()) == std::signbit(x[i].real())); in test_edges() 48 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) in test_edges() 50 assert(r.real() == 0); in test_edges() 51 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() 54 else if (std::abs(x[i].real()) == 1 && x[i].imag() == 0) in test_edges() 56 assert(std::isinf(r.real())); in test_edges() 57 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() 61 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 63 assert(r.real() == 0); in test_edges() [all …]
|
D | acosh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(!std::signbit(r.real())); in test_edges() 51 else if (x[i].real() == 1 && x[i].imag() == 0) in test_edges() 53 assert(r.real() == 0); in test_edges() 54 assert(!std::signbit(r.real())); in test_edges() 58 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 60 assert(std::isinf(r.real())); in test_edges() 61 assert(r.real() > 0); in test_edges() 67 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 69 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | log.pass.cpp | 42 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 44 if (std::signbit(x[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(x[i].real()) && std::isinf(x[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(x[i].real()) && std::isnan(x[i].imag())) in test_edges() [all …]
|
D | exp.pass.cpp | 41 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 43 assert(r.real() == 1.0); in test_edges() 47 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 49 assert(std::isnan(r.real())); in test_edges() 52 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 54 assert(std::isnan(r.real())); in test_edges() 57 else if (std::isinf(x[i].real()) && x[i].real() > 0 && x[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(x[i].real()) && x[i].real() < 0 && std::isinf(x[i].imag())) in test_edges() [all …]
|
D | acos.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 is_about(r.real(), pi/2); in test_edges() 49 else if (x[i].real() == 0 && std::isnan(x[i].imag())) in test_edges() 51 is_about(r.real(), pi/2); in test_edges() 54 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 56 is_about(r.real(), pi/2); in test_edges() 60 else if (std::isfinite(x[i].real()) && x[i].real() != 0 && std::isnan(x[i].imag())) in test_edges() 62 assert(std::isnan(r.real())); in test_edges() 65 else if (std::isinf(x[i].real()) && x[i].real() < 0 && std::isfinite(x[i].imag())) in test_edges() 67 is_about(r.real(), pi); in test_edges() [all …]
|
D | asin.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.real()) == std::signbit(x[i].real())); in test_edges() 48 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 50 assert(r.real() == 0); in test_edges() 51 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() 55 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) in test_edges() 57 assert(r.real() == 0); in test_edges() 58 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() 61 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 63 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | sinh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(r.real() == 0); in test_edges() 46 assert(std::signbit(r.real()) == std::signbit(x[i].real())); in test_edges() 50 else if (x[i].real() == 0 && std::isinf(x[i].imag())) in test_edges() 52 assert(r.real() == 0); in test_edges() 55 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 else if (x[i].real() == 0 && std::isnan(x[i].imag())) in test_edges() 62 assert(r.real() == 0); in test_edges() 65 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() [all …]
|
D | asinh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(std::signbit(r.real()) == std::signbit(x[i].real())); in test_edges() 48 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 50 assert(std::isinf(r.real())); in test_edges() 51 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() 57 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 59 assert(std::isnan(r.real())); in test_edges() 62 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag())) in test_edges() 64 assert(std::isinf(r.real())); in test_edges() 65 assert(std::signbit(x[i].real()) == std::signbit(r.real())); in test_edges() [all …]
|
D | sqrt.pass.cpp | 26 is_about(real(a), real(x)); in test() 43 if (x[i].real() == 0 && x[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(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 else if (std::isinf(x[i].real()) && x[i].real() < 0 && std::isfinite(x[i].imag())) in test_edges() 62 assert(r.real() == 0); in test_edges() 63 assert(!std::signbit(r.real())); in test_edges() [all …]
|
D | cosh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(r.real() == 1); in test_edges() 49 else if (x[i].real() == 0 && std::isinf(x[i].imag())) in test_edges() 51 assert(std::isnan(r.real())); in test_edges() 54 else if (x[i].real() == 0 && std::isnan(x[i].imag())) in test_edges() 56 assert(std::isnan(r.real())); in test_edges() 59 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 61 assert(std::isnan(r.real())); in test_edges() 64 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 66 assert(std::isnan(r.real())); in test_edges() [all …]
|
D | tanh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) in test_edges() 45 assert(r.real() == 0); in test_edges() 46 assert(std::signbit(r.real()) == std::signbit(x[i].real())); in test_edges() 50 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) in test_edges() 52 assert(std::isnan(r.real())); in test_edges() 55 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) in test_edges() 57 assert(std::isnan(r.real())); in test_edges() 60 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag())) in test_edges() 62 assert(r.real() == 1); in test_edges() 66 else if (std::isinf(x[i].real()) && std::isinf(x[i].imag())) in test_edges() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | covariance_matrix_generator_unittest.cc | 41 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 42 EXPECT_NEAR(actual_els[0][1].real(), 0.9998f, kTolerance); in TEST() 43 EXPECT_NEAR(actual_els[1][0].real(), 0.9998f, kTolerance); in TEST() 44 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 69 EXPECT_NEAR(actual_els[0][0].real(), 1.f, kTolerance); in TEST() 70 EXPECT_NEAR(actual_els[0][1].real(), 0.9573f, kTolerance); in TEST() 71 EXPECT_NEAR(actual_els[0][2].real(), 0.8347f, kTolerance); in TEST() 72 EXPECT_NEAR(actual_els[1][0].real(), 0.9573f, kTolerance); in TEST() 73 EXPECT_NEAR(actual_els[1][1].real(), 1.f, kTolerance); in TEST() 74 EXPECT_NEAR(actual_els[1][2].real(), 0.9573f, kTolerance); in TEST() [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/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/ |
D | btAlignedAllocator.cpp | 69 char *real; in btAlignedAllocDefault() local 70 real = (char *)sAllocFunc(size + sizeof(void *) + (alignment-1)); in btAlignedAllocDefault() 71 if (real) { in btAlignedAllocDefault() 72 ret = btAlignPointer(real + sizeof(void *),alignment); in btAlignedAllocDefault() 73 *((void **)(ret)-1) = (void *)(real); in btAlignedAllocDefault() 75 ret = (void *)(real); in btAlignedAllocDefault() 82 void* real; in btAlignedFreeDefault() local 85 real = *((void **)(ptr)-1); in btAlignedFreeDefault() 86 sFreeFunc(real); in btAlignedFreeDefault() 114 char *real; in btAlignedAllocInternal() local [all …]
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | dual_quaternion.inl | 43 real(tquat<T, P>()), 52 real(r), 62 real(r), 72 real(q), 107 return (&real)[i]; 114 return (&real)[i]; 126 this->real *= s; 137 this->real /= s; 151 return detail::tdualquat<T, P>(-q.real,-q.dual); 161 return detail::tdualquat<T, P>(q.real + p.real,q.dual + p.dual); [all …]
|
/external/cblas/testing/ |
D | c_zblas2.c | 26 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgemv() 58 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_zgbmv() 65 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real; in F77_zgbmv() 72 A[ LDA*j+irow ].real=a[ (*lda)*(j-jcol)+i ].real; in F77_zgbmv() 100 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgeru() 106 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_zgeru() 128 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zgerc() 134 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_zgerc() 160 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_zhemv() 199 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_zhbmv() [all …]
|
D | c_cblas2.c | 26 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgemv() 58 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_cgbmv() 65 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real; in F77_cgbmv() 72 A[ LDA*j+irow ].real=a[ (*lda)*(j-jcol)+i ].real; in F77_cgbmv() 100 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgeru() 106 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_cgeru() 128 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_cgerc() 134 a[ (*lda)*j+i ].real=A[ LDA*i+j ].real; in F77_cgerc() 160 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real; in F77_chemv() 199 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real; in F77_chbmv() [all …]
|
D | c_cblas3.c | 32 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_cgemm() 41 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_cgemm() 51 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_cgemm() 60 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_cgemm() 69 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_cgemm() 76 c[j*(*ldc)+i].real=C[i*LDC+j].real; in F77_cgemm() 109 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_chemm() 118 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_chemm() 126 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_chemm() 133 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_chemm() [all …]
|
D | c_zblas3.c | 32 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zgemm() 41 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zgemm() 51 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zgemm() 60 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zgemm() 69 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_zgemm() 76 c[j*(*ldc)+i].real=C[i*LDC+j].real; in F77_zgemm() 109 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zhemm() 118 A[i*LDA+j].real=a[j*(*lda)+i].real; in F77_zhemm() 126 B[i*LDB+j].real=b[j*(*ldb)+i].real; in F77_zhemm() 133 C[i*LDC+j].real=c[j*(*ldc)+i].real; in F77_zhemm() [all …]
|
/external/eigen/test/ |
D | redux.cpp | 29 Scalar s(0), p(1), minc(numext::real(m1.coeff(0))), maxc(numext::real(m1.coeff(0))); in matrixRedux() 35 minc = (std::min)(numext::real(minc), numext::real(m1(i,j))); in matrixRedux() 36 maxc = (std::max)(numext::real(maxc), numext::real(m1(i,j))); in matrixRedux() 43 VERIFY_IS_APPROX(m1.real().minCoeff(), numext::real(minc)); in matrixRedux() 44 VERIFY_IS_APPROX(m1.real().maxCoeff(), numext::real(maxc)); in matrixRedux() 54 …VERIFY_IS_APPROX(m1.block(r0,c0,r1,c1).real().minCoeff(), m1.block(r0,c0,r1,c1).real().eval().minC… in matrixRedux() 55 …VERIFY_IS_APPROX(m1.block(r0,c0,r1,c1).real().maxCoeff(), m1.block(r0,c0,r1,c1).real().eval().maxC… in matrixRedux() 76 RealScalar minc(numext::real(v.coeff(0))), maxc(numext::real(v.coeff(0))); in vectorRedux() 81 minc = (std::min)(minc, numext::real(v[j])); in vectorRedux() 82 maxc = (std::max)(maxc, numext::real(v[j])); in vectorRedux() [all …]
|
/external/libcxx/include/ |
D | complex | 30 T real() const; // constexpr in C++14 33 void real(T); 60 constexpr float real() const; 61 void real(float); 89 constexpr double real() const; 90 void real(double); 118 constexpr long double real() const; 119 void real(long double); 168 template<class T> T real(const complex<T>&); // constexpr in C++14 169 long double real(long double); // constexpr in C++14 [all …]
|