/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/ |
D | is_heap_comp.pass.cpp | 24 assert(std::is_heap(i1, i1, std::greater<int>())); in test() 25 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test() 28 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test() 29 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test() 30 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test() 38 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test() 39 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test() 40 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test() 41 …assert(std::is_heap(i7, i7+3, std::greater<int>()) == (std::is_heap_until(i7, i7+3, std::greater<i… in test() 42 …assert(std::is_heap(i8, i8+3, std::greater<int>()) == (std::is_heap_until(i8, i8+3, std::greater<i… in test() [all …]
|
D | is_heap_until_comp.pass.cpp | 24 assert(std::is_heap_until(i1, i1, std::greater<int>()) == i1); in test() 25 assert(std::is_heap_until(i1, i1+1, std::greater<int>()) == i1+1); in test() 28 assert(std::is_heap_until(i1, i1+2, std::greater<int>()) == i1+2); in test() 29 assert(std::is_heap_until(i2, i2+2, std::greater<int>()) == i2+2); in test() 30 assert(std::is_heap_until(i3, i3+2, std::greater<int>()) == i3+1); in test() 38 assert(std::is_heap_until(i4, i4+3, std::greater<int>()) == i4+3); in test() 39 assert(std::is_heap_until(i5, i5+3, std::greater<int>()) == i5+3); in test() 40 assert(std::is_heap_until(i6, i6+3, std::greater<int>()) == i6+3); in test() 41 assert(std::is_heap_until(i7, i7+3, std::greater<int>()) == i7+3); in test() 42 assert(std::is_heap_until(i8, i8+3, std::greater<int>()) == i8+1); in test() [all …]
|
D | is_heap.pass.cpp | 23 assert(std::is_heap(i1, i1)); in test() 24 assert(std::is_heap(i1, i1+1) == (std::is_heap_until(i1, i1+1) == i1+1)); in test() 27 assert(std::is_heap(i1, i1+2) == (std::is_heap_until(i1, i1+2) == i1+2)); in test() 28 assert(std::is_heap(i2, i2+2) == (std::is_heap_until(i2, i2+2) == i2+2)); in test() 29 assert(std::is_heap(i3, i3+2) == (std::is_heap_until(i3, i3+2) == i3+2)); in test() 37 assert(std::is_heap(i4, i4+3) == (std::is_heap_until(i4, i4+3) == i4+3)); in test() 38 assert(std::is_heap(i5, i5+3) == (std::is_heap_until(i5, i5+3) == i5+3)); in test() 39 assert(std::is_heap(i6, i6+3) == (std::is_heap_until(i6, i6+3) == i6+3)); in test() 40 assert(std::is_heap(i7, i7+3) == (std::is_heap_until(i7, i7+3) == i7+3)); in test() 41 assert(std::is_heap(i8, i8+3) == (std::is_heap_until(i8, i8+3) == i8+3)); in test() [all …]
|
/external/libcxx/test/std/numerics/c.math/ |
D | cmath.pass.cpp | 31 struct Ambiguous : std::true_type { // ADL 105 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); in test_abs() 106 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); in test_abs() 107 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); in test_abs() 108 static_assert((std::is_same<decltype(abs(Ambiguous())), Ambiguous>::value), ""); in test_abs() 109 assert(std::abs(-1.) == 1); in test_abs() 114 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); in test_acos() 115 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); in test_acos() 116 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); in test_acos() 117 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); in test_acos() [all …]
|
/external/libcxx/test/std/numerics/complex.number/ |
D | cases.h | 20 std::complex<double> x[] = 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/ |
D | error_type.pass.cpp | 40 assert(std::regex_constants::error_collate != 0); in main() 41 assert(std::regex_constants::error_ctype != 0); in main() 42 assert(std::regex_constants::error_escape != 0); in main() 43 assert(std::regex_constants::error_backref != 0); in main() 44 assert(std::regex_constants::error_brack != 0); in main() 45 assert(std::regex_constants::error_paren != 0); in main() 46 assert(std::regex_constants::error_brace != 0); in main() 47 assert(std::regex_constants::error_badbrace != 0); in main() 48 assert(std::regex_constants::error_range != 0); in main() 49 assert(std::regex_constants::error_space != 0); in main() [all …]
|
/external/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.creation/ |
D | tuple_cat.pass.cpp | 29 std::tuple<> t = std::tuple_cat(); in main() 33 std::tuple<> t1; in main() 34 std::tuple<> t2 = std::tuple_cat(t1); in main() 38 std::tuple<> t = std::tuple_cat(std::tuple<>()); in main() 42 std::tuple<> t = std::tuple_cat(std::array<int, 0>()); in main() 46 std::tuple<int> t1(1); in main() 47 std::tuple<int> t = std::tuple_cat(t1); in main() 48 assert(std::get<0>(t) == 1); in main() 53 constexpr std::tuple<> t = std::tuple_cat(); in main() 57 constexpr std::tuple<> t1; in main() [all …]
|
/external/libcxx/test/std/atomics/atomics.types.generic/ |
D | cstdint_typedefs.pass.cpp | 45 …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/ |
D | match_flag_type.pass.cpp | 40 assert(std::regex_constants::match_default == 0); in main() 41 assert(std::regex_constants::match_not_bol != 0); in main() 42 assert(std::regex_constants::match_not_eol != 0); in main() 43 assert(std::regex_constants::match_not_bow != 0); in main() 44 assert(std::regex_constants::match_not_eow != 0); in main() 45 assert(std::regex_constants::match_any != 0); in main() 46 assert(std::regex_constants::match_not_null != 0); in main() 47 assert(std::regex_constants::match_continuous != 0); in main() 48 assert(std::regex_constants::match_prev_avail != 0); in main() 49 assert(std::regex_constants::format_default == 0); in main() [all …]
|
/external/libcxx/test/std/re/re.traits/ |
D | lookup_collatename.pass.cpp | 32 test(const char_type* A, const std::basic_string<char_type>& expected) in test() 34 std::regex_traits<char_type> t; in test() 41 test("NUL", std::string("\x00", 1)); in main() 42 test("alert", std::string("\x07")); in main() 43 test("backspace", std::string("\x08")); in main() 44 test("tab", std::string("\x09")); in main() 45 test("carriage-return", std::string("\x0D")); in main() 46 test("newline", std::string("\x0A")); in main() 47 test("vertical-tab", std::string("\x0B")); in main() 48 test("form-feed", std::string("\x0C")); in main() [all …]
|
D | lookup_classname.pass.cpp | 26 typename std::regex_traits<char_type>::char_class_type expected, in test() 29 std::regex_traits<char_type> t; in test() 36 test("d", std::ctype_base::digit); in main() 37 test("D", std::ctype_base::digit); in main() 38 test("d", std::ctype_base::digit, true); in main() 39 test("D", std::ctype_base::digit, true); in main() 41 test("w", std::regex_traits<char>::__regex_word | std::ctype_base::alnum in main() 42 | std::ctype_base::upper | std::ctype_base::lower); in main() 43 test("W", std::regex_traits<char>::__regex_word | std::ctype_base::alnum in main() 44 | std::ctype_base::upper | std::ctype_base::lower); in main() [all …]
|
/external/libcxx/test/std/strings/c.strings/ |
D | cwchar.pass.cpp | 33 std::mbstate_t mb = {0}; in main() 34 std::size_t s = 0; in main() 35 std::tm *tm = 0; in main() 36 std::wint_t w = 0; in main() 45 static_assert((std::is_same<decltype(std::fwprintf(fp, L"")), int>::value), ""); in main() 46 static_assert((std::is_same<decltype(std::fwscanf(fp, L"")), int>::value), ""); in main() 47 static_assert((std::is_same<decltype(std::swprintf(ws, s, L"")), int>::value), ""); in main() 48 static_assert((std::is_same<decltype(std::swscanf(L"", L"")), int>::value), ""); in main() 49 static_assert((std::is_same<decltype(std::vfwprintf(fp, L"", va)), int>::value), ""); in main() 50 static_assert((std::is_same<decltype(std::vfwscanf(fp, L"", va)), int>::value), ""); in main() [all …]
|
/external/libcxx/test/std/re/re.const/re.synopt/ |
D | syntax_option_type.pass.cpp | 37 assert(std::regex_constants::icase != 0); in main() 38 assert(std::regex_constants::nosubs != 0); in main() 39 assert(std::regex_constants::optimize != 0); in main() 40 assert(std::regex_constants::collate != 0); in main() 41 assert(std::regex_constants::ECMAScript == 0); in main() 42 assert(std::regex_constants::basic != 0); in main() 43 assert(std::regex_constants::extended != 0); in main() 44 assert(std::regex_constants::awk != 0); in main() 45 assert(std::regex_constants::grep != 0); in main() 46 assert(std::regex_constants::egrep != 0); in main() [all …]
|
/external/libcxx/test/std/language.support/cstdint/cstdint.syn/ |
D | cstdint.pass.cpp | 25 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/input.output/iostream.forward/ |
D | iosfwd.pass.cpp | 18 std::char_traits<char>* t1 = 0; in main() 19 std::char_traits<wchar_t>* t2 = 0; in main() 20 std::char_traits<unsigned short>* t3 = 0; in main() 23 std::basic_ios<char>* t1 = 0; in main() 24 std::basic_ios<wchar_t>* t2 = 0; in main() 25 std::basic_ios<unsigned short>* t3 = 0; in main() 28 std::basic_streambuf<char>* t1 = 0; in main() 29 std::basic_streambuf<wchar_t>* t2 = 0; in main() 30 std::basic_streambuf<unsigned short>* t3 = 0; in main() 33 std::basic_istream<char>* t1 = 0; in main() [all …]
|
/external/gemmlowp/meta/ |
D | single_thread_gemm.h | 28 void zip_1x8_aligned(const std::uint8_t* source, std::int32_t count, in zip_1x8_aligned() 29 std::int32_t stride, std::uint8_t* destination, in zip_1x8_aligned() 30 std::int32_t multiplicative_offset, in zip_1x8_aligned() 31 std::int32_t additive_offset) { in zip_1x8_aligned() 62 void zip_1x8_1_aligned(const std::uint8_t* source, std::int32_t count, in zip_1x8_1_aligned() 63 std::int32_t stride, std::uint8_t* destination, in zip_1x8_1_aligned() 64 std::int32_t multiplicative_offset, in zip_1x8_1_aligned() 65 std::int32_t additive_offset) { in zip_1x8_1_aligned() 103 void zip_1x8_2_aligned(const std::uint8_t* source, std::int32_t count, in zip_1x8_2_aligned() 104 std::int32_t stride, std::uint8_t* destination, in zip_1x8_2_aligned() [all …]
|
D | multi_thread_gemm.h | 30 const std::int32_t kMaxCacheFriendlySize = 24 * 1024; 33 void CacheFriendlyMatrixMatrix(std::uint8_t* scratch, const IN_TYPE* lhs, in CacheFriendlyMatrixMatrix() 34 const IN_TYPE* rhs, std::int32_t m, in CacheFriendlyMatrixMatrix() 35 std::int32_t n, std::int32_t k, OUT_TYPE* result, in CacheFriendlyMatrixMatrix() 36 std::int32_t result_stride, const F& operation) { in CacheFriendlyMatrixMatrix() 37 const std::int32_t rhs_size = n * k * sizeof(IN_TYPE); in CacheFriendlyMatrixMatrix() 39 const std::int32_t optimal_n = in CacheFriendlyMatrixMatrix() 40 std::max(1, 3 * (kMaxCacheFriendlySize / (k * 3))); in CacheFriendlyMatrixMatrix() 41 const std::int32_t chunks_count_less_one = n / optimal_n - 1; in CacheFriendlyMatrixMatrix() 42 const std::int32_t chunk_size = optimal_n * k; in CacheFriendlyMatrixMatrix() [all …]
|
/external/libcxx/test/std/language.support/support.runtime/ |
D | cstdlib.pass.cpp | 40 static_assert((std::is_same<decltype(obj.quot), IntType>::value), ""); in test_div_struct() 41 static_assert((std::is_same<decltype(obj.rem), IntType>::value), ""); in test_div_struct() 47 std::size_t s = 0; in main() 49 static_assert((std::is_same<std::size_t, decltype(sizeof(int))>::value), ""); in main() 50 test_div_struct<std::div_t, int>(); in main() 51 test_div_struct<std::ldiv_t, long>(); in main() 52 test_div_struct<std::lldiv_t, long long>(); in main() 54 static_assert((std::is_same<decltype(std::atof("")), double>::value), ""); in main() 55 static_assert((std::is_same<decltype(std::atoi("")), int>::value), ""); in main() 56 static_assert((std::is_same<decltype(std::atol("")), long>::value), ""); in main() [all …]
|
/external/dng_sdk/source/ |
D | dng_safe_arithmetic.cpp | 32 if ((arg1 >= 0 && arg2 <= std::numeric_limits<T>::max() - arg1) || in SafeAdd() 33 (arg1 < 0 && arg2 >= std::numeric_limits<T>::min() - arg1)) { in SafeAdd() 46 if (arg1 == 0 || arg2 <= std::numeric_limits<T>::max() / arg1) { in SafeUnsignedMult() 56 bool SafeInt32Add(std::int32_t arg1, std::int32_t arg2, std::int32_t *result) { in SafeInt32Add() 65 std::int32_t SafeInt32Add(std::int32_t arg1, std::int32_t arg2) { in SafeInt32Add() 66 return SafeAdd<std::int32_t>(arg1, arg2); in SafeInt32Add() 69 std::int64_t SafeInt64Add(std::int64_t arg1, std::int64_t arg2) { in SafeInt64Add() 70 return SafeAdd<std::int64_t>(arg1, arg2); in SafeInt64Add() 73 bool SafeUint32Add(std::uint32_t arg1, std::uint32_t arg2, in SafeUint32Add() 74 std::uint32_t *result) { in SafeUint32Add() [all …]
|
D | dng_safe_arithmetic.h | 40 bool SafeInt32Add(std::int32_t arg1, std::int32_t arg2, std::int32_t *result); 45 std::int32_t SafeInt32Add(std::int32_t arg1, std::int32_t arg2); 46 std::int64_t SafeInt64Add(std::int64_t arg1, std::int64_t arg2); 51 bool SafeUint32Add(std::uint32_t arg1, std::uint32_t arg2, 52 std::uint32_t *result); 57 std::uint32_t SafeUint32Add(std::uint32_t arg1, std::uint32_t arg2); 58 std::uint64_t SafeUint64Add(std::uint64_t arg1, std::uint64_t arg2); 63 bool SafeInt32Sub(std::int32_t arg1, std::int32_t arg2, std::int32_t *result); 68 std::int32_t SafeInt32Sub(std::int32_t arg1, std::int32_t arg2); 73 std::uint32_t SafeUint32Sub(std::uint32_t arg1, std::uint32_t arg2); [all …]
|
/external/parameter-framework/upstream/bindings/python/ |
D | pfw.i | 52 namespace std { 58 %apply std::string &OUTPUT { std::string& strError }; 77 CParameterMgrFullConnector(const std::string& strConfigurationFilePath); 79 bool start(std::string& strError); 84 ISelectionCriterionInterface* createSelectionCriterion(const std::string& strName, 86 ISelectionCriterionInterface* getSelectionCriterion(const std::string& strName); 94 bool setFailureOnMissingSubsystem(bool bFail, std::string& strError); 97 bool setFailureOnFailedSettingsLoad(bool bFail, std::string& strError); 100 void setSchemaUri(const std::string& schemaUri); 101 const std::string& getSchemaUri() const; [all …]
|
/external/libcxx/test/std/localization/locales/locale/locale.cons/ |
D | char_pointer.pass.cpp | 26 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 29 return std::malloc(s); in operator new() 35 std::free(p); in operator delete() 38 void check(const std::locale& loc) in check() 40 assert(std::has_facet<std::collate<char> >(loc)); in check() 41 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 43 assert(std::has_facet<std::ctype<char> >(loc)); in check() 44 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 45 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 46 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_facetptr.pass.cpp | 25 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 28 return std::malloc(s); in operator new() 34 std::free(p); in operator delete() 37 void check(const std::locale& loc) in check() 39 assert(std::has_facet<std::collate<char> >(loc)); in check() 40 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 42 assert(std::has_facet<std::ctype<char> >(loc)); in check() 43 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 44 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 45 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
D | locale_locale_cat.pass.cpp | 26 void* operator new(std::size_t s) throw(std::bad_alloc) in operator new() 29 return std::malloc(s); in operator new() 35 std::free(p); in operator delete() 38 void check(const std::locale& loc) in check() 40 assert(std::has_facet<std::collate<char> >(loc)); in check() 41 assert(std::has_facet<std::collate<wchar_t> >(loc)); in check() 43 assert(std::has_facet<std::ctype<char> >(loc)); in check() 44 assert(std::has_facet<std::ctype<wchar_t> >(loc)); in check() 45 assert((std::has_facet<std::codecvt<char, char, std::mbstate_t> >(loc))); in check() 46 assert((std::has_facet<std::codecvt<char16_t, char, std::mbstate_t> >(loc))); in check() [all …]
|
/external/libcxx/test/std/input.output/file.streams/c.files/ |
D | cstdio.pass.cpp | 86 std::FILE* fp = 0; in main() 87 std::fpos_t fpos = {0}; in main() 88 std::size_t s = 0; in main() 90 std::va_list va; in main() 91 static_assert((std::is_same<decltype(std::fclose(fp)), int>::value), ""); in main() 92 static_assert((std::is_same<decltype(std::fflush(fp)), int>::value), ""); in main() 93 static_assert((std::is_same<decltype(std::setbuf(fp,cp)), void>::value), ""); in main() 94 static_assert((std::is_same<decltype(std::vfprintf(fp,"",va)), int>::value), ""); in main() 95 static_assert((std::is_same<decltype(std::fprintf(fp," ")), int>::value), ""); in main() 96 static_assert((std::is_same<decltype(std::fscanf(fp,"")), int>::value), ""); in main() [all …]
|