Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 610) sorted by relevance

12345678910>>...25

/external/ltrace/
Dvect.c27 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/llvm/test/Assembler/
Dfast-math-flags.ll7 @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/clang/test/Sema/
Dext_vector_comparisons.c6 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/webrtc/webrtc/modules/audio_coding/neteq/
Daudio_vector_unittest.cc54 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 …]
Daudio_multi_vector_unittest.cc87 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/
Dmincore.cc9 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/
DFloatingPoint.cpp65 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/freetype/src/base/
Dfttrigon.c133 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-freetype/jni/freetype-2.6.2/src/base/
Dfttrigon.c133 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/pdfium/third_party/freetype/src/base/
Dfttrigon.c133 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/
DEdgeShape.java58 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/
DVectorAssistant.java52 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/eigen2/
Deigen2_commainitializer.cpp30 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/eigen/test/
Dcommainitializer.cpp30 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/llvm/test/CodeGen/PowerPC/
Dqpx-unal-cons-lds.ll52 %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 …]
Dvsx-infl-copy2.ll22 %vec.phi61 = phi <4 x i32> [ %34, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
23 %vec.phi62 = phi <4 x i32> [ %35, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
24 %vec.phi63 = phi <4 x i32> [ %36, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
25 %vec.phi65 = phi <4 x i32> [ %37, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
26 %vec.phi67 = phi <4 x i32> [ %38, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
27 %vec.phi68 = phi <4 x i32> [ %39, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
28 %vec.phi69 = phi <4 x i32> [ %40, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
29 %vec.phi70 = phi <4 x i32> [ %41, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
30 %vec.phi71 = phi <4 x i32> [ %42, %vector.body ], [ zeroinitializer, %loop_start.preheader ]
83 %34 = add nsw <4 x i32> %25, %vec.phi61
[all …]
/external/valgrind/memcheck/tests/solaris/
Dsendfilev.c43 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/
D2009-11-13-CoalescerCrash.ll5 %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/boringssl/src/crypto/chacha/
Dchacha_vec.c35 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/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DMatrixJNITest.java32 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/icu/icu4c/source/i18n/
Dfphdlimp.cpp72 : 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/
DbtCapsuleShape.cpp37 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 …]
DbtConvexInternalShape.cpp42 btVector3 vec(btScalar(0.),btScalar(0.),btScalar(0.)); in getAabbSlow() local
43 vec[i] = btScalar(1.); in getAabbSlow()
45 btVector3 sv = localGetSupportingVertex(vec*trans.getBasis()); in getAabbSlow()
49 vec[i] = btScalar(-1.); in getAabbSlow()
50 tmp = trans(localGetSupportingVertex(vec*trans.getBasis())); in getAabbSlow()
58 btVector3 btConvexInternalShape::localGetSupportingVertex(const btVector3& vec)const in localGetSupportingVertex()
62 btVector3 supVertex = localGetSupportingVertexWithoutMargin(vec); in localGetSupportingVertex()
66 btVector3 vecnorm = vec; in localGetSupportingVertex()
142 btVector3 vec(btScalar(0.),btScalar(0.),btScalar(0.)); in recalcLocalAabb() local
143 vec[i] = btScalar(1.); in recalcLocalAabb()
[all …]
/external/llvm/test/Analysis/CostModel/AMDGPU/
Dextractelement.ll6 %vec = load <2 x i32>, <2 x i32> addrspace(1)* %vaddr
7 %elt = extractelement <2 x i32> %vec, i32 1
15 %vec = load <2 x float>, <2 x float> addrspace(1)* %vaddr
16 %elt = extractelement <2 x float> %vec, i32 1
24 %vec = load <3 x i32>, <3 x i32> addrspace(1)* %vaddr
25 %elt = extractelement <3 x i32> %vec, i32 1
33 %vec = load <4 x i32>, <4 x i32> addrspace(1)* %vaddr
34 %elt = extractelement <4 x i32> %vec, i32 1
42 %vec = load <8 x i32>, <8 x i32> addrspace(1)* %vaddr
43 %elt = extractelement <8 x i32> %vec, i32 1
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dsplit-scalar-i64-add.ll15 %vec.0 = insertelement <2 x i32> undef, i32 %s.val, i32 0
16 %vec.1 = insertelement <2 x i32> %vec.0, i32 %v.val, i32 1
17 %bc = bitcast <2 x i32> %vec.1 to i64
27 %vec.0 = insertelement <2 x i32> undef, i32 %val, i32 0
28 %vec.1 = insertelement <2 x i32> %vec.0, i32 999999, i32 1
29 %bc = bitcast <2 x i32> %vec.1 to i64
40 %vec.0 = insertelement <2 x i32> undef, i32 %val0, i32 0
41 %vec.1 = insertelement <2 x i32> %vec.0, i32 %v.val, i32 1
42 %bc = bitcast <2 x i32> %vec.1 to i64
52 %vec.0 = insertelement <2 x i32> undef, i32 %val0, i32 0
[all …]

12345678910>>...25