Home
last modified time | relevance | path

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

12345678910>>...54

/external/swiftshader/third_party/SPIRV-Tools/test/util/
Dsmall_vector_test.cpp28 SmallVector<uint32_t, 2> vec; in TEST() local
30 EXPECT_TRUE(vec.empty()); in TEST()
31 EXPECT_EQ(vec.size(), 0); in TEST()
32 EXPECT_EQ(vec.begin(), vec.end()); in TEST()
36 SmallVector<uint32_t, 2> vec = {0, 1, 2, 3}; in TEST() local
38 EXPECT_FALSE(vec.empty()); in TEST()
39 EXPECT_EQ(vec.size(), 4); in TEST()
42 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
43 EXPECT_EQ(vec[i], result[i]); in TEST()
48 SmallVector<uint32_t, 6> vec = {0, 1, 2, 3}; in TEST() local
[all …]
/external/deqp-deps/SPIRV-Tools/test/util/
Dsmall_vector_test.cpp28 SmallVector<uint32_t, 2> vec; in TEST() local
30 EXPECT_TRUE(vec.empty()); in TEST()
31 EXPECT_EQ(vec.size(), 0); in TEST()
32 EXPECT_EQ(vec.begin(), vec.end()); in TEST()
36 SmallVector<uint32_t, 2> vec = {0, 1, 2, 3}; in TEST() local
38 EXPECT_FALSE(vec.empty()); in TEST()
39 EXPECT_EQ(vec.size(), 4); in TEST()
42 for (uint32_t i = 0; i < vec.size(); ++i) { in TEST()
43 EXPECT_EQ(vec[i], result[i]); in TEST()
48 SmallVector<uint32_t, 6> vec = {0, 1, 2, 3}; in TEST() local
[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/libcxx/test/std/containers/sequences/vector/vector.cons/
Ddeduct.pass.cpp39 std::vector vec(std::begin(arr), std::end(arr)); in main() local
41 static_assert(std::is_same_v<decltype(vec), std::vector<int>>, ""); in main()
42 assert(std::equal(vec.begin(), vec.end(), std::begin(arr), std::end(arr))); in main()
47 std::vector vec(std::begin(arr), std::end(arr), std::allocator<long>()); in main()
48 static_assert(std::is_same_v<decltype(vec)::value_type, long>, ""); in main()
49 assert(vec.size() == 4); in main()
50 assert(vec[0] == INT_MAX); in main()
51 assert(vec[1] == 1L); in main()
52 assert(vec[2] == 2L); in main()
63 std::vector vec(1, A{}); // vector (size_type, T) in main() local
[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/swiftshader/third_party/llvm-7.0/llvm/test/Assembler/
Dfast-math-flags.ll7 @vec = external global <3 x float>
14 ; CHECK: %vec = load <3 x float>, <3 x float>* @vec
15 %vec = load <3 x float>, <3 x float>* @vec
23 ; CHECK: %a_vec = fadd <3 x float> %vec, %vec
24 %a_vec = fadd <3 x float> %vec, %vec
27 ; CHECK: %b_vec = fsub <3 x float> %vec, %vec
28 %b_vec = fsub <3 x float> %vec, %vec
31 ; CHECK: %c_vec = fmul <3 x float> %vec, %vec
32 %c_vec = fmul <3 x float> %vec, %vec
35 ; CHECK: %d_vec = fdiv <3 x float> %vec, %vec
[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/parameter-framework/upstream/test/functional-tests/
DEnumParameter.cpp61 for (auto &vec : invalidEnumParameterParameters) { variable
62 GIVEN ("intentional error: " + vec.title) {
63 create(Config{&Config::instances, vec.payload});
81 for (auto &vec : Tests<string>{ variable
84 GIVEN ("Invalid value " + vec.title) {
85 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
88 for (auto &vec : Tests<string>{ variable
91 GIVEN ("A valid value " + vec.title) {
92 CHECK_NOTHROW(setParameter(path, vec.payload));
95 CHECK(getValueBack == vec.payload);
[all …]
DInteger.cpp94 for (auto &vec : invalidIntegerParameters) { variable
95 GIVEN ("intentional error: " + vec.title) {
96 create(Config{&Config::instances, vec.payload});
114 for (auto &vec : Tests<string>{ variable
117 GIVEN ("Invalid value " + vec.title) {
118 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
121 for (auto &vec : Tests<string>{ variable
124 GIVEN ("A valid value " + vec.title) {
125 CHECK_NOTHROW(setParameter(path, vec.payload));
128 CHECK(getValueBack == vec.payload);
[all …]
DBoolean.cpp65 for (auto &vec : Tests<string>{ variable
68 GIVEN ("Invalid value " + vec.title) {
69 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
72 for (auto &vec : Tests<string>{ variable
75 GIVEN ("A valid value " + vec.title) {
76 CHECK_NOTHROW(setParameter(path, vec.payload));
79 CHECK(getValueBack == vec.payload);
90 for (auto &vec : Tests<bool>{ variable
93 GIVEN ("A valid value " + vec.title) {
94 CHECK_NOTHROW(handle.setAsBoolean(vec.payload));
[all …]
DBitParameter.cpp65 for (auto &vec : invalidBitParameterParameters) { variable
66 GIVEN ("intentional error: " + vec.title) {
67 create(Config{&Config::instances, vec.payload});
85 for (auto &vec : Tests<string>{ variable
88 GIVEN ("Invalid value " + vec.title) {
89 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
92 for (auto &vec : Tests<string>{ variable
95 GIVEN ("A valid value " + vec.title) {
96 CHECK_NOTHROW(setParameter(path, vec.payload));
99 CHECK(getValueBack == vec.payload);
[all …]
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 …]
DFixedPoint.cpp64 for (auto &vec : invalidFixedPointParameters) { variable
65 GIVEN ("intentional error: " + vec.title) {
66 create(Config{&Config::instances, vec.payload});
83 for (auto &vec : Tests<string>{ variable
88 GIVEN ("Invalid value " + vec.title) {
89 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
92 for (auto &vec : Tests<string>{ variable
97 GIVEN ("A valid value " + vec.title) {
98 CHECK_NOTHROW(setParameter(path, vec.payload));
101 CHECK(getValueBack == vec.payload);
[all …]
DLinear.cpp70 for (auto &vec : invalidLinearParameters) { variable
71 GIVEN ("intentional error: " + vec.title) {
72 create(Config{&Config::instances, vec.payload});
89 for (auto &vec : Tests<string>{ variable
94 GIVEN ("Invalid value " + vec.title) {
95 CHECK_THROWS_AS(setParameter(path, vec.payload), Exception);
98 for (auto &vec : Tests<string>{ variable
103 GIVEN ("A valid value " + vec.title) {
104 CHECK_NOTHROW(setParameter(path, vec.payload));
107 CHECK(getValueBack == vec.payload);
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_lower_vec_to_movs.c56 insert_mov(nir_alu_instr *vec, unsigned start_idx, nir_shader *shader) in insert_mov() argument
58 assert(start_idx < nir_op_infos[vec->op].num_inputs); in insert_mov()
61 nir_alu_src_copy(&mov->src[0], &vec->src[start_idx], mov); in insert_mov()
62 nir_alu_dest_copy(&mov->dest, &vec->dest, mov); in insert_mov()
65 mov->src[0].swizzle[start_idx] = vec->src[start_idx].swizzle[0]; in insert_mov()
66 mov->src[0].negate = vec->src[start_idx].negate; in insert_mov()
67 mov->src[0].abs = vec->src[start_idx].abs; in insert_mov()
70 if (!(vec->dest.write_mask & (1 << i))) in insert_mov()
73 if (nir_srcs_equal(vec->src[i].src, vec->src[start_idx].src) && in insert_mov()
74 vec->src[i].negate == vec->src[start_idx].negate && in insert_mov()
[all …]
/external/u-boot/arch/powerpc/cpu/mpc8xx/
Dinterrupts.c55 ulong vec, v_bit; in external_interrupt() local
61 vec = in_be32(&immr->im_siu_conf.sc_sivec); in external_interrupt()
62 irq = vec >> 26; in external_interrupt()
91 irq, vec); in external_interrupt()
109 uint vec; in cpm_interrupt() local
116 vec = in_be16(&immr->im_cpic.cpic_civr); in cpm_interrupt()
117 vec >>= 11; in cpm_interrupt()
119 if (cpm_vecs[vec].handler != NULL) { in cpm_interrupt()
120 (*cpm_vecs[vec].handler) (cpm_vecs[vec].arg); in cpm_interrupt()
122 clrbits_be32(&immr->im_cpic.cpic_cimr, 1 << vec); in cpm_interrupt()
[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/swiftshader/third_party/LLVM/test/CodeGen/CellSPU/
Dv2f32.ll2 %vec = type <2 x float>
4 define %vec @test_ret(%vec %param)
7 ret %vec %param
10 define %vec @test_add(%vec %param)
13 %1 = fadd %vec %param, %param
15 ret %vec %1
18 define %vec @test_sub(%vec %param)
21 %1 = fsub %vec %param, %param
24 ret %vec %1
27 define %vec @test_mul(%vec %param)
[all …]
/external/u-boot/arch/m68k/lib/
Dinterrupts.c45 void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg) in irq_install_handler() argument
47 if ((vec < 0) || (vec >= NR_IRQS)) { in irq_install_handler()
49 vec); in irq_install_handler()
53 irq_vecs[vec].handler = handler; in irq_install_handler()
54 irq_vecs[vec].arg = arg; in irq_install_handler()
57 void irq_free_handler (int vec) in irq_free_handler() argument
59 if ((vec < 0) || (vec >= NR_IRQS)) { in irq_free_handler()
63 irq_vecs[vec].handler = NULL; in irq_free_handler()
64 irq_vecs[vec].arg = NULL; in irq_free_handler()
87 int vec; in int_handler() local
[all …]
/external/swiftshader/third_party/subzero/crosstest/
Dtest_vector_ops_ll.ll1 define <4 x float> @insertelement_v4f32(<4 x float> %vec, float %elt, i32 %idx) {
9 %res0 = insertelement <4 x float> %vec, float %elt, i32 0
12 %res1 = insertelement <4 x float> %vec, float %elt, i32 1
15 %res2 = insertelement <4 x float> %vec, float %elt, i32 2
18 %res3 = insertelement <4 x float> %vec, float %elt, i32 3
25 %vec = trunc <4 x i32> %arg_vec to <4 x i1>
34 %res0_i1 = insertelement <4 x i1> %vec, i1 %elt, i32 0
38 %res1_i1 = insertelement <4 x i1> %vec, i1 %elt, i32 1
42 %res2_i1 = insertelement <4 x i1> %vec, i1 %elt, i32 2
46 %res3_i1 = insertelement <4 x i1> %vec, i1 %elt, i32 3
[all …]
/external/freetype/src/base/
Dfttrigon.c134 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/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineSpecConstantUtil.hpp80 std::vector<T> vec; in makeVector() local
81 vec.reserve(1); in makeVector()
82 vec.push_back(o1); in makeVector()
83 return vec; in makeVector()
89 std::vector<T> vec; in makeVector() local
90 vec.reserve(2); in makeVector()
91 vec.push_back(o1); in makeVector()
92 vec.push_back(o2); in makeVector()
93 return vec; in makeVector()
99 std::vector<T> vec; in makeVector() local
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkTypeUtil.hpp97 inline VkExtent3D makeExtent3D (const tcu::IVec3& vec) in makeExtent3D() argument
99 return makeExtent3D((deUint32)vec.x(), (deUint32)vec.y(), (deUint32)vec.z()); in makeExtent3D()
102 inline VkExtent3D makeExtent3D (const tcu::UVec3& vec) in makeExtent3D() argument
104 return makeExtent3D(vec.x(), vec.y(), vec.z()); in makeExtent3D()
118 inline VkRect2D makeRect2D(const tcu::IVec2& vec) in makeRect2D() argument
120 return makeRect2D(0, 0, vec.x(), vec.y()); in makeRect2D()
123 inline VkRect2D makeRect2D(const tcu::IVec3& vec) in makeRect2D() argument
125 return makeRect2D(0, 0, vec.x(), vec.y()); in makeRect2D()
128 inline VkRect2D makeRect2D(const tcu::UVec2& vec) in makeRect2D() argument
130 return makeRect2D(0, 0, vec.x(), vec.y()); in makeRect2D()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dpack.v2i16.ll16 %vec.0 = insertelement <2 x i16> undef, i16 %lo, i32 0
17 %vec.1 = insertelement <2 x i16> %vec.0, i16 %hi, i32 1
18 %vec.i32 = bitcast <2 x i16> %vec.1 to i32
20 call void asm sideeffect "; use $0", "s"(i32 %vec.i32) #0
31 %vec.0 = insertelement <2 x i16> undef, i16 456, i32 0
32 %vec.1 = insertelement <2 x i16> %vec.0, i16 %hi, i32 1
33 %vec.i32 = bitcast <2 x i16> %vec.1 to i32
35 call void asm sideeffect "; use $0", "s"(i32 %vec.i32) #0
46 %vec.0 = insertelement <2 x i16> undef, i16 %lo, i32 0
47 %vec.1 = insertelement <2 x i16> %vec.0, i16 456, i32 1
[all …]

12345678910>>...54