/ndk/tests/device/test-gnustl-full/unit/ |
D | perm_test.cpp | 44 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/ |
D | perm_test.cpp | 44 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/ |
D | assign_value.pass.cpp | 29 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/ |
D | assign_value.pass.cpp | 25 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/ |
D | modulo.pass.cpp | 31 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 …]
|
D | subtraction.pass.cpp | 31 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 …]
|
D | divide.pass.cpp | 31 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 …]
|
D | shift_left.pass.cpp | 31 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 …]
|
D | multiply.pass.cpp | 31 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 …]
|
D | addition.pass.cpp | 31 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 …]
|
D | xor.pass.cpp | 31 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 …]
|
D | shift_right.pass.cpp | 31 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 …]
|
D | and.pass.cpp | 31 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 …]
|
D | or.pass.cpp | 31 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/ |
D | indirect_array.pass.cpp | 34 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 …]
|
D | valarray.pass.cpp | 31 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/ |
D | xor.pass.cpp | 27 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 …]
|
D | modulo.pass.cpp | 27 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 …]
|
D | or.pass.cpp | 27 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 …]
|
D | and.pass.cpp | 27 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 …]
|
D | addition.pass.cpp | 27 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 …]
|
D | shift_left.pass.cpp | 27 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 …]
|
D | shift_right.pass.cpp | 27 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/ |
D | gslice_const.pass.cpp | 27 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/ |
D | valarray.pass.cpp | 27 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 …]
|