Home
last modified time | relevance | path

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

12345678910>>...17

/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/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/llvm/test/Assembler/
Dfast-math-flags.ll6 @vec = external global <3 x float>
11 ; CHECK: %vec = load <3 x float>* @vec
12 %vec = load <3 x float>* @vec
20 ; CHECK: %a_vec = fadd <3 x float> %vec, %vec
21 %a_vec = fadd <3 x float> %vec, %vec
24 ; CHECK: %b_vec = fsub <3 x float> %vec, %vec
25 %b_vec = fsub <3 x float> %vec, %vec
28 ; CHECK: %c_vec = fmul <3 x float> %vec, %vec
29 %c_vec = fmul <3 x float> %vec, %vec
32 ; CHECK: %d_vec = fdiv <3 x float> %vec, %vec
[all …]
/external/chromium_org/third_party/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/chromium_org/third_party/angle/samples/angle/sample_util/
DVector.cpp23 float Vector2::length(const Vector2 &vec) in length() argument
25 float lenSquared = lengthSquared(vec); in length()
29 float Vector2::lengthSquared(const Vector2 &vec) in lengthSquared() argument
31 return vec.x * vec.x + in lengthSquared()
32 vec.y * vec.y; in lengthSquared()
35 Vector2 Vector2::normalize(const Vector2 &vec) in normalize() argument
38 float len = length(vec); in normalize()
42 ret.x = vec.x * invLen; in normalize()
43 ret.y = vec.y * invLen; in normalize()
62 float Vector3::length(const Vector3 &vec) in length() argument
[all …]
DVector.h24 static float length(const Vector2 &vec);
25 static float lengthSquared(const Vector2 &vec);
27 static Vector2 normalize(const Vector2 &vec);
44 static float length(const Vector3 &vec);
45 static float lengthSquared(const Vector3 &vec);
47 static Vector3 normalize(const Vector3 &vec);
74 static float length(const Vector4 &vec);
75 static float lengthSquared(const Vector4 &vec);
77 static Vector4 normalize(const Vector4 &vec);
/external/chromium_org/third_party/freetype/src/base/
Dfttrigon.c115 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument
121 x = vec->x; in ft_trig_prenorm()
122 y = vec->y; in ft_trig_prenorm()
129 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm()
130 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm()
135 vec->x = x >> shift; in ft_trig_prenorm()
136 vec->y = y >> shift; in ft_trig_prenorm()
145 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument
153 x = vec->x; in ft_trig_pseudo_rotate()
154 y = vec->y; in ft_trig_pseudo_rotate()
[all …]
/external/freetype/src/base/
Dfttrigon.c115 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument
121 x = vec->x; in ft_trig_prenorm()
122 y = vec->y; in ft_trig_prenorm()
129 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm()
130 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm()
135 vec->x = x >> shift; in ft_trig_prenorm()
136 vec->y = y >> shift; in ft_trig_prenorm()
145 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument
153 x = vec->x; in ft_trig_pseudo_rotate()
154 y = vec->y; in ft_trig_pseudo_rotate()
[all …]
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/
Dfttrigon.c115 ft_trig_prenorm( FT_Vector* vec ) in ft_trig_prenorm() argument
121 x = vec->x; in ft_trig_prenorm()
122 y = vec->y; in ft_trig_prenorm()
129 vec->x = (FT_Pos)( (FT_ULong)x << shift ); in ft_trig_prenorm()
130 vec->y = (FT_Pos)( (FT_ULong)y << shift ); in ft_trig_prenorm()
135 vec->x = x >> shift; in ft_trig_prenorm()
136 vec->y = y >> shift; in ft_trig_prenorm()
145 ft_trig_pseudo_rotate( FT_Vector* vec, in ft_trig_pseudo_rotate() argument
153 x = vec->x; in ft_trig_pseudo_rotate()
154 y = vec->y; in ft_trig_pseudo_rotate()
[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/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/srec/srec/clib/
Dimeld_tr.c46 imeldata vec[MAX_DIMEN]; in linear_transform_frame() local
54 vec[ii] = 0; in linear_transform_frame()
56 vec[ii] += prep->matrix[ii][jj] * fram[jj]; in linear_transform_frame()
58 vec[ii] = (imeldata) SHIFT_DOWN((int)vec[ii], in linear_transform_frame()
66 fram[ii] = RANGE(vec[ii] + prep->offset[ii], 0, 255); in linear_transform_frame()
69 fram[ii] = RANGE(vec[ii], 0, 255); in linear_transform_frame()
74 fram[ii] = vec[ii]; in linear_transform_frame()
85 imeldata vec[MAX_DIMEN]; in inverse_transform_frame() local
96 vec[ii]= 0; in inverse_transform_frame()
98 vec[ii] += prep->invmat[ii][jj] * fram[jj]; in inverse_transform_frame()
[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/chromium_org/third_party/icu/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/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/chromium_org/third_party/boringssl/src/crypto/chacha/
Dchacha_vec.c33 typedef unsigned vec __attribute__((vector_size(16))); typedef
44 #define ONE (vec) vsetq_lane_u32(1, vdupq_n_u32(0), 0)
45 #define LOAD(m) (vec)(*((vec *)(m)))
46 #define STORE(m, r) (*((vec *)(m))) = (r)
47 #define ROTV1(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 1)
48 #define ROTV2(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 2)
49 #define ROTV3(x) (vec) vextq_u32((uint32x4_t)x, (uint32x4_t)x, 3)
50 #define ROTW16(x) (vec) vrev32q_u16((uint16x8_t)x)
52 #define ROTW7(x) (x << ((vec) {7, 7, 7, 7})) ^ (x >> ((vec) {25, 25, 25, 25}))
53 #define ROTW8(x) (x << ((vec) {8, 8, 8, 8})) ^ (x >> ((vec) {24, 24, 24, 24}))
[all …]
/external/llvm/test/CodeGen/X86/
Dv-binop-widen2.ll4 %vec = type <6 x float>
14 define %vec @vecdiv( %vec %p1, %vec %p2)
16 %result = fdiv %vec %p1, %p2
17 ret %vec %result
20 @a = constant %vec < float 2.0, float 4.0, float 8.0, float 16.0, float 32.0, float 64.0 >
21 @b = constant %vec < float 2.0, float 2.0, float 2.0, float 2.0, float 2.0, float 2.0 >
28 %avec = load %vec* @a
29 %bvec = load %vec* @b
31 %res = call %vec @vecdiv(%vec %avec, %vec %bvec)
36 %elem = extractelement %vec %res, i32 %idx
/external/chromium_org/mojo/public/cpp/bindings/lib/
Darray_internal.h438 static inline void Initialize(std::vector<T>* vec) {
440 static inline void Finalize(std::vector<T>* vec) {
442 static inline ConstRefType at(const std::vector<T>* vec, size_t offset) {
443 return vec->at(offset);
445 static inline RefType at(std::vector<T>* vec, size_t offset) {
446 return vec->at(offset);
448 static inline void Resize(std::vector<T>* vec, size_t size) {
449 vec->resize(size);
451 static inline void PushBack(std::vector<T>* vec, ForwardType value) {
452 vec->push_back(value);
[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/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/chromium_org/third_party/mesa/src/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/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));

12345678910>>...17