/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
D | compare.pass.cpp | 22 assert(std::char_traits<char16_t>::compare(u"", u"", 0) == 0); in main() 24 assert(std::char_traits<char16_t>::compare(u"1", u"1", 1) == 0); in main() 25 assert(std::char_traits<char16_t>::compare(u"1", u"2", 1) < 0); in main() 26 assert(std::char_traits<char16_t>::compare(u"2", u"1", 1) > 0); in main() 28 assert(std::char_traits<char16_t>::compare(u"12", u"12", 2) == 0); in main() 29 assert(std::char_traits<char16_t>::compare(u"12", u"13", 2) < 0); in main() 30 assert(std::char_traits<char16_t>::compare(u"12", u"22", 2) < 0); in main() 31 assert(std::char_traits<char16_t>::compare(u"13", u"12", 2) > 0); in main() 32 assert(std::char_traits<char16_t>::compare(u"22", u"12", 2) > 0); in main() 34 assert(std::char_traits<char16_t>::compare(u"123", u"123", 3) == 0); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/ |
D | eval.pass.cpp | 38 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), in main() 46 double(0)) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 78 std::vector<D::result_type> u; in main() local [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 45 u.push_back(v); in main() 47 double mean = std::accumulate(u.begin(), u.end(), in main() 48 double(0)) / u.size(); in main() 52 for (int i = 0; i < u.size(); ++i) in main() 54 double d = (u[i] - mean); in main() 60 var /= u.size(); in main() 62 skew /= u.size() * dev * var; in main() 63 kurtosis /= u.size() * var * var; in main() 82 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/ |
D | eval.pass.cpp | 38 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), in main() 46 double(0)) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 79 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.t/ |
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 41 u.push_back(d(g)); in main() 42 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 46 for (int i = 0; i < u.size(); ++i) in main() 48 double d = (u[i] - mean); in main() 54 var /= u.size(); in main() 56 skew /= u.size() * dev * var; in main() 57 kurtosis /= u.size() * var * var; in main() 75 std::vector<D::result_type> u; in main() local 77 u.push_back(d(g)); in main() [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 42 u.push_back(d(g, p)); in main() 43 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 47 for (int i = 0; i < u.size(); ++i) in main() 49 double d = (u[i] - mean); in main() 55 var /= u.size(); in main() 57 skew /= u.size() * dev * var; in main() 58 kurtosis /= u.size() * var * var; in main() 77 std::vector<D::result_type> u; in main() local 79 u.push_back(d(g, p)); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.extreme/ |
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 44 u.push_back(v); in main() 46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 80 std::vector<D::result_type> u; in main() local 84 u.push_back(v); in main() [all …]
|
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 49 for (int i = 0; i < u.size(); ++i) in main() 51 double d = (u[i] - mean); in main() 57 var /= u.size(); in main() 59 skew /= u.size() * dev * var; in main() 60 kurtosis /= u.size() * var * var; in main() 78 std::vector<D::result_type> u; in main() local 82 u.push_back(v); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/ |
D | eval.pass.cpp | 38 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), in main() 46 double(0)) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 78 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/ |
D | eval.pass.cpp | 38 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), in main() 46 double(0)) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 78 std::vector<D::result_type> u; in main() local [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 45 u.push_back(v); in main() 47 double mean = std::accumulate(u.begin(), u.end(), in main() 48 double(0)) / u.size(); in main() 52 for (int i = 0; i < u.size(); ++i) in main() 54 double d = (u[i] - mean); in main() 60 var /= u.size(); in main() 62 skew /= u.size() * dev * var; in main() 63 kurtosis /= u.size() * var * var; in main() 82 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/ |
D | eval.pass.cpp | 38 std::vector<double> u; in main() local 43 u.push_back(v); in main() 45 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 49 for (int i = 0; i < u.size(); ++i) in main() 51 double d = (u[i] - mean); in main() 57 var /= u.size(); in main() 59 skew /= u.size() * dev * var; in main() 60 kurtosis /= u.size() * var * var; in main() 77 std::vector<double> u; in main() local 82 u.push_back(v); in main() [all …]
|
D | eval_param.pass.cpp | 40 std::vector<double> u; in main() local 45 u.push_back(v); in main() 47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 51 for (int i = 0; i < u.size(); ++i) in main() 53 double d = (u[i] - mean); in main() 59 var /= u.size(); in main() 61 skew /= u.size() * dev * var; in main() 62 kurtosis /= u.size() * var * var; in main() 81 std::vector<double> u; in main() local 86 u.push_back(v); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/ |
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 44 u.push_back(v); in main() 46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 79 std::vector<D::result_type> u; in main() local 84 u.push_back(v); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/ |
D | eval.pass.cpp | 38 std::vector<D::result_type> u; in main() local 43 u.push_back(v); in main() 45 D::result_type mean = std::accumulate(u.begin(), u.end(), in main() 46 D::result_type(0)) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 D::result_type d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 78 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.gamma/ |
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 44 u.push_back(v); in main() 46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 79 std::vector<D::result_type> u; in main() local 84 u.push_back(v); in main() [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 45 u.push_back(v); in main() 47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 51 for (int i = 0; i < u.size(); ++i) in main() 53 double d = (u[i] - mean); in main() 59 var /= u.size(); in main() 61 skew /= u.size() * dev * var; in main() 62 kurtosis /= u.size() * var * var; in main() 81 std::vector<D::result_type> u; in main() local 86 u.push_back(v); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/ |
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 44 u.push_back(v); in main() 46 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 50 for (int i = 0; i < u.size(); ++i) in main() 52 double d = (u[i] - mean); in main() 58 var /= u.size(); in main() 60 skew /= u.size() * dev * var; in main() 61 kurtosis /= u.size() * var * var; in main() 79 std::vector<D::result_type> u; in main() local 84 u.push_back(v); in main() [all …]
|
D | eval_param.pass.cpp | 40 std::vector<D::result_type> u; in main() local 45 u.push_back(v); in main() 47 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 51 for (int i = 0; i < u.size(); ++i) in main() 53 double d = (u[i] - mean); in main() 59 var /= u.size(); in main() 61 skew /= u.size() * dev * var; in main() 62 kurtosis /= u.size() * var * var; in main() 81 std::vector<D::result_type> u; in main() local 86 u.push_back(v); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/ |
D | eval.pass.cpp | 37 std::vector<D::result_type> u; in main() local 39 u.push_back(d(g)); in main() 40 double mean = std::accumulate(u.begin(), u.end(), in main() 41 double(0)) / u.size(); in main() 45 for (int i = 0; i < u.size(); ++i) in main() 47 double d = (u[i] - mean); in main() 53 var /= u.size(); in main() 55 skew /= u.size() * dev * var; in main() 56 kurtosis /= u.size() * var * var; in main() 73 std::vector<D::result_type> u; in main() local [all …]
|
D | eval_param.pass.cpp | 39 std::vector<D::result_type> u; in main() local 41 u.push_back(d(g, p)); in main() 42 double mean = std::accumulate(u.begin(), u.end(), in main() 43 double(0)) / u.size(); in main() 47 for (int i = 0; i < u.size(); ++i) in main() 49 double d = (u[i] - mean); in main() 55 var /= u.size(); in main() 57 skew /= u.size() * dev * var; in main() 58 kurtosis /= u.size() * var * var; in main() 77 std::vector<D::result_type> u; in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/ |
D | eval.pass.cpp | 29 std::vector<D::result_type> u(d.max()+1); in main() local 34 u[v]++; in main() 38 assert((double)u[i]/N == prob[i]); in main() 47 std::vector<D::result_type> u(d.max()+1); in main() local 52 u[v]++; in main() 56 assert((double)u[i]/N == prob[i]); in main() 65 std::vector<D::result_type> u(d.max()+1); in main() local 70 u[v]++; in main() 74 assert(std::abs((double)u[i]/N - prob[i]) / prob[i] < 0.001); in main() 83 std::vector<D::result_type> u(d.max()+1); in main() local [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.cauchy/ |
D | eval.pass.cpp | 39 std::vector<D::result_type> u; in main() local 41 u.push_back(d(g)); in main() 42 std::sort(u.begin(), u.end()); in main() 44 assert(std::abs(f(u[i], a, b) - double(i)/N) < .001); in main() 55 std::vector<D::result_type> u; in main() local 57 u.push_back(d(g)); in main() 58 std::sort(u.begin(), u.end()); in main() 60 assert(std::abs(f(u[i], a, b) - double(i)/N) < .001); in main() 71 std::vector<D::result_type> u; in main() local 73 u.push_back(d(g)); in main() [all …]
|
/ndk/tests/device/bitfield/jni/ |
D | main.c | 6 union u u; in main() local 8 u.i = 0xfedcba98; in main() 9 printf("u.i = %08x\n", u.i); in main() 10 foo(&u, 1); in main() 11 printf("u.i = %08x (expecting fedcba99)\n", u.i); in main() 13 return (u.i == 0xfedcba99)? 0 : 1; in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.lognormal/ |
D | eval_param.pass.cpp | 41 std::vector<D::result_type> u; in main() local 46 u.push_back(v); in main() 48 double mean = std::accumulate(u.begin(), u.end(), 0.0) / u.size(); in main() 52 for (int i = 0; i < u.size(); ++i) in main() 54 double d = (u[i] - mean); in main() 60 var /= u.size(); in main() 62 skew /= u.size() * dev * var; in main() 63 kurtosis /= u.size() * var * var; in main() 84 std::vector<D::result_type> u; in main() local 89 u.push_back(v); in main() [all …]
|