/third_party/mesa3d/src/gtest/include/gtest/ |
D | gtest_pred_impl.h | 135 const T2& v2) { in AssertPred2Helper() argument 136 if (pred(v1, v2)) return AssertionSuccess(); in AssertPred2Helper() 143 << e2 << " evaluates to " << ::testing::PrintToString(v2); in AssertPred2Helper() 148 #define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)\ argument 149 GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ 154 #define GTEST_PRED2_(pred, v1, v2, on_failure)\ argument 157 #v2, \ 160 v2), on_failure) 163 #define EXPECT_PRED_FORMAT2(pred_format, v1, v2) \ argument 164 GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) [all …]
|
/third_party/googletest/googletest/include/gtest/ |
D | gtest_pred_impl.h | 135 const T2& v2) { in AssertPred2Helper() argument 136 if (pred(v1, v2)) return AssertionSuccess(); in AssertPred2Helper() 143 << e2 << " evaluates to " << ::testing::PrintToString(v2); in AssertPred2Helper() 148 #define GTEST_PRED_FORMAT2_(pred_format, v1, v2, on_failure)\ argument 149 GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \ 154 #define GTEST_PRED2_(pred, v1, v2, on_failure)\ argument 157 #v2, \ 160 v2), on_failure) 163 #define EXPECT_PRED_FORMAT2(pred_format, v1, v2) \ argument 164 GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_) [all …]
|
/third_party/boost/boost/units/detail/ |
D | cmath_impl.hpp | 22 inline bool isgreater BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 24 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 25 else return v1 > v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 29 inline bool isgreaterequal BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 31 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 32 else return v1 >= v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 36 inline bool isless BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument 38 if((boost::math::isnan)(v1) || (boost::math::isnan)(v2)) return false; in BOOST_PREVENT_MACRO_SUBSTITUTION() 39 else return v1 < v2; in BOOST_PREVENT_MACRO_SUBSTITUTION() 43 inline bool islessequal BOOST_PREVENT_MACRO_SUBSTITUTION(const Y& v1,const Y& v2) in BOOST_PREVENT_MACRO_SUBSTITUTION() argument [all …]
|
/third_party/boost/libs/variant/test/ |
D | auto_visitors.cpp | 89 variant_type v2("10"), v1("100"); in run_explicit() local 94 BOOST_TEST(boost::apply_visitor(visitor_ref, v2).c_str() == std::string("10")); in run_explicit() 95 BOOST_TEST(boost::apply_visitor(visitor_ref, v2, v1).c_str() == std::string("100")); in run_explicit() 177 std::string& operator()(const T1& v1, const T2& v2) { in operator ()() 178 res = boost::lexical_cast<std::string>(v1) + "+" + boost::lexical_cast<std::string>(v2); in operator ()() 184 std::string& operator()(const T1& v1, const T2& v2, const T3& v3) { in operator ()() 185 res = boost::lexical_cast<std::string>(v1) + "+" + boost::lexical_cast<std::string>(v2) in operator ()() 200 variant_type v1(1), v2("10"), v3(100.0); in run() local 205 BOOST_TEST(boost::apply_visitor(lex_streamer(), v2) == "10"); in run() 206 BOOST_TEST_IF_HAS_VARIADIC(boost::apply_visitor(lex_streamer_visitor)(v2) == "10"); in run() [all …]
|
D | variant_nonempty_check.cpp | 263 boost::variant<Nonthrowing, throwing_class> v1, v2; in check_3_impl() local 265 swap(v1, v2); in check_3_impl() 277 v2 = throwing_class(helper); in check_3_impl() 278 BOOST_TEST(v2.which() == 1); in check_3_impl() 279 BOOST_TEST(boost::get<throwing_class>(&v2)); in check_3_impl() 281 BOOST_TEST(!v2.which()); in check_3_impl() 282 BOOST_TEST(boost::get<Nonthrowing>(&v2)); in check_3_impl() 286 if (!v1.which() && !v2.which()) { in check_3_impl() 287 swap(v1, v2); // Make sure that two backup holders swap well in check_3_impl() 290 BOOST_TEST(!v2.which()); in check_3_impl() [all …]
|
/third_party/boost/libs/beast/test/beast/core/ |
D | _detail_variant.cpp | 141 variant<std::string> v2{std::move(v1)}; in testVariant() local 143 BEAST_EXPECT(v2.index() == 0); in testVariant() 144 v2.emplace<1>("Hello"); in testVariant() 145 BEAST_EXPECT(v2.get<1>() == "Hello"); in testVariant() 146 variant<std::string> v3{std::move(v2)}; in testVariant() 147 BEAST_EXPECT(v2.index() == 0); in testVariant() 156 variant<Q<1>> v2{std::move(v1)}; in testVariant() local 159 BEAST_EXPECT(v2.get<1>().move); in testVariant() 171 variant<Q<1>, Q<2>, Q<3>> v2{std::move(v1)}; in testVariant() local 175 BEAST_EXPECT(v2.get<2>().move); in testVariant() [all …]
|
/third_party/boost/libs/math/test/compile_test/ |
D | instantiate.hpp | 165 RealType v1(0.5), v2(0.5), v3(0.5); in instantiate() local 176 boost::math::tgamma_ratio(v1, v2); in instantiate() 177 boost::math::tgamma_delta_ratio(v1, v2); in instantiate() 184 boost::math::tgamma(v1, v2); in instantiate() 185 boost::math::tgamma_lower(v1, v2); in instantiate() 186 boost::math::gamma_p(v1, v2); in instantiate() 187 boost::math::gamma_q(v1, v2); in instantiate() 188 boost::math::gamma_p_inv(v1, v2); in instantiate() 189 boost::math::gamma_q_inv(v1, v2); in instantiate() 190 boost::math::gamma_p_inva(v1, v2); in instantiate() [all …]
|
/third_party/boost/libs/numeric/ublas/test/ |
D | test71.cpp | 22 void test_with (VP &v1, VP &v2, VP &v3) const { in test_with() 30 initialize_vector (v2); in test_with() 31 v1 = v2; in test_with() 33 v1.assign_temporary (v2); in test_with() 35 v1.swap (v2); in test_with() 36 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 41 v1 = v2; in test_with() 45 v2 = - v1; in test_with() 46 std::cout << "- v1 = " << v2 << std::endl; in test_with() 47 v2 = ublas::conj (v1); in test_with() [all …]
|
D | test11.cpp | 30 void test_expression_with (VP &v1, VP &v2, VP &v3) const { in test_expression_with() 41 initialize_vector (v2); in test_expression_with() 42 v1 = v2; in test_expression_with() 44 v1.assign_temporary (v2); in test_expression_with() 46 v1.swap (v2); in test_expression_with() 47 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_expression_with() 52 v1 = v2; in test_expression_with() 57 initialize_vector (v2); in test_expression_with() 58 project (v1, ublas::range(0,1)) = project (v2, ublas::range(0,1)); in test_expression_with() 59 project (v1, ublas::range(0,1)) = project (v2, ublas::slice(0,1,1)); in test_expression_with() [all …]
|
D | test31.cpp | 23 void test_with (VP &v1, VP &v2, VP &v3) const { in test_with() 34 initialize_vector (v2); in test_with() 35 v1 = v2; in test_with() 37 v1.assign_temporary (v2); in test_with() 39 v1.swap (v2); in test_with() 40 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 45 v1 = v2; in test_with() 50 initialize_vector (v2); in test_with() 51 project (v1, ublas::range(0,1)) = project (v2, ublas::range(0,1)); in test_with() 52 project (v1, ublas::range(0,1)) = project (v2, ublas::slice(0,1,1)); in test_with() [all …]
|
/third_party/boost/libs/multiprecision/test/ublas_interop/ |
D | test11.cpp | 36 void test_expression_with(VP& v1, VP& v2, VP& v3) const in test_expression_with() 48 initialize_vector(v2); in test_expression_with() 49 v1 = v2; in test_expression_with() 51 v1.assign_temporary(v2); in test_expression_with() 53 v1.swap(v2); in test_expression_with() 54 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_expression_with() 59 v1 = v2; in test_expression_with() 64 initialize_vector(v2); in test_expression_with() 65 project(v1, ublas::range(0, 1)) = project(v2, ublas::range(0, 1)); in test_expression_with() 66 project(v1, ublas::range(0, 1)) = project(v2, ublas::slice(0, 1, 1)); in test_expression_with() [all …]
|
D | test31.cpp | 28 void test_with(VP& v1, VP& v2, VP& v3) const in test_with() 40 initialize_vector(v2); in test_with() 41 v1 = v2; in test_with() 43 v1.assign_temporary(v2); in test_with() 45 v1.swap(v2); in test_with() 46 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 51 v1 = v2; in test_with() 56 initialize_vector(v2); in test_with() 57 project(v1, ublas::range(0, 1)) = project(v2, ublas::range(0, 1)); in test_with() 58 project(v1, ublas::range(0, 1)) = project(v2, ublas::slice(0, 1, 1)); in test_with() [all …]
|
D | test71.cpp | 31 void test_with(VP& v1, VP& v2, VP& v3) const in test_with() 40 initialize_vector(v2); in test_with() 41 v1 = v2; in test_with() 43 v1.assign_temporary(v2); in test_with() 45 v1.swap(v2); in test_with() 46 std::cout << "v1.swap (v2) = " << v1 << " " << v2 << std::endl; in test_with() 51 v1 = v2; in test_with() 55 v2 = -v1; in test_with() 56 std::cout << "- v1 = " << v2 << std::endl; in test_with() 57 v2 = ublas::conj(v1); in test_with() [all …]
|
/third_party/boost/libs/graph/example/ |
D | isomorphism.cpp | 30 std::vector< graph_traits< graph_t >::vertex_descriptor > v1(n), v2(n); in main() local 47 v2[id] = *i; in main() 62 add_edge(v2[9], v2[10], g2); in main() 63 add_edge(v2[10], v2[11], g2); in main() 64 add_edge(v2[11], v2[9], g2); in main() 65 add_edge(v2[0], v2[1], g2); in main() 66 add_edge(v2[1], v2[3], g2); in main() 67 add_edge(v2[3], v2[2], g2); in main() 68 add_edge(v2[2], v2[0], g2); in main() 69 add_edge(v2[4], v2[5], g2); in main() [all …]
|
/third_party/boost/libs/test/test/writing-test-ts/ |
D | test_tools-test.cpp | 738 std::vector<int> v2 = v; in TEST_CASE() local 746 BOOST_TEST( v != v2 ); in TEST_CASE() 941 std::vector<double> v1(3, d1), v2(3, d2), v3(3, d2); in TEST_CASE() local 946 BOOST_TEST( v1 == v2, tt::tolerance( 1e-3 ) ); in TEST_CASE() 949 BOOST_TEST( v1 == v2, tt::tolerance( 1e-3 ) << tt::per_element() ); in TEST_CASE() 951 BOOST_TEST( v1 <= v2, tt::tolerance( 1e-3 ) << tt::per_element() ); in TEST_CASE() 952 BOOST_TEST( v1 < v2, tt::tolerance( 1e-3 ) << tt::per_element() ); in TEST_CASE() 953 BOOST_TEST( v1 <= v2, tt::tolerance( 1e-2 ) << tt::per_element() ); // high tolerance in TEST_CASE() 954 BOOST_TEST( v1 < v2, tt::tolerance( 1e-2 ) << tt::per_element() ); in TEST_CASE() 958 …ST_TEST( v1 == v2, tt::tolerance( 1e-3 ) << "'custom error message v1 == v2 tolerance<doubl… in TEST_CASE() [all …]
|
/third_party/boost/libs/variant2/test/ |
D | variant_convert_construct.cpp | 65 variant<int, float> v2( v ); in main() local 67 BOOST_TEST( holds_alternative<int>( v2 ) ); in main() 68 BOOST_TEST_EQ( get<int>( v ), get<int>( v2 ) ); in main() 73 BOOST_TEST_EQ( get<int>( v2 ), get<int>( v3 ) ); in main() 79 variant<int, float> v2( v ); in main() local 81 BOOST_TEST( holds_alternative<int>( v2 ) ); in main() 82 BOOST_TEST_EQ( get<int>( v ), get<int>( v2 ) ); in main() 87 BOOST_TEST_EQ( get<int>( v2 ), get<int>( v3 ) ); in main() 93 variant<int const, float> v2( v ); in main() local 95 BOOST_TEST( holds_alternative<int const>( v2 ) ); in main() [all …]
|
/third_party/ffmpeg/libavcodec/aarch64/ |
D | h264pred_neon.S | 118 ld1 {v2.8b}, [x2], x1 124 uaddl v7.8h, v2.8b, v3.8b 125 usubl v2.8h, v2.8b, v0.8b 128 mul v2.8h, v2.8h, v0.8h 130 addp v2.8h, v2.8h, v3.8h 131 addp v2.8h, v2.8h, v2.8h 132 addp v2.4h, v2.4h, v2.4h 133 sshll v3.4s, v2.4h, #2 134 saddw v2.4s, v3.4s, v2.4h 135 rshrn v4.4h, v2.4s, #6 [all …]
|
/third_party/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_winsys.h | 147 caps->caps.v2.min_aliased_point_size = 1.f; in virgl_ws_fill_new_caps_defaults() 148 caps->caps.v2.max_aliased_point_size = 255.f; in virgl_ws_fill_new_caps_defaults() 149 caps->caps.v2.min_smooth_point_size = 1.f; in virgl_ws_fill_new_caps_defaults() 150 caps->caps.v2.max_smooth_point_size = 190.f; in virgl_ws_fill_new_caps_defaults() 151 caps->caps.v2.min_aliased_line_width = 1.f; in virgl_ws_fill_new_caps_defaults() 152 caps->caps.v2.max_aliased_line_width = 10.f; in virgl_ws_fill_new_caps_defaults() 153 caps->caps.v2.min_smooth_line_width = 0.f; in virgl_ws_fill_new_caps_defaults() 154 caps->caps.v2.max_smooth_line_width = 10.f; in virgl_ws_fill_new_caps_defaults() 155 caps->caps.v2.max_texture_lod_bias = 15.0f; in virgl_ws_fill_new_caps_defaults() 156 caps->caps.v2.max_geom_output_vertices = 256; in virgl_ws_fill_new_caps_defaults() [all …]
|
D | virgl_screen.c | 70 if (vscreen->caps.caps.v2.host_feature_check_version >= 5) in virgl_get_name() 71 return vscreen->caps.caps.v2.renderer; in virgl_get_name() 88 return vscreen->caps.caps.v2.max_anisotropy > 1.0; in virgl_get_param() 103 if (vscreen->caps.caps.v2.max_texture_2d_size) in virgl_get_param() 104 return vscreen->caps.caps.v2.max_texture_2d_size; in virgl_get_param() 107 if (vscreen->caps.caps.v2.max_texture_3d_size) in virgl_get_param() 108 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_3d_size); in virgl_get_param() 111 if (vscreen->caps.caps.v2.max_texture_cube_size) in virgl_get_param() 112 return 1 + util_logbase2(vscreen->caps.caps.v2.max_texture_cube_size); in virgl_get_param() 129 if (vscreen->caps.caps.v2.host_feature_check_version >= 3) in virgl_get_param() [all …]
|
/third_party/glib/gobject/tests/ |
D | boxed.c | 185 GString *v2; in test_boxed_string() local 194 v2 = g_value_get_boxed (&value); in test_boxed_string() 195 g_assert (v2 == v); in test_boxed_string() 197 v2 = g_value_dup_boxed (&value); in test_boxed_string() 198 g_assert (v2 != v); in test_boxed_string() 199 g_assert (g_string_equal (v, v2)); in test_boxed_string() 200 g_string_free (v2, TRUE); in test_boxed_string() 209 GHashTable *v2; in test_boxed_hashtable() local 218 v2 = g_value_get_boxed (&value); in test_boxed_hashtable() 219 g_assert (v2 == v); in test_boxed_hashtable() [all …]
|
/third_party/boost/libs/multiprecision/test/concepts/ |
D | sf_concept_check_elliptic.cpp | 69 T v1, v2, v3; in test_extra() local 71 boost::math::ellint_1(v1, v2); in test_extra() 73 boost::math::ellint_2(v1, v2); in test_extra() 74 boost::math::ellint_3(v1, v2); in test_extra() 75 boost::math::ellint_3(v1, v2, v3); in test_extra() 76 boost::math::ellint_rc(v1, v2); in test_extra() 77 boost::math::ellint_rd(v1, v2, v3); in test_extra() 78 boost::math::ellint_rf(v1, v2, v3); in test_extra() 79 boost::math::ellint_rj(v1, v2, v3, v1); in test_extra() 80 boost::math::jacobi_elliptic(v1, v2, &v1, &v2); in test_extra() [all …]
|
/third_party/boost/libs/functional/test/ |
D | function_test.cpp | 184 std::vector<std::string> v2; in main() local 185 v2.push_back("Fred"); in main() 186 v2.push_back("Wilma"); in main() 187 v2.push_back("Barney"); in main() 188 v2.push_back("Betty"); in main() 210 std::transform(v2.begin(), v2.end(), in main() 221 std::transform(v2.begin(), v2.end(), in main() 226 std::transform(v2.begin(), v2.end(), in main() 232 std::transform(v2.begin(), v2.end(), in main() 238 std::transform(v2.begin(), v2.end(), in main() [all …]
|
/third_party/openh264/codec/decoder/core/arm64/ |
D | intra_pred_aarch64_neon.S | 81 ext v2.8b, v0.8b, v1.8b, #1 83 ushll v2.8h, v2.8b, #1 85 add v1.8h, v1.8h, v2.8h 88 ext v0.8b, v1.8b, v2.8b, #1 90 ext v0.8b, v1.8b, v2.8b, #2 92 ext v0.8b, v1.8b, v2.8b, #3 102 ext v2.8b, v0.8b, v1.8b, #1 104 ushll v2.8h, v2.8b, #1 106 add v1.8h, v1.8h, v2.8h 109 ext v0.8b, v1.8b, v2.8b, #1 [all …]
|
/third_party/openh264/codec/encoder/core/arm64/ |
D | intra_pred_aarch64_neon.S | 81 ext v2.8b, v0.8b, v1.8b, #1 83 ushll v2.8h, v2.8b, #1 85 add v1.8h, v1.8h, v2.8h 88 ext v0.8b, v1.8b, v2.8b, #1 90 ext v0.8b, v1.8b, v2.8b, #2 92 ext v0.8b, v1.8b, v2.8b, #3 102 ext v2.8b, v0.8b, v1.8b, #1 104 ushll v2.8h, v2.8b, #1 106 add v1.8h, v1.8h, v2.8h 109 ext v0.8b, v1.8b, v2.8b, #1 [all …]
|
/third_party/boost/libs/math/doc/distributions/ |
D | fisher.qbk | 86 In the following table /v1/ and /v2/ are the first and second 103 [expression f[sub v1,v2](x) = y * __ibeta_derivative(v2 \/ 2, v1 \/ 2, v2 \/ (v2 + v1 * x))] 105 with y = (v2 * v1) \/ ((v2 + v1 * x) * (v2 + v1 * x)) 109 [expression f[sub v1,v2](x) = y * __ibeta_derivative(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x))] 113 and z = v2 + v1 * x 115 The first of these is used for v1 * x > v2, otherwise the second is used. 121 [expression p = __ibeta(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x))] 125 [expression :p = __ibetac(v2 \/ 2, v1 \/ 2, v2 \/ (v2 + v1 * x))] 127 The first is used for v1 * x > v2, otherwise the second is used. 134 [expression p = __ibetac(v1 \/ 2, v2 \/ 2, v1 * x \/ (v2 + v1 * x))] [all …]
|