Home
last modified time | relevance | path

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

12345678910>>...17

/external/marisa-trie/v0_1_5/tests/
Dvector-test.cc23 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/marisa-trie/tests/
Dvector-test.cc23 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/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 …]
Dvect.h42 void vect_init(struct vect *vec, size_t elt_size);
79 size_t vect_size(const struct vect *vec);
82 int vect_empty(const struct vect *vec);
97 int vect_pushback(struct vect *vec, void *eltp);
101 void vect_popback(struct vect *vec,
114 void vect_erase(struct vect *vec, size_t start, size_t end,
135 int vect_reserve(struct vect *vec, size_t count);
138 int vect_reserve_additional(struct vect *vec, size_t count);
143 void vect_destroy(struct vect *vec,
158 void *vect_each(struct vect *vec, void *start_after,
[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/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/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/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/jmonkeyengine/engine/src/core/com/jme3/math/
DVector4f.java177 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 …]
DVector2f.java118 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 …]
DVector3f.java168 public Vector3f add(Vector3f vec) { in add() argument
169 if (null == vec) { in add()
173 return new Vector3f(x + vec.x, y + vec.y, z + vec.z); in add()
187 public Vector3f add(Vector3f vec, Vector3f result) { in add() argument
188 result.x = x + vec.x; in add()
189 result.y = y + vec.y; in add()
190 result.z = z + vec.z; in add()
203 public Vector3f addLocal(Vector3f vec) { in addLocal() argument
204 if (null == vec) { in addLocal()
208 x += vec.x; in addLocal()
[all …]
/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/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/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/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/jmonkeyengine/engine/src/core/com/jme3/scene/debug/
DArrow.java84 Vector3f vec = tempVec.set(positions[i], in Arrow() local
87 vec.multLocal(len); in Arrow()
88 tempQuat.mult(vec, vec); in Arrow()
90 newPositions[i] = vec.getX(); in Arrow()
91 newPositions[i + 1] = vec.getY(); in Arrow()
92 newPositions[i + 2] = vec.getZ(); in Arrow()
126 Vector3f vec = tempVec.set(positions[i], in setArrowExtent() local
129 vec.multLocal(len); in setArrowExtent()
130 tempQuat.mult(vec, vec); in setArrowExtent()
132 buffer.put(vec.x); in setArrowExtent()
[all …]
/external/llvm/test/CodeGen/PowerPC/
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/e2fsprogs/lib/ext2fs/
Dtst_badblocks.c68 static errcode_t create_test_list(blk_t *vec, badblocks_list *ret) in create_test_list() argument
79 for (i=0; vec[i]; i++) { in create_test_list()
80 retval = ext2fs_badblocks_list_add(bb, vec[i]); in create_test_list()
121 static void validate_test_seq(badblocks_list bb, blk_t *vec) in validate_test_seq() argument
125 for (i = 0; vec[i]; i += 2) { in validate_test_seq()
126 match = ext2fs_badblocks_list_test(bb, vec[i]); in validate_test_seq()
127 if (match == vec[i+1]) in validate_test_seq()
133 printf("\tblock %u is %s --- %s\n", vec[i], in validate_test_seq()
139 static void do_test_seq(badblocks_list bb, blk_t *vec) in do_test_seq() argument
143 for (i = 0; vec[i]; i += 2) { in do_test_seq()
[all …]
/external/mesa3d/src/mesa/main/
Dtexcompress_fxt1.c290 fxt1_bestcol (GLfloat vec[][MAX_COMP], GLint nv, in fxt1_bestcol()
299 e += (vec[j][i] - input[i]) * (vec[j][i] - input[i]); in fxt1_bestcol()
312 fxt1_worst (GLfloat vec[MAX_COMP], in fxt1_worst()
321 e += (vec[i] - input[k][i]) * (vec[i] - input[k][i]); in fxt1_worst()
364 fxt1_choose (GLfloat vec[][MAX_COMP], GLint nv, in fxt1_choose()
375 vec[j][i] = input[m][i]; in fxt1_choose()
435 vec[j][i] = (GLfloat)input[hist[j].idx][i]; in fxt1_choose()
440 vec[j][i] = vec[0][i]; in fxt1_choose()
448vec[j][i] = ((nv - 1 - j) * input[minCol][i] + j * input[maxCol][i] + (nv - 1) / 2) / (GLfloat)(nv… in fxt1_choose()
458 fxt1_lloyd (GLfloat vec[][MAX_COMP], GLint nv, in fxt1_lloyd()
[all …]
/external/eigen/unsupported/doc/examples/
DFFT.cpp34 T mag2(const std::vector<T> & vec) in mag2() argument
37 for (size_t k=0;k<vec.size();++k) in mag2()
38 out += mag2(vec[k]); in mag2()
43 T mag2(const std::vector<std::complex<T> > & vec) in mag2() argument
46 for (size_t k=0;k<vec.size();++k) in mag2()
47 out += mag2(vec[k]); in mag2()
61 void RandomFill(std::vector<T> & vec) in RandomFill() argument
63 for (size_t k=0;k<vec.size();++k) in RandomFill()
64 vec[k] = T( rand() )/T(RAND_MAX) - .5; in RandomFill()
68 void RandomFill(std::vector<std::complex<T> > & vec) in RandomFill() argument
[all …]
/external/skia/src/effects/
DSkOffsetImageFilter.cpp33 SkVector vec; local
34 ctx.ctm().mapVectors(&vec, &fOffset, 1);
36 offset->fX = srcOffset.fX + SkScalarRoundToInt(vec.fX);
37 offset->fY = srcOffset.fY + SkScalarRoundToInt(vec.fY);
58 SkVector vec; local
59 ctx.ctm().mapVectors(&vec, &fOffset, 1);
60 canvas.drawBitmap(src, vec.x(), vec.y(), &paint);
81 SkVector vec; local
82 ctm.mapVectors(&vec, &fOffset, 1);
85 bounds.offset(-SkScalarCeilToInt(vec.fX), -SkScalarCeilToInt(vec.fY));
/external/llvm/test/CodeGen/R600/
Dsplit-scalar-i64-add.ll14 %vec.0 = insertelement <2 x i32> undef, i32 %val, i32 0
15 %vec.1 = insertelement <2 x i32> %vec.0, i32 999999, i32 1
16 %bc = bitcast <2 x i32> %vec.1 to i64
26 %vec.0 = insertelement <2 x i32> undef, i32 %val0, i32 0
27 %vec.1 = insertelement <2 x i32> %vec.0, i32 99999, i32 1
28 %bc = bitcast <2 x i32> %vec.1 to i64
42 %vec.0 = insertelement <2 x i32> undef, i32 %val0, i32 0
43 %vec.1 = insertelement <2 x i32> %vec.0, i32 %load, i32 1
44 %bc = bitcast <2 x i32> %vec.1 to i64
/external/llvm/test/Transforms/InstCombine/
Dinsert-extract-shuffle.ll7 %vec = insertelement <1 x i8> undef, i8 %val, i32 0
8 ret <1 x i8> %vec
19 %vec.0 = insertelement <4 x i16> undef, i16 %elt0, i32 0
20 %vec.1 = insertelement <4 x i16> %vec.0, i16 %elt1, i32 1
21 %vec.2 = insertelement <4 x i16> %vec.1, i16 %elt2, i32 2
22 %vec.3 = insertelement <4 x i16> %vec.2, i16 %elt3, i32 3
24 ret <4 x i16> %vec.3

12345678910>>...17