Home
last modified time | relevance | path

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

12345678910>>...58

/third_party/skia/third_party/externals/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 …]
/third_party/skia/third_party/externals/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 …]
/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 …]
/third_party/boost/libs/algorithm/test/
Dapply_permutation_test.cpp26 std::vector<int> vec, order, result; in BOOST_AUTO_TEST_CASE() local
28 ba::apply_permutation(vec.begin(), vec.end(), order.begin(), order.end()); in BOOST_AUTO_TEST_CASE()
29 BOOST_CHECK_EQUAL_COLLECTIONS(vec.begin(), vec.end(), result.begin(), result.end()); in BOOST_AUTO_TEST_CASE()
33 std::vector<int> vec, order, result; in BOOST_AUTO_TEST_CASE() local
34 vec.push_back(1); in BOOST_AUTO_TEST_CASE()
36 result = vec; in BOOST_AUTO_TEST_CASE()
38 ba::apply_permutation(vec.begin(), vec.end(), order.begin(), order.end()); in BOOST_AUTO_TEST_CASE()
39 BOOST_CHECK_EQUAL_COLLECTIONS(vec.begin(), vec.end(), result.begin(), result.end()); in BOOST_AUTO_TEST_CASE()
43 std::vector<int> vec, order, result; in BOOST_AUTO_TEST_CASE() local
44 vec.push_back(1); vec.push_back(2); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/skia/third_party/externals/angle2/src/common/
Dvector_utils_unittest.cpp40 Vector2 vec(1.0, 2.0); in TEST() local
41 ASSERT_EQ(1.0, vec[0]); in TEST()
42 ASSERT_EQ(2.0, vec[1]); in TEST()
44 vec[0] = 3.0; in TEST()
45 vec[1] = 4.0; in TEST()
46 ASSERT_EQ(Vector2(3.0, 4.0), vec); in TEST()
54 Vector2 vec(3.0); in TEST() local
55 ASSERT_EQ(3.0, vec[0]); in TEST()
56 ASSERT_EQ(3.0, vec[1]); in TEST()
61 Vector2 vec(Vector2(1.0, 2.0)); in TEST() local
[all …]
DFixedVector_unittest.cpp53 FixedVector<int, 5> vec = {0, 1, 2, 3, 4}; in TEST() local
54 EXPECT_EQ(0, vec.at(0)); in TEST()
55 EXPECT_EQ(vec[0], vec.at(0)); in TEST()
61 FixedVector<int, 5> vec; in TEST() local
62 vec.push_back(1); in TEST()
63 EXPECT_EQ(1, vec[0]); in TEST()
64 vec.push_back(1); in TEST()
65 vec.push_back(1); in TEST()
66 vec.push_back(1); in TEST()
67 vec.push_back(1); in TEST()
[all …]
DFastVector_unittest.cpp76 FastVector<int, 5> vec = {0, 1, 2, 3, 4}; in TEST() local
79 EXPECT_EQ(i, vec.at(i)); in TEST()
80 EXPECT_EQ(vec[i], vec.at(i)); in TEST()
87 FastVector<int, 5> vec; in TEST() local
88 vec.push_back(1); in TEST()
89 EXPECT_EQ(1, vec[0]); in TEST()
90 vec.push_back(1); in TEST()
91 vec.push_back(1); in TEST()
92 vec.push_back(1); in TEST()
93 vec.push_back(1); in TEST()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dvector_utils_unittest.cpp40 Vector2 vec(1.0, 2.0); in TEST() local
41 ASSERT_EQ(1.0, vec[0]); in TEST()
42 ASSERT_EQ(2.0, vec[1]); in TEST()
44 vec[0] = 3.0; in TEST()
45 vec[1] = 4.0; in TEST()
46 ASSERT_EQ(Vector2(3.0, 4.0), vec); in TEST()
54 Vector2 vec(3.0); in TEST() local
55 ASSERT_EQ(3.0, vec[0]); in TEST()
56 ASSERT_EQ(3.0, vec[1]); in TEST()
61 Vector2 vec(Vector2(1.0, 2.0)); in TEST() local
[all …]
DFastVector_unittest.cpp53 FastVector<int, 5> vec = {0, 1, 2, 3, 4}; in TEST() local
56 EXPECT_EQ(i, vec.at(i)); in TEST()
57 EXPECT_EQ(vec[i], vec.at(i)); in TEST()
64 FastVector<int, 5> vec; in TEST() local
65 vec.push_back(1); in TEST()
66 EXPECT_EQ(1, vec[0]); in TEST()
67 vec.push_back(1); in TEST()
68 vec.push_back(1); in TEST()
69 vec.push_back(1); in TEST()
70 vec.push_back(1); in TEST()
[all …]
DFixedVector_unittest.cpp53 FixedVector<int, 5> vec = {0, 1, 2, 3, 4}; in TEST() local
54 EXPECT_EQ(0, vec.at(0)); in TEST()
55 EXPECT_EQ(vec[0], vec.at(0)); in TEST()
61 FixedVector<int, 5> vec; in TEST() local
62 vec.push_back(1); in TEST()
63 EXPECT_EQ(1, vec[0]); in TEST()
64 vec.push_back(1); in TEST()
65 vec.push_back(1); in TEST()
66 vec.push_back(1); in TEST()
67 vec.push_back(1); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DITypVectorTests.cpp32 Vector vec; in TEST_F() local
33 ASSERT_EQ(vec.size(), Key(0)); in TEST_F()
38 Vector vec(Key(10)); in TEST_F() local
39 ASSERT_EQ(vec.size(), Key(10)); in TEST_F()
42 ASSERT_EQ(vec[i], Val(0)); in TEST_F()
48 Vector vec(Key(10), Val(7)); in TEST_F() local
49 ASSERT_EQ(vec.size(), Key(10)); in TEST_F()
52 ASSERT_EQ(vec[i], Val(7)); in TEST_F()
58 Vector vec = {Val(2), Val(8), Val(1)}; in TEST_F() local
59 ASSERT_EQ(vec.size(), Key(3)); in TEST_F()
[all …]
/third_party/boost/libs/compute/test/
Dtest_is_sorted.cpp27 compute::vector<int> vec(context); in BOOST_AUTO_TEST_CASE() local
28 BOOST_CHECK(compute::is_sorted(vec.begin(), vec.end(), queue)); in BOOST_AUTO_TEST_CASE()
30 vec.push_back(1, queue); in BOOST_AUTO_TEST_CASE()
31 BOOST_CHECK(compute::is_sorted(vec.begin(), vec.end(), queue)); in BOOST_AUTO_TEST_CASE()
33 vec.push_back(2, queue); in BOOST_AUTO_TEST_CASE()
34 BOOST_CHECK(compute::is_sorted(vec.begin(), vec.end(), queue)); in BOOST_AUTO_TEST_CASE()
36 vec.push_back(0, queue); in BOOST_AUTO_TEST_CASE()
37 BOOST_CHECK(compute::is_sorted(vec.begin(), vec.end(), queue) == false); in BOOST_AUTO_TEST_CASE()
39 vec.push_back(-2, queue); in BOOST_AUTO_TEST_CASE()
40 BOOST_CHECK(compute::is_sorted(vec.begin(), vec.end(), queue) == false); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_adjacent_find.cpp27 compute::vector<int> vec(data, data + 8, queue); in BOOST_AUTO_TEST_CASE() local
30 compute::adjacent_find(vec.begin(), vec.end(), queue); in BOOST_AUTO_TEST_CASE()
31 BOOST_CHECK(iter == vec.begin() + 2); in BOOST_AUTO_TEST_CASE()
38 compute::vector<int2_> vec(context); in BOOST_AUTO_TEST_CASE() local
39 vec.push_back(int2_(1, 2), queue); in BOOST_AUTO_TEST_CASE()
40 vec.push_back(int2_(3, 4), queue); in BOOST_AUTO_TEST_CASE()
41 vec.push_back(int2_(5, 6), queue); in BOOST_AUTO_TEST_CASE()
42 vec.push_back(int2_(7, 8), queue); in BOOST_AUTO_TEST_CASE()
43 vec.push_back(int2_(7, 8), queue); in BOOST_AUTO_TEST_CASE()
46 compute::adjacent_find(vec.begin(), vec.end(), queue); in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_unique.cpp41 compute::vector<float> vec(1024, context); in BOOST_AUTO_TEST_CASE() local
42 compute::fill(vec.begin(), vec.end(), 3.14f, queue); in BOOST_AUTO_TEST_CASE()
45 compute::unique(vec.begin(), vec.end(), queue); in BOOST_AUTO_TEST_CASE()
47 BOOST_VERIFY(iter == vec.begin() + 1); in BOOST_AUTO_TEST_CASE()
50 compute::copy_n(vec.begin(), 1, &first, queue); in BOOST_AUTO_TEST_CASE()
59 compute::vector<uint_> vec(1024, context); in BOOST_AUTO_TEST_CASE() local
60 compute::iota(vec.begin(), vec.end(), 0, queue); in BOOST_AUTO_TEST_CASE()
64 vec.begin(), vec.end(), queue in BOOST_AUTO_TEST_CASE()
66 BOOST_VERIFY(iter == vec.end()); in BOOST_AUTO_TEST_CASE()
81 vec.begin(), vec.end(), vec.begin(), odd_to_even, queue in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc124 bool InlinedVectorInvariants(VecT* vec) { in InlinedVectorInvariants() argument
125 if (*vec != *vec) return false; in InlinedVectorInvariants()
126 if (vec->size() > vec->capacity()) return false; in InlinedVectorInvariants()
127 if (vec->size() > vec->max_size()) return false; in InlinedVectorInvariants()
128 if (vec->capacity() > vec->max_size()) return false; in InlinedVectorInvariants()
129 if (vec->data() != std::addressof(vec->at(0))) return false; in InlinedVectorInvariants()
130 if (vec->data() != vec->begin()) return false; in InlinedVectorInvariants()
131 if (*vec->data() != *vec->begin()) return false; in InlinedVectorInvariants()
132 if (vec->begin() > vec->end()) return false; in InlinedVectorInvariants()
133 if ((vec->end() - vec->begin()) != vec->size()) return false; in InlinedVectorInvariants()
[all …]
/third_party/abseil-cpp/absl/container/
Dinlined_vector_exception_safety_test.cc124 bool InlinedVectorInvariants(VecT* vec) { in InlinedVectorInvariants() argument
125 if (*vec != *vec) return false; in InlinedVectorInvariants()
126 if (vec->size() > vec->capacity()) return false; in InlinedVectorInvariants()
127 if (vec->size() > vec->max_size()) return false; in InlinedVectorInvariants()
128 if (vec->capacity() > vec->max_size()) return false; in InlinedVectorInvariants()
129 if (vec->data() != std::addressof(vec->at(0))) return false; in InlinedVectorInvariants()
130 if (vec->data() != vec->begin()) return false; in InlinedVectorInvariants()
131 if (*vec->data() != *vec->begin()) return false; in InlinedVectorInvariants()
132 if (vec->begin() > vec->end()) return false; in InlinedVectorInvariants()
133 if ((vec->end() - vec->begin()) != vec->size()) return false; in InlinedVectorInvariants()
[all …]
/third_party/boost/libs/fusion/test/sequence/
Dvector_n.cpp35 vector0<> vec; in main() local
36 (void) vec; in main()
37 std::cout << "(): " << sizeof(vec) << std::endl; in main()
43 type vec; in main() local
46 BOOST_TEST(at_c<0>(vec) == 0); in main()
50 at_c<0>(vec) = 987; in main()
51 BOOST_TEST(at_c<0>(vec) == 987); in main()
56 type vec(123); in main() local
57 BOOST_TEST(at_c<0>(vec) == 123); in main()
58 std::cout << "(int): " << sizeof(vec) << std::endl; in main()
[all …]
/third_party/skia/third_party/externals/tint/test/bug/fxc/vector_assignment_in_loop/
Dloop_types_all.wgsl.expected.hlsl1 void set_float2(inout float2 vec, int idx, float val) {
2 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
5 void set_float3(inout float3 vec, int idx, float val) {
6 vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec;
9 void set_float4(inout float4 vec, int idx, float val) {
10 vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec;
13 void set_int2(inout int2 vec, int idx, int val) {
14 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
17 void set_int3(inout int3 vec, int idx, int val) {
18 vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec;
[all …]
Dno_loop.wgsl.expected.hlsl1 void set_float2(inout float2 vec, int idx, float val) {
2 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
5 void set_float3(inout float3 vec, int idx, float val) {
6 vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec;
9 void set_float4(inout float4 vec, int idx, float val) {
10 vec = (idx.xxxx == int4(0, 1, 2, 3)) ? val.xxxx : vec;
13 void set_int2(inout int2 vec, int idx, int val) {
14 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
17 void set_int3(inout int3 vec, int idx, int val) {
18 vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec;
[all …]
Dloop_types_some.wgsl.expected.hlsl1 void set_float2(inout float2 vec, int idx, float val) {
2 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
5 void set_int2(inout int2 vec, int idx, int val) {
6 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
9 void set_uint2(inout uint2 vec, int idx, uint val) {
10 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
13 void set_bool2(inout bool2 vec, int idx, bool val) {
14 vec = (idx.xx == int2(0, 1)) ? val.xx : vec;
17 void set_float3(inout float3 vec, int idx, float val) {
18 vec = (idx.xxx == int3(0, 1, 2)) ? val.xxx : vec;
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_vec_to_movs.c62 insert_mov(nir_alu_instr *vec, unsigned start_idx, nir_shader *shader) in insert_mov() argument
64 assert(start_idx < nir_op_infos[vec->op].num_inputs); in insert_mov()
67 if (nir_src_is_undef(vec->src[start_idx].src)) in insert_mov()
71 nir_alu_src_copy(&mov->src[0], &vec->src[start_idx]); in insert_mov()
72 nir_alu_dest_copy(&mov->dest, &vec->dest); in insert_mov()
75 mov->src[0].swizzle[start_idx] = vec->src[start_idx].swizzle[0]; in insert_mov()
76 mov->src[0].negate = vec->src[start_idx].negate; in insert_mov()
77 mov->src[0].abs = vec->src[start_idx].abs; in insert_mov()
80 if (!(vec->dest.write_mask & (1 << i))) in insert_mov()
83 if (nir_srcs_equal(vec->src[i].src, vec->src[start_idx].src) && in insert_mov()
[all …]
/third_party/boost/libs/ptr_container/test/
Dptr_vector.cpp53 ptr_vector<int> vec( 100u ); in test_ptr_vector() local
54 BOOST_CHECK( vec.capacity() >= 100u ); in test_ptr_vector()
59 BOOST_CHECK_THROW( vec.push_back(0), bad_ptr_container_operation ); in test_ptr_vector()
60 BOOST_CHECK_THROW( (vec.insert( vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_vector()
61 BOOST_CHECK_THROW( vec.at( 42 ), bad_ptr_container_operation ); in test_ptr_vector()
62 vec.push_back( new int(0) ); in test_ptr_vector()
63 BOOST_CHECK_THROW( (vec.replace(10u, new int(0))), bad_ptr_container_operation ); in test_ptr_vector()
64 BOOST_CHECK_THROW( (vec.replace(0u, 0)), bad_ptr_container_operation ); in test_ptr_vector()
65 BOOST_CHECK_THROW( (vec.replace(vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_vector()
69 vec.clear(); in test_ptr_vector()
[all …]
Dptr_circular_buffer.cpp57 ptr_circular_buffer<int> vec( 100u ); in test_ptr_circular_buffer() local
58 BOOST_CHECK( vec.capacity() >= 100u ); in test_ptr_circular_buffer()
63 BOOST_CHECK_THROW( vec.push_back(0), bad_ptr_container_operation ); in test_ptr_circular_buffer()
64 BOOST_CHECK_THROW( (vec.insert( vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_circular_buffer()
65 BOOST_CHECK_THROW( vec.at( 42 ), bad_ptr_container_operation ); in test_ptr_circular_buffer()
66 vec.push_back( new int(0) ); in test_ptr_circular_buffer()
67 BOOST_CHECK_THROW( (vec.replace(10u, new int(0))), bad_ptr_container_operation ); in test_ptr_circular_buffer()
68 BOOST_CHECK_THROW( (vec.replace(0u, 0)), bad_ptr_container_operation ); in test_ptr_circular_buffer()
69 BOOST_CHECK_THROW( (vec.replace(vec.begin(), 0 )), bad_ptr_container_operation ); in test_ptr_circular_buffer()
73 vec.clear(); in test_ptr_circular_buffer()
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/flutter/skia/third_party/externals/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 …]

12345678910>>...58