Home
last modified time | relevance | path

Searched refs:v1 (Results 1 – 25 of 249) sorted by relevance

12345678910

/ndk/tests/device/test-gnustl-full/unit/
Dperm_test.cpp44 int v1[3] = { 0, 1, 2 }; in prevprm0() local
45 prev_permutation(v1, v1 + 3); in prevprm0()
47 CPPUNIT_ASSERT(v1[0]==2); in prevprm0()
48 CPPUNIT_ASSERT(v1[1]==1); in prevprm0()
49 CPPUNIT_ASSERT(v1[2]==0); in prevprm0()
53 vector <int> v1(3); in prevprm1() local
54 __iota(v1.begin(), v1.end(), 0); in prevprm1()
56 prev_permutation(v1.begin(), v1.end()); in prevprm1()
57 CPPUNIT_ASSERT(v1[0]==2); in prevprm1()
58 CPPUNIT_ASSERT(v1[1]==1); in prevprm1()
[all …]
/ndk/tests/device/test-stlport/unit/
Dperm_test.cpp44 int v1[3] = { 0, 1, 2 }; in prevprm0() local
45 prev_permutation(v1, v1 + 3); in prevprm0()
47 CPPUNIT_ASSERT(v1[0]==2); in prevprm0()
48 CPPUNIT_ASSERT(v1[1]==1); in prevprm0()
49 CPPUNIT_ASSERT(v1[2]==0); in prevprm0()
53 vector <int> v1(3); in prevprm1() local
54 __iota(v1.begin(), v1.end(), 0); in prevprm1()
56 prev_permutation(v1.begin(), v1.end()); in prevprm1()
57 CPPUNIT_ASSERT(v1[0]==2); in prevprm1()
58 CPPUNIT_ASSERT(v1[1]==1); in prevprm1()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.indirect.array/indirect.array.fill/
Dassign_value.pass.cpp29 std::valarray<int> v1(a1, N1); in main() local
31 v1[ia] = 51; in main()
32 assert(v1.size() == 41); in main()
33 assert(v1[ 0] == 0); in main()
34 assert(v1[ 1] == 1); in main()
35 assert(v1[ 2] == 2); in main()
36 assert(v1[ 3] == 51); in main()
37 assert(v1[ 4] == 51); in main()
38 assert(v1[ 5] == 51); in main()
39 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.gslice.array/gslice.array.fill/
Dassign_value.pass.cpp25 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
30 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
32 assert(v1.size() == 41); in main()
33 assert(v1[ 0] == 0); in main()
34 assert(v1[ 1] == 1); in main()
35 assert(v1[ 2] == 2); in main()
36 assert(v1[ 3] == 51); in main()
37 assert(v1[ 4] == 51); in main()
38 assert(v1[ 5] == 51); in main()
39 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.indirect.array/indirect.array.comp.assign/
Dmodulo.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] %= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 0); in main()
40 assert(v1[ 4] == 0); in main()
41 assert(v1[ 5] == 2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dsubtraction.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] -= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 2); in main()
40 assert(v1[ 4] == 2); in main()
41 assert(v1[ 5] == 2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Ddivide.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] /= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 2); in main()
41 assert(v1[ 5] == 1); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dshift_left.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] <<= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 6); in main()
40 assert(v1[ 4] == 16); in main()
41 assert(v1[ 5] == 40); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dmultiply.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] *= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 8); in main()
41 assert(v1[ 5] == 15); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Daddition.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] += v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 3); in main()
41 assert(v1[ 5] == 3); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dxor.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] ^= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 2); in main()
40 assert(v1[ 4] == 6); in main()
41 assert(v1[ 5] == 6); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dshift_right.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] >>= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 1); in main()
40 assert(v1[ 4] == 1); in main()
41 assert(v1[ 5] == 0); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dand.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] &= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 1); in main()
40 assert(v1[ 4] == 0); in main()
41 assert(v1[ 5] == 1); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dor.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] |= v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 6); in main()
41 assert(v1[ 5] == 7); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.indirect.array/indirect.array.assign/
Dindirect_array.pass.cpp34 std::valarray<int> v1(a1, N1); in main() local
37 v1[ia] = v2[ia]; in main()
38 assert(v1.size() == 41); in main()
39 assert(v1[ 0] == 0); in main()
40 assert(v1[ 1] == 1); in main()
41 assert(v1[ 2] == 2); in main()
42 assert(v1[ 3] == -3); in main()
43 assert(v1[ 4] == -4); in main()
44 assert(v1[ 5] == -5); in main()
45 assert(v1[ 6] == 6); in main()
[all …]
Dvalarray.pass.cpp31 std::valarray<int> v1(a1, N1); in main() local
34 v1[ia] = v2; in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 0); in main()
40 assert(v1[ 4] == -1); in main()
41 assert(v1[ 5] == -2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.gslice.array/gslice.array.comp.assign/
Dxor.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 2); in main()
40 assert(v1[ 4] == 6); in main()
41 assert(v1[ 5] == 6); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dmodulo.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 0); in main()
40 assert(v1[ 4] == 0); in main()
41 assert(v1[ 5] == 2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dor.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 6); in main()
41 assert(v1[ 5] == 7); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dand.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 1); in main()
40 assert(v1[ 4] == 0); in main()
41 assert(v1[ 5] == 1); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Daddition.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 3); in main()
40 assert(v1[ 4] == 3); in main()
41 assert(v1[ 5] == 3); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dshift_left.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 6); in main()
40 assert(v1[ 4] == 16); in main()
41 assert(v1[ 5] == 40); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
Dshift_right.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 1); in main()
40 assert(v1[ 4] == 1); in main()
41 assert(v1[ 5] == 0); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.valarray/valarray.sub/
Dgslice_const.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 0); in main()
40 assert(v1[ 4] == -1); in main()
41 assert(v1[ 5] == -2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/numarray/template.gslice.array/gslice.array.assign/
Dvalarray.pass.cpp27 std::valarray<int> v1(a1, sizeof(a1)/sizeof(a1[0])); in main() local
33 v1[std::gslice(3, sizes(sz, sizeof(sz)/sizeof(sz[0])), in main()
35 assert(v1.size() == 41); in main()
36 assert(v1[ 0] == 0); in main()
37 assert(v1[ 1] == 1); in main()
38 assert(v1[ 2] == 2); in main()
39 assert(v1[ 3] == 0); in main()
40 assert(v1[ 4] == -1); in main()
41 assert(v1[ 5] == -2); in main()
42 assert(v1[ 6] == 6); in main()
[all …]

12345678910