/external/marisa-trie/tests/ |
D | vector-test.cc | 23 marisa::Vector<int> vec; in TestVector() local 25 ASSERT(vec.max_size() == MARISA_UINT32_MAX); in TestVector() 26 ASSERT(vec.size() == 0); in TestVector() 27 ASSERT(vec.capacity() == 0); in TestVector() 28 ASSERT(!vec.fixed()); in TestVector() 29 ASSERT(vec.empty()); in TestVector() 30 ASSERT(vec.total_size() == sizeof(marisa::UInt32)); in TestVector() 33 vec.push_back(values[i]); in TestVector() 34 ASSERT(vec[i] == values[i]); in TestVector() 35 ASSERT(static_cast<const marisa::Vector<int> &>(vec)[i] == values[i]); in TestVector() [all …]
|
/external/marisa-trie/v0_1_5/tests/ |
D | vector-test.cc | 23 marisa_alpha::Vector<int> vec; in TestVector() local 25 ASSERT(vec.max_size() == MARISA_ALPHA_UINT32_MAX); in TestVector() 26 ASSERT(vec.size() == 0); in TestVector() 27 ASSERT(vec.capacity() == 0); in TestVector() 28 ASSERT(!vec.fixed()); in TestVector() 29 ASSERT(vec.empty()); in TestVector() 30 ASSERT(vec.total_size() == sizeof(marisa_alpha::UInt32)); in TestVector() 33 vec.push_back(values[i]); in TestVector() 34 ASSERT(vec[i] == values[i]); in TestVector() 35 ASSERT(static_cast<const marisa_alpha::Vector<int> &>(vec)[i] == in TestVector() [all …]
|
/external/ltrace/ |
D | vect.c | 27 slot(struct vect *vec, size_t i) in slot() argument 29 return ((unsigned char *)vec->data) + vec->elt_size * i; in slot() 33 cslot(const struct vect *vec, size_t i) in cslot() argument 35 return ((const unsigned char *)vec->data) + vec->elt_size * i; in cslot() 39 vect_init(struct vect *vec, size_t elt_size) in vect_init() argument 41 *vec = (struct vect){ NULL, 0, 0, elt_size }; in vect_init() 88 vect_reserve(struct vect *vec, size_t count) in vect_reserve() argument 90 if (count > vec->allocated) { in vect_reserve() 91 size_t na = vec->allocated != 0 ? 2 * vec->allocated : 4; in vect_reserve() 94 void *n = realloc(vec->data, na * vec->elt_size); in vect_reserve() [all …]
|
/external/clang/test/Sema/ |
D | ext_vector_comparisons.c | 6 int4 vec, rv; in test1() local 9 return vec == vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 10 return vec != vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 11 return vec < vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 12 return vec <= vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 13 return vec > vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 14 return vec >= vec; // expected-warning{{self-comparison always evaluates to a constant}} in test1() 21 float4 vec, rv; in test2() local 24 return vec == vec; // no-warning in test2() 25 return vec != vec; // no-warning in test2() [all …]
|
/external/llvm/test/Assembler/ |
D | fast-math-flags.ll | 7 @vec = external global <3 x float> 12 ; CHECK: %vec = load <3 x float>, <3 x float>* @vec 13 %vec = load <3 x float>, <3 x float>* @vec 21 ; CHECK: %a_vec = fadd <3 x float> %vec, %vec 22 %a_vec = fadd <3 x float> %vec, %vec 25 ; CHECK: %b_vec = fsub <3 x float> %vec, %vec 26 %b_vec = fsub <3 x float> %vec, %vec 29 ; CHECK: %c_vec = fmul <3 x float> %vec, %vec 30 %c_vec = fmul <3 x float> %vec, %vec 33 ; CHECK: %d_vec = fdiv <3 x float> %vec, %vec [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | audio_vector_unittest.cc | 54 AudioVector vec(array_length()); in TEST_F() local 56 vec[i] = static_cast<int16_t>(i); in TEST_F() 57 const int16_t& value = vec[i]; // Make sure to use the const version. in TEST_F() 65 AudioVector vec; in TEST_F() local 67 vec.PushBack(array_, array_length()); in TEST_F() 68 vec.CopyTo(&vec_copy); // Copy from |vec| to |vec_copy|. in TEST_F() 69 ASSERT_EQ(array_length(), vec.Size()); in TEST_F() 72 EXPECT_EQ(array_[i], vec[i]); in TEST_F() 77 vec.Clear(); in TEST_F() 78 EXPECT_TRUE(vec.Empty()); in TEST_F() [all …]
|
D | audio_multi_vector_unittest.cc | 87 AudioMultiVector vec(num_channels_, array_length()); in TEST_P() local 90 vec[channel][i] = static_cast<int16_t>(i); in TEST_P() 92 const AudioVector& audio_vec = vec[channel]; in TEST_P() 101 AudioMultiVector vec(num_channels_); in TEST_P() local 102 vec.PushBackInterleaved(array_interleaved_, interleaved_length_); in TEST_P() 104 vec.CopyTo(&vec_copy); // Copy from |vec| to |vec_copy|. in TEST_P() 105 ASSERT_EQ(num_channels_, vec.Channels()); in TEST_P() 106 ASSERT_EQ(array_length(), vec.Size()); in TEST_P() 109 for (size_t channel = 0; channel < vec.Channels(); ++channel) { in TEST_P() 111 EXPECT_EQ(static_cast<int16_t>((channel + 1) * 100 + i), vec[channel][i]); in TEST_P() [all …]
|
/external/compiler-rt/test/msan/Linux/ |
D | mincore.cc | 9 unsigned char vec[20]; in main() local 15 __msan_poison(&vec, sizeof(vec)); in main() 16 res = mincore(addr, 10 * PS, vec); in main() 18 assert(__msan_test_shadow(vec, sizeof(vec)) == 10); in main() 20 __msan_poison(&vec, sizeof(vec)); in main() 21 res = mincore(addr, 10 * PS + 42, vec); in main() 23 assert(__msan_test_shadow(vec, sizeof(vec)) == 11); in main() 25 __msan_poison(&vec, sizeof(vec)); in main() 26 res = mincore(addr, 10 * PS - 1, vec); in main() 28 assert(__msan_test_shadow(vec, sizeof(vec)) == 10); in main() [all …]
|
/external/parameter-framework/upstream/test/functional-tests/ |
D | FloatingPoint.cpp | 65 for (auto &vec : invalidParameters) { variable 66 GIVEN ("intentional error: " + vec.title) { 67 create(Config{&Config::instances, vec.payload}); 85 for (auto &vec : Tests<string>{ variable 90 GIVEN ("Invalid value " + vec.title) { 91 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception); 94 for (auto &vec : Tests<string>{ variable 99 GIVEN ("A valid value " + vec.title) { 100 CHECK_NOTHROW(setParameter(path, vec.payload)); 103 CHECK(getValueBack == vec.payload); [all …]
|
/external/pdfium/third_party/freetype/src/base/ |
D | fttrigon.c | 133 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument 139 x = vec->x; in ft_trig_prenorm() 140 y = vec->y; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 163 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument 171 x = vec->x; in ft_trig_pseudo_rotate() 172 y = vec->y; in ft_trig_pseudo_rotate() [all …]
|
/external/freetype/src/base/ |
D | fttrigon.c | 134 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument 140 x = vec->x; in ft_trig_prenorm() 141 y = vec->y; in ft_trig_prenorm() 148 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 149 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 154 vec->x = x >> shift; in ft_trig_prenorm() 155 vec->y = y >> shift; in ft_trig_prenorm() 164 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument 172 x = vec->x; in ft_trig_pseudo_rotate() 173 y = vec->y; in ft_trig_pseudo_rotate() [all …]
|
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/ |
D | fttrigon.c | 133 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument 139 x = vec->x; in ft_trig_prenorm() 140 y = vec->y; in ft_trig_prenorm() 147 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm() 148 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm() 153 vec->x = x >> shift; in ft_trig_prenorm() 154 vec->y = y >> shift; in ft_trig_prenorm() 163 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument 171 x = vec->x; in ft_trig_pseudo_rotate() 172 y = vec->y; in ft_trig_pseudo_rotate() [all …]
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ |
D | EdgeShape.java | 58 public void getVertex1 (Vector2 vec) { in getVertex1() argument 60 vec.x = vertex[0]; in getVertex1() 61 vec.y = vertex[1]; in getVertex1() 70 public void getVertex2 (Vector2 vec) { in getVertex2() argument 72 vec.x = vertex[0]; in getVertex2() 73 vec.y = vertex[1]; in getVertex2() 82 public void getVertex0 (Vector2 vec) { in getVertex0() argument 84 vec.x = vertex[0]; in getVertex0() 85 vec.y = vertex[1]; in getVertex0() 94 public void setVertex0 (Vector2 vec) { in setVertex0() argument [all …]
|
/external/javassist/sample/vector/ |
D | VectorAssistant.java | 52 public CtClass[] assist(ClassPool pool, String vec, String[] args) in assist() argument 67 CtClass[] results = { subclass, pool.get(vec) }; in assist() 87 CtClass vec = pool.makeClass(makeClassName(type)); in makeSubclass() local 88 vec.setSuperclass(pool.get("java.util.Vector")); in makeSubclass() 97 vec.addMethod(CtNewMethod.copy(addmethod, "add", vec, map)); in makeSubclass() 98 vec.addMethod(CtNewMethod.copy(atmethod, "at", vec, map)); in makeSubclass() 99 vec.writeFile(); in makeSubclass() 100 return vec; in makeSubclass() 112 CtClass vec = pool.makeClass(makeClassName(type)); in makeSubclass2() local 113 vec.setSuperclass(pool.get("java.util.Vector")); in makeSubclass2() [all …]
|
/external/eigen/test/ |
D | commainitializer.cpp | 30 Vector3d vec[3]; in test_commainitializer() local 31 vec[0] << 1, 4, 7; in test_commainitializer() 32 vec[1] << 2, 5, 8; in test_commainitializer() 33 vec[2] << 3, 6, 9; in test_commainitializer() 35 m3 << vec[0], vec[1], vec[2]; in test_commainitializer() 38 vec[0] << 1, 2, 3; in test_commainitializer() 39 vec[1] << 4, 5, 6; in test_commainitializer() 40 vec[2] << 7, 8, 9; in test_commainitializer() 42 m3 << vec[0].transpose(), in test_commainitializer() 44 vec[2].transpose(); in test_commainitializer()
|
/external/eigen/test/eigen2/ |
D | eigen2_commainitializer.cpp | 30 Vector3d vec[3]; in test_eigen2_commainitializer() local 31 vec[0] << 1, 4, 7; in test_eigen2_commainitializer() 32 vec[1] << 2, 5, 8; in test_eigen2_commainitializer() 33 vec[2] << 3, 6, 9; in test_eigen2_commainitializer() 35 m3 << vec[0], vec[1], vec[2]; in test_eigen2_commainitializer() 38 vec[0] << 1, 2, 3; in test_eigen2_commainitializer() 39 vec[1] << 4, 5, 6; in test_eigen2_commainitializer() 40 vec[2] << 7, 8, 9; in test_eigen2_commainitializer() 42 m3 << vec[0].transpose(), in test_eigen2_commainitializer() 44 vec[2].transpose(); in test_eigen2_commainitializer()
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
D | Vector4f.java | 177 public Vector4f add(Vector4f vec) { in add() argument 178 if (null == vec) { in add() 182 return new Vector4f(x + vec.x, y + vec.y, z + vec.z, w + vec.w); in add() 196 public Vector4f add(Vector4f vec, Vector4f result) { in add() argument 197 result.x = x + vec.x; in add() 198 result.y = y + vec.y; in add() 199 result.z = z + vec.z; in add() 200 result.w = w + vec.w; in add() 213 public Vector4f addLocal(Vector4f vec) { in addLocal() argument 214 if (null == vec) { in addLocal() [all …]
|
D | Vector2f.java | 118 public Vector2f set(Vector2f vec) { in set() argument 119 this.x = vec.x; in set() 120 this.y = vec.y; in set() 133 public Vector2f add(Vector2f vec) { in add() argument 134 if (null == vec) { in add() 138 return new Vector2f(x + vec.x, y + vec.y); in add() 150 public Vector2f addLocal(Vector2f vec) { in addLocal() argument 151 if (null == vec) { in addLocal() 155 x += vec.x; in addLocal() 156 y += vec.y; in addLocal() [all …]
|
/external/llvm/test/CodeGen/PowerPC/ |
D | qpx-unal-cons-lds.ll | 52 %wide.vec = load <8 x double>, <8 x double>* %2, align 8 53 …%strided.vec = shufflevector <8 x double> %wide.vec, <8 x double> undef, <4 x i32> <i32 0, i32 2, … 54 …%3 = fadd <4 x double> %strided.vec, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+0… 62 %wide.vec.1 = load <8 x double>, <8 x double>* %8, align 8 63 …%strided.vec.1 = shufflevector <8 x double> %wide.vec.1, <8 x double> undef, <4 x i32> <i32 0, i32… 64 …%9 = fadd <4 x double> %strided.vec.1, <double 1.000000e+00, double 1.000000e+00, double 1.000000e… 72 %wide.vec.2 = load <8 x double>, <8 x double>* %14, align 8 73 …%strided.vec.2 = shufflevector <8 x double> %wide.vec.2, <8 x double> undef, <4 x i32> <i32 0, i32… 74 …%15 = fadd <4 x double> %strided.vec.2, <double 1.000000e+00, double 1.000000e+00, double 1.000000… 82 %wide.vec.3 = load <8 x double>, <8 x double>* %20, align 8 [all …]
|
/external/valgrind/memcheck/tests/solaris/ |
D | sendfilev.c | 43 sendfilevec_t vec[2]; in main() local 44 vec[0].sfv_fd = SFV_FD_SELF; in main() 45 vec[0].sfv_off = -1; in main() 46 vec[0].sfv_len = 1; in main() 47 vec[0].sfv_flag = 0; in main() 48 vec[1].sfv_fd = test_fd; in main() 49 vec[1].sfv_off = 0; in main() 50 vec[1].sfv_len = CHUNK; in main() 51 vec[1].sfv_flag = 0; in main() 54 nbytes = sendfilev(test_fd, vec, 2, &xferred); in main() [all …]
|
/external/llvm/test/CodeGen/ARM/ |
D | 2009-11-13-CoalescerCrash.ll | 5 %pln = type { %vec, float } 6 %vec = type { [4 x float] } 8 …_vfpcc float @aaa(%vec* nocapture %ustart, %vec* nocapture %udir, %vec* nocapture %vstart, %vec* n… 13 …%0 = call arm_aapcs_vfpcc %0 @bbb(%pln* undef, %vec* %vstart, %vec* undef) nounwind ; <%0> [#uses… 20 declare arm_aapcs_vfpcc %0 @bbb(%pln* nocapture, %vec* nocapture, %vec* nocapture) nounwind
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | MatrixJNITest.java | 32 Vector3 vec = new Vector3(1, 2, 3); in create() local 39 vec.mul(mat1); in create() 42 check(vec, fvec); in create() 43 check(vec, fvecs, 3, 5); in create() 45 vec.prj(mat1); in create() 48 check(vec, fvec); in create() 49 check(vec, fvecs, 3, 5); in create() 51 vec.rot(mat1); in create() 54 check(vec, fvec); in create() 55 check(vec, fvecs, 3, 5); in create() [all …]
|
/external/boringssl/src/crypto/chacha/ |
D | chacha_vec.c | 35 typedef unsigned vec __attribute__((vector_size(16))); typedef 47 #define ONE (vec) vsetq_lane_u32(1, vdupq_n_u32(0), 0) 48 #define LOAD_ALIGNED(m) (vec)(*((vec *)(m))) 54 (*((vec *)(alignment_buffer))) = (r); \ 57 #define ROTV1(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 1) 58 #define ROTV2(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 2) 59 #define ROTV3(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 3) 60 #define ROTW16(x) (vec) vrev32q_u16((uint16x8_t)x) 62 #define ROTW7(x) (x << ((vec) {7, 7, 7, 7})) ^ (x >> ((vec) {25, 25, 25, 25})) 63 #define ROTW8(x) (x << ((vec) {8, 8, 8, 8})) ^ (x >> ((vec) {24, 24, 24, 24})) [all …]
|
/external/icu/icu4c/source/i18n/ |
D | fphdlimp.cpp | 72 : iter(posIter), vec(NULL), status(_status) { in FieldPositionIteratorHandler() 74 vec = new UVector32(status); in FieldPositionIteratorHandler() 81 iter->setData(vec, status); in ~FieldPositionIteratorHandler() 84 vec = NULL; in ~FieldPositionIteratorHandler() 90 int32_t size = vec->size(); in addAttribute() 91 vec->addElement(id, status); in addAttribute() 92 vec->addElement(start, status); in addAttribute() 93 vec->addElement(limit, status); in addAttribute() 95 vec->setSize(size); in addAttribute() 103 int32_t i = vec->size(); in shiftLast() [all …]
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
D | btCapsuleShape.cpp | 37 btVector3 vec = vec0; in localGetSupportingVertexWithoutMargin() local 38 btScalar lenSqr = vec.length2(); in localGetSupportingVertexWithoutMargin() 41 vec.setValue(1,0,0); in localGetSupportingVertexWithoutMargin() 45 vec *= rlen; in localGetSupportingVertexWithoutMargin() 58 vtx = pos +vec*(radius) - vec * getMargin(); in localGetSupportingVertexWithoutMargin() 59 newDot = vec.dot(vtx); in localGetSupportingVertexWithoutMargin() 70 vtx = pos +vec*(radius) - vec * getMargin(); in localGetSupportingVertexWithoutMargin() 71 newDot = vec.dot(vtx); in localGetSupportingVertexWithoutMargin() 92 const btVector3& vec = vectors[j]; in batchedUnitVectorGetSupportingVertexWithoutMargin() local 99 vtx = pos +vec*(radius) - vec * getMargin(); in batchedUnitVectorGetSupportingVertexWithoutMargin() [all …]
|