Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 12037) sorted by relevance

12345678910>>...482

/external/libcxx/test/std/numerics/c.math/
Dcmath.pass.cpp31 struct Ambiguous : std::true_type { // ADL
106 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); in test_abs()
107 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); in test_abs()
108 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); in test_abs()
109 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs()
110 assert(std::abs(-1.) == 1); in test_abs()
115 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); in test_acos()
116 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); in test_acos()
117 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); in test_acos()
118 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); in test_acos()
[all …]
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
Dis_heap_comp.pass.cpp27 return std::is_heap(std::begin(ia), std::end(ia), std::greater<int>()) in test_constexpr()
28 && !std::is_heap(std::begin(ib), std::end(ib), std::greater<int>()); in test_constexpr()
35 assert(std::is_heap(i1, i1, std::greater<int>())); in test()
36 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test()
39 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test()
40 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test()
41 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test()
49 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test()
50 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test()
51 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test()
[all …]
Dis_heap_until_comp.pass.cpp27 return (std::is_heap_until(std::begin(ia), std::end(ia), std::greater<int>()) == ia+1) in test_constexpr()
28 && (std::is_heap_until(std::begin(ib), std::end(ib), std::greater<int>()) == ib+3); in test_constexpr()
35 assert(std::is_heap_until(i1, i1, std::greater<int>()) == i1); in test()
36 assert(std::is_heap_until(i1, i1+1, std::greater<int>()) == i1+1); in test()
39 assert(std::is_heap_until(i1, i1+2, std::greater<int>()) == i1+2); in test()
40 assert(std::is_heap_until(i2, i2+2, std::greater<int>()) == i2+2); in test()
41 assert(std::is_heap_until(i3, i3+2, std::greater<int>()) == i3+1); in test()
49 assert(std::is_heap_until(i4, i4+3, std::greater<int>()) == i4+3); in test()
50 assert(std::is_heap_until(i5, i5+3, std::greater<int>()) == i5+3); in test()
51 assert(std::is_heap_until(i6, i6+3, std::greater<int>()) == i6+3); in test()
[all …]
Dis_heap.pass.cpp26 return std::is_heap(std::begin(ia), std::end(ia)) in test_constexpr()
27 && !std::is_heap(std::begin(ib), std::end(ib)); in test_constexpr()
34 assert(std::is_heap(i1, i1)); in test()
35 assert(std::is_heap(i1, i1+1) == (std::is_heap_until(i1, i1+1) == i1+1)); in test()
38 assert(std::is_heap(i1, i1+2) == (std::is_heap_until(i1, i1+2) == i1+2)); in test()
39 assert(std::is_heap(i2, i2+2) == (std::is_heap_until(i2, i2+2) == i2+2)); in test()
40 assert(std::is_heap(i3, i3+2) == (std::is_heap_until(i3, i3+2) == i3+2)); in test()
48 assert(std::is_heap(i4, i4+3) == (std::is_heap_until(i4, i4+3) == i4+3)); in test()
49 assert(std::is_heap(i5, i5+3) == (std::is_heap_until(i5, i5+3) == i5+3)); in test()
50 assert(std::is_heap(i6, i6+3) == (std::is_heap_until(i6, i6+3) == i6+3)); in test()
[all …]
/external/deqp-deps/SPIRV-Tools/test/val/
Dval_capability_test.cpp72 std::tuple<std::string, std::pair<std::string, std::vector<std::string>>>;
74 const std::string& Capability(const CapTestParameter& p) { in Capability()
75 return std::get<0>(p); in Capability()
77 const std::string& Remainder(const CapTestParameter& p) { in Remainder()
78 return std::get<1>(p).first; in Remainder()
80 const std::vector<std::string>& MustSucceed(const CapTestParameter& p) { in MustSucceed()
81 return std::get<1>(p).second; in MustSucceed()
85 std::string MakeAssembly(const CapTestParameter& p) { in MakeAssembly()
86 std::ostringstream ss; in MakeAssembly()
87 const std::string& capability = Capability(p); in MakeAssembly()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/val/
Dval_capability_test.cpp72 std::tuple<std::string, std::pair<std::string, std::vector<std::string>>>;
74 const std::string& Capability(const CapTestParameter& p) { in Capability()
75 return std::get<0>(p); in Capability()
77 const std::string& Remainder(const CapTestParameter& p) { in Remainder()
78 return std::get<1>(p).first; in Remainder()
80 const std::vector<std::string>& MustSucceed(const CapTestParameter& p) { in MustSucceed()
81 return std::get<1>(p).second; in MustSucceed()
85 std::string MakeAssembly(const CapTestParameter& p) { in MakeAssembly()
86 std::ostringstream ss; in MakeAssembly()
87 const std::string& capability = Capability(p); in MakeAssembly()
[all …]
/external/libcxx/test/std/numerics/complex.number/
Dcases.h20 const std::complex<double> testcases[] =
22 std::complex<double>( 1.e-6, 1.e-6),
23 std::complex<double>(-1.e-6, 1.e-6),
24 std::complex<double>(-1.e-6, -1.e-6),
25 std::complex<double>( 1.e-6, -1.e-6),
27 std::complex<double>( 1.e+6, 1.e-6),
28 std::complex<double>(-1.e+6, 1.e-6),
29 std::complex<double>(-1.e+6, -1.e-6),
30 std::complex<double>( 1.e+6, -1.e-6),
32 std::complex<double>( 1.e-6, 1.e+6),
[all …]
/external/libcxx/test/std/re/re.const/re.err/
Derror_type.pass.cpp41 assert(std::regex_constants::error_collate != 0); in main()
42 assert(std::regex_constants::error_ctype != 0); in main()
43 assert(std::regex_constants::error_escape != 0); in main()
44 assert(std::regex_constants::error_backref != 0); in main()
45 assert(std::regex_constants::error_brack != 0); in main()
46 assert(std::regex_constants::error_paren != 0); in main()
47 assert(std::regex_constants::error_brace != 0); in main()
48 assert(std::regex_constants::error_badbrace != 0); in main()
49 assert(std::regex_constants::error_range != 0); in main()
50 assert(std::regex_constants::error_space != 0); in main()
[all …]
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/
Dtuple_cat.pass.cpp30 std::tuple<> t = std::tuple_cat(); in main()
34 std::tuple<> t1; in main()
35 std::tuple<> t2 = std::tuple_cat(t1); in main()
39 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main()
43 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main()
47 std::tuple<int> t1(1); in main()
48 std::tuple<int> t = std::tuple_cat(t1); in main()
49 assert(std::get<0>(t) == 1); in main()
54 constexpr std::tuple<> t = std::tuple_cat(); in main()
58 constexpr std::tuple<> t1; in main()
[all …]
/external/libcxx/test/libcxx/atomics/
Ddiagnose_invalid_memory_order.fail.cpp24 std::atomic<int> x(42); in main()
25 volatile std::atomic<int>& vx = x; in main()
30 …x.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operation… in main()
31 …x.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operation… in main()
32 …vx.load(std::memory_order_release); // expected-warning {{memory order argument to atomic operatio… in main()
33 …vx.load(std::memory_order_acq_rel); // expected-warning {{memory order argument to atomic operatio… in main()
35 x.load(std::memory_order_relaxed); in main()
36 x.load(std::memory_order_consume); in main()
37 x.load(std::memory_order_acquire); in main()
38 x.load(std::memory_order_seq_cst); in main()
[all …]
/external/libcxx/test/std/utilities/meta/meta.logical/
Dconjunction.pass.cpp25 static_assert ( std::conjunction<>::value, "" ); in main()
26 static_assert ( std::conjunction<std::true_type >::value, "" ); in main()
27 static_assert (!std::conjunction<std::false_type>::value, "" ); in main()
29 static_assert ( std::conjunction_v<>, "" ); in main()
30 static_assert ( std::conjunction_v<std::true_type >, "" ); in main()
31 static_assert (!std::conjunction_v<std::false_type>, "" ); in main()
33 static_assert ( std::conjunction<std::true_type, std::true_type >::value, "" ); in main()
34 static_assert (!std::conjunction<std::true_type, std::false_type>::value, "" ); in main()
35 static_assert (!std::conjunction<std::false_type, std::true_type >::value, "" ); in main()
36 static_assert (!std::conjunction<std::false_type, std::false_type>::value, "" ); in main()
[all …]
Ddisjunction.pass.cpp25 static_assert (!std::disjunction<>::value, "" ); in main()
26 static_assert ( std::disjunction<std::true_type >::value, "" ); in main()
27 static_assert (!std::disjunction<std::false_type>::value, "" ); in main()
29 static_assert (!std::disjunction_v<>, "" ); in main()
30 static_assert ( std::disjunction_v<std::true_type >, "" ); in main()
31 static_assert (!std::disjunction_v<std::false_type>, "" ); in main()
33 static_assert ( std::disjunction<std::true_type, std::true_type >::value, "" ); in main()
34 static_assert ( std::disjunction<std::true_type, std::false_type>::value, "" ); in main()
35 static_assert ( std::disjunction<std::false_type, std::true_type >::value, "" ); in main()
36 static_assert (!std::disjunction<std::false_type, std::false_type>::value, "" ); in main()
[all …]
/external/libcxx/test/std/atomics/atomics.types.generic/
Dcstdint_typedefs.pass.cpp45 …static_assert((std::is_same<std::atomic< std::int_least8_t>, std::atomic_int_least8_t>::value),… in main()
46 …static_assert((std::is_same<std::atomic< std::uint_least8_t>, std::atomic_uint_least8_t>::value),… in main()
47 …static_assert((std::is_same<std::atomic< std::int_least16_t>, std::atomic_int_least16_t>::value),… in main()
48 …static_assert((std::is_same<std::atomic<std::uint_least16_t>, std::atomic_uint_least16_t>::value),… in main()
49 …static_assert((std::is_same<std::atomic< std::int_least32_t>, std::atomic_int_least32_t>::value),… in main()
50 …static_assert((std::is_same<std::atomic<std::uint_least32_t>, std::atomic_uint_least32_t>::value),… in main()
51 …static_assert((std::is_same<std::atomic< std::int_least64_t>, std::atomic_int_least64_t>::value),… in main()
52 …static_assert((std::is_same<std::atomic<std::uint_least64_t>, std::atomic_uint_least64_t>::value),… in main()
54 …static_assert((std::is_same<std::atomic< std::int_fast8_t>, std::atomic_int_fast8_t>::value), "… in main()
55 …static_assert((std::is_same<std::atomic< std::uint_fast8_t>, std::atomic_uint_fast8_t>::value), "… in main()
[all …]
/external/libcxx/test/std/re/re.const/re.matchflag/
Dmatch_flag_type.pass.cpp41 assert(std::regex_constants::match_default == 0); in main()
42 assert(std::regex_constants::match_not_bol != 0); in main()
43 assert(std::regex_constants::match_not_eol != 0); in main()
44 assert(std::regex_constants::match_not_bow != 0); in main()
45 assert(std::regex_constants::match_not_eow != 0); in main()
46 assert(std::regex_constants::match_any != 0); in main()
47 assert(std::regex_constants::match_not_null != 0); in main()
48 assert(std::regex_constants::match_continuous != 0); in main()
49 assert(std::regex_constants::match_prev_avail != 0); in main()
50 assert(std::regex_constants::format_default == 0); in main()
[all …]
/external/libcxx/test/std/re/re.traits/
Dlookup_classname.pass.cpp27 typename std::regex_traits<char_type>::char_class_type expected, in test()
30 typedef typename std::regex_traits<char_type>::char_class_type char_class_type; in test()
31 std::regex_traits<char_type> t; in test()
40 typename std::regex_traits<char_type>::char_class_type expected, in test_w()
43 typedef typename std::regex_traits<char_type>::char_class_type char_class_type; in test_w()
44 std::regex_traits<char_type> t; in test_w()
48 LIBCPP_ASSERT((expected | std::regex_traits<char_type>::__regex_word) == result); in test_w()
61 LIBCPP_ASSERT((std::ctype_base::space & std::regex_traits<char>::__regex_word) == 0); in main()
62 LIBCPP_ASSERT((std::ctype_base::print & std::regex_traits<char>::__regex_word) == 0); in main()
63 LIBCPP_ASSERT((std::ctype_base::cntrl & std::regex_traits<char>::__regex_word) == 0); in main()
[all …]
Dlookup_collatename.pass.cpp36 test(const char_type* A, const std::basic_string<char_type>& expected) in test()
38 std::regex_traits<char_type> t; in test()
45 test("NUL", std::string("\x00", 1)); in main()
46 test("alert", std::string("\x07")); in main()
47 test("backspace", std::string("\x08")); in main()
48 test("tab", std::string("\x09")); in main()
49 test("carriage-return", std::string("\x0D")); in main()
50 test("newline", std::string("\x0A")); in main()
51 test("vertical-tab", std::string("\x0B")); in main()
52 test("form-feed", std::string("\x0C")); in main()
[all …]
/external/deqp-deps/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc2 std::map<uint64_t, uint32_t> GetOpcodeAndNumOperandsHist() {
3 return std::map<uint64_t, uint32_t>({
76 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>>
78 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>> codecs;
80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
119 codecs.emplace(SpvOpImageSampleExplicitLod, std::move(codec));
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
182 codecs.emplace(SpvOpFDiv, std::move(codec));
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
209 codecs.emplace(SpvOpSampledImage, std::move(codec));
[all …]
/external/swiftshader/third_party/SPIRV-Tools/tools/comp/
Dmarkv_model_shader_default_autogen.inc2 std::map<uint64_t, uint32_t> GetOpcodeAndNumOperandsHist() {
3 return std::map<uint64_t, uint32_t>({
76 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>>
78 std::map<uint32_t, std::unique_ptr<HuffmanCodec<uint64_t>>> codecs;
80 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(35, {
119 codecs.emplace(SpvOpImageSampleExplicitLod, std::move(codec));
123 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(55, {
182 codecs.emplace(SpvOpFDiv, std::move(codec));
186 std::unique_ptr<HuffmanCodec<uint64_t>> codec(new HuffmanCodec<uint64_t>(19, {
209 codecs.emplace(SpvOpSampledImage, std::move(codec));
[all …]
/external/libcxx/test/std/re/re.const/re.synopt/
Dsyntax_option_type.pass.cpp38 assert(std::regex_constants::icase != 0); in main()
39 assert(std::regex_constants::nosubs != 0); in main()
40 assert(std::regex_constants::optimize != 0); in main()
41 assert(std::regex_constants::collate != 0); in main()
42 assert(std::regex_constants::ECMAScript == 0); in main()
43 assert(std::regex_constants::basic != 0); in main()
44 assert(std::regex_constants::extended != 0); in main()
45 assert(std::regex_constants::awk != 0); in main()
46 assert(std::regex_constants::grep != 0); in main()
47 assert(std::regex_constants::egrep != 0); in main()
[all …]
/external/libcxx/test/std/language.support/cstdint/cstdint.syn/
Dcstdint.pass.cpp25 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8, in main()
27 static_assert(std::is_signed<std::int8_t>::value, in main()
30 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16, in main()
32 static_assert(std::is_signed<std::int16_t>::value, in main()
35 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32, in main()
37 static_assert(std::is_signed<std::int32_t>::value, in main()
40 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64, in main()
42 static_assert(std::is_signed<std::int64_t>::value, in main()
46 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8, in main()
48 static_assert(std::is_unsigned<std::uint8_t>::value, in main()
[all …]
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Daligned_storage.pass.cpp24 typedef std::aligned_storage<10, 1 >::type T1; in main()
26 static_assert(std::is_same<std::aligned_storage_t<10, 1>, T1>::value, ""); in main()
29 static_assert(std::is_pod<T1>::value, ""); in main()
31 static_assert(std::is_trivial<T1>::value, ""); in main()
32 static_assert(std::is_standard_layout<T1>::value, ""); in main()
33 static_assert(std::alignment_of<T1>::value == 1, ""); in main()
37 typedef std::aligned_storage<10, 2 >::type T1; in main()
39 static_assert(std::is_same<std::aligned_storage_t<10, 2>, T1>::value, ""); in main()
42 static_assert(std::is_pod<T1>::value, ""); in main()
44 static_assert(std::is_trivial<T1>::value, ""); in main()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkApiExtensionDependencyInfo.inl6 static const std::pair<const char*, const char*> instanceExtensionDependencies_1_0[] =
8 std::make_pair("VK_EXT_acquire_xlib_display", "VK_EXT_direct_mode_display"),
9 std::make_pair("VK_EXT_direct_mode_display", "VK_KHR_display"),
10 std::make_pair("VK_EXT_display_surface_counter", "VK_KHR_display"),
11 std::make_pair("VK_EXT_swapchain_colorspace", "VK_KHR_surface"),
12 std::make_pair("VK_KHR_android_surface", "VK_KHR_surface"),
13 std::make_pair("VK_KHR_display", "VK_KHR_surface"),
14 std::make_pair("VK_KHR_external_fence_capabilities", "VK_KHR_get_physical_device_properties2"),
15 std::make_pair("VK_KHR_external_memory_capabilities", "VK_KHR_get_physical_device_properties2"),
16 std::make_pair("VK_KHR_external_semaphore_capabilities", "VK_KHR_get_physical_device_properties2"),
[all …]
/external/libcxx/test/std/input.output/iostream.forward/
Diosfwd.pass.cpp23 test<std::char_traits<char>* >(); in main()
24 test<std::char_traits<wchar_t>* >(); in main()
25 test<std::char_traits<unsigned short>*>(); in main()
27 test<std::basic_ios<char>* >(); in main()
28 test<std::basic_ios<wchar_t>* >(); in main()
29 test<std::basic_ios<unsigned short>*>(); in main()
31 test<std::basic_streambuf<char>* >(); in main()
32 test<std::basic_streambuf<wchar_t>* >(); in main()
33 test<std::basic_streambuf<unsigned short>*>(); in main()
35 test<std::basic_istream<char>* >(); in main()
[all …]
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.virtuals/
Dseekoff.pass.cpp24 std::stringbuf sb(std::ios_base::in); in main()
25 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::out) == -1); in main()
26 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::out) == -1); in main()
27 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::out) == -1); in main()
28 assert(sb.pubseekoff(3, std::ios_base::beg, std::ios_base::in | std::ios_base::out) == -1); in main()
29 assert(sb.pubseekoff(3, std::ios_base::cur, std::ios_base::in | std::ios_base::out) == -1); in main()
30 assert(sb.pubseekoff(-3, std::ios_base::end, std::ios_base::in | std::ios_base::out) == -1); in main()
31 assert(sb.pubseekoff(0, std::ios_base::beg, std::ios_base::in) == 0); in main()
32 assert(sb.pubseekoff(0, std::ios_base::cur, std::ios_base::in) == 0); in main()
33 assert(sb.pubseekoff(0, std::ios_base::end, std::ios_base::in) == 0); in main()
[all …]
/external/swiftshader/third_party/LLVM/tools/bugpoint/
DToolRunner.h42 std::vector<std::string> gccArgs; // GCC-specific arguments.
44 const std::vector<std::string> *GCCArgs) in GCC()
51 static GCC *create(std::string &Message,
52 const std::string &GCCBinary,
53 const std::vector<std::string> *Args);
62 int ExecuteProgram(const std::string &ProgramFile,
63 const std::vector<std::string> &Args,
65 const std::string &InputFile,
66 const std::string &OutputFile,
67 std::string *Error = 0,
[all …]

12345678910>>...482