/third_party/abseil-cpp/absl/random/internal/ |
D | iostream_state_saver_test.cc | 155 std::nextafter(1.0f, 0.0f), // 1 - epsilon in TEST() 156 std::nextafter(1.0f, 2.0f), // 1 + epsilon in TEST() 179 std::nextafter(std::numeric_limits<float>::min(), in TEST() 185 std::nextafter(std::numeric_limits<float>::min(), in TEST() 187 std::nextafter(std::numeric_limits<float>::denorm_min(), 1.0f), in TEST() 214 std::nextafter(1.0, 0.0), // 1 - epsilon in TEST() 215 std::nextafter(1.0, 2.0), // 1 + epsilon in TEST() 244 std::nextafter(std::numeric_limits<double>::min(), in TEST() 250 std::nextafter(std::numeric_limits<double>::min(), in TEST() 252 std::nextafter(std::numeric_limits<double>::denorm_min(), 1.0f), in TEST() [all …]
|
D | uniform_helper_test.cc | 165 const double e = std::nextafter(1.0, 2.0); // 1 + epsilon in TEST_F() 166 const double f = std::nextafter(1.0, 0.0); // 1 - epsilon in TEST_F() 170 EXPECT_EQ(std::nextafter(e, 2.0), in TEST_F() 179 const double h = std::nextafter(g, 1.0); in TEST_F()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | iostream_state_saver_test.cc | 158 std::nextafter(1.0f, 0.0f), // 1 - epsilon in TEST() 159 std::nextafter(1.0f, 2.0f), // 1 + epsilon in TEST() 182 std::nextafter(std::numeric_limits<float>::min(), in TEST() 188 std::nextafter(std::numeric_limits<float>::min(), in TEST() 190 std::nextafter(std::numeric_limits<float>::denorm_min(), 1.0f), in TEST() 217 std::nextafter(1.0, 0.0), // 1 - epsilon in TEST() 218 std::nextafter(1.0, 2.0), // 1 + epsilon in TEST() 247 std::nextafter(std::numeric_limits<double>::min(), in TEST() 253 std::nextafter(std::numeric_limits<double>::min(), in TEST() 255 std::nextafter(std::numeric_limits<double>::denorm_min(), 1.0f), in TEST() [all …]
|
D | uniform_helper_test.cc | 165 const double e = std::nextafter(1.0, 2.0); // 1 + epsilon in TEST_F() 166 const double f = std::nextafter(1.0, 0.0); // 1 - epsilon in TEST_F() 170 EXPECT_EQ(std::nextafter(e, 2.0), in TEST_F() 179 const double h = std::nextafter(g, 1.0); in TEST_F()
|
/third_party/boost/libs/math/test/ |
D | test_autodiff_6.cpp | 56 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 57 using boost::multiprecision::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 75 nextafter(T(1), T(0))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 110 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 111 using std::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 121 auto x = nextafter(x_sampler.next(), ((std::numeric_limits<T>::max))()); in BOOST_AUTO_TEST_CASE_TEMPLATE() 122 auto y = nextafter(y_sampler.next(), ((std::numeric_limits<T>::max))()); in BOOST_AUTO_TEST_CASE_TEMPLATE() 123 auto z = nextafter(z_sampler.next(), ((std::numeric_limits<T>::max))()); in BOOST_AUTO_TEST_CASE_TEMPLATE() 135 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 141 using std::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
D | test_autodiff_8.cpp | 163 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 171 using std::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 198 auto x_ = nextafter( in BOOST_AUTO_TEST_CASE_TEMPLATE() 199 static_cast<T>(nextafter( in BOOST_AUTO_TEST_CASE_TEMPLATE() 234 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 235 using boost::multiprecision::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 247 nextafter(fvar_j, make_fvar<T, m>(static_cast<T>(1))).derivative(0u) - in BOOST_AUTO_TEST_CASE_TEMPLATE() 248 nextafter(j, static_cast<T>(1)))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 250 isNearZero(nextafter(fvar_j, make_fvar<T, m>(static_cast<T>(i + 2))) - in BOOST_AUTO_TEST_CASE_TEMPLATE() 251 nextafter(j, static_cast<T>(i + 2)))); in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
D | daubechies_wavelet_test.cpp | 95 xlo = std::nextafter(xlo, std::numeric_limits<Real>::lowest()); in test_quadratures() 96 xhi = std::nextafter(xhi, std::numeric_limits<Real>::max()); in test_quadratures() 115 xlo = std::nextafter(xlo, std::numeric_limits<Real>::max()); in test_quadratures() 116 xhi = std::nextafter(xhi, std::numeric_limits<Real>::lowest()); in test_quadratures()
|
D | test_tr1.cpp | 164 BOOST_CHECK(tr1::nextafter(1.0f, 2.0f) > 1.0f); in test_values() 165 BOOST_CHECK(tr1::nextafter(1.0f, -2.0f) < 1.0f); in test_values() 166 BOOST_CHECK(tr1::nextafter(tr1::nextafter(1.0f, 2.0f), -2.0f) == 1.0f); in test_values() 167 BOOST_CHECK(tr1::nextafter(tr1::nextafter(1.0f, -2.0f), 2.0f) == 1.0f); in test_values() 168 BOOST_CHECK(tr1::nextafter(1.0f, 2.0f) > 1.0f); in test_values() 169 BOOST_CHECK(tr1::nextafter(1.0f, -2.0f) < 1.0f); in test_values() 170 BOOST_CHECK(tr1::nextafter(tr1::nextafter(1.0f, 2.0f), -2.0f) == 1.0f); in test_values() 171 BOOST_CHECK(tr1::nextafter(tr1::nextafter(1.0f, -2.0f), 2.0f) == 1.0f); in test_values() 724 BOOST_CHECK(tr1::nextafter(1.0, 2.0) > 1.0); in test_values() 725 BOOST_CHECK(tr1::nextafter(1.0, -2.0) < 1.0); in test_values() [all …]
|
D | daubechies_scaling_test.cpp | 360 xlo = std::nextafter(xlo, std::numeric_limits<Real>::lowest()); in test_quadratures() 361 xhi = std::nextafter(xhi, std::numeric_limits<Real>::max()); in test_quadratures() 369 xlo = std::nextafter(xlo, std::numeric_limits<Real>::max()); in test_quadratures() 370 xhi = std::nextafter(xhi, std::numeric_limits<Real>::lowest()); in test_quadratures() 440 xlo = std::nextafter(xlo, std::numeric_limits<Real>::lowest()); in test_quadratures() 441 xhi = std::nextafter(xhi, std::numeric_limits<Real>::max()); in test_quadratures() 449 xlo = std::nextafter(xlo, std::numeric_limits<Real>::max()); in test_quadratures() 450 xhi = std::nextafter(xhi, std::numeric_limits<Real>::lowest()); in test_quadratures()
|
D | test_autodiff_5.cpp | 105 using boost::math::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 106 using std::nextafter; in BOOST_AUTO_TEST_CASE_TEMPLATE() 113 auto x = nextafter(x_sampler.next(), ((std::numeric_limits<T>::max))()); in BOOST_AUTO_TEST_CASE_TEMPLATE()
|
D | cubic_hermite_test.cpp | 56 tlo = boost::math::nextafter(tlo, std::numeric_limits<Real>::max()); in test_constant() 57 thi = boost::math::nextafter(thi, std::numeric_limits<Real>::lowest()); in test_constant() 265 tlo = boost::math::nextafter(tlo, std::numeric_limits<Real>::max()); in test_cardinal_constant() 266 thi = boost::math::nextafter(thi, std::numeric_limits<Real>::lowest()); in test_cardinal_constant() 332 tlo = boost::math::nextafter(tlo, std::numeric_limits<Real>::max()); in test_cardinal_linear() 333 thi = boost::math::nextafter(thi, std::numeric_limits<Real>::lowest()); in test_cardinal_linear() 390 tlo = boost::math::nextafter(tlo, std::numeric_limits<Real>::max()); in test_cardinal_quadratic() 391 thi = boost::math::nextafter(thi, std::numeric_limits<Real>::lowest()); in test_cardinal_quadratic()
|
D | test_next_decimal.cpp | 48 BOOST_CHECK_EQUAL(float_distance((boost::math::nextafter)(val, upper), val), -1); in test_value() 49 BOOST_CHECK((boost::math::nextafter)(val, upper) > val); in test_value() 50 BOOST_CHECK_EQUAL(float_distance((boost::math::nextafter)(val, lower), val), 1); in test_value() 51 BOOST_CHECK((boost::math::nextafter)(val, lower) < val); in test_value()
|
/third_party/ltp/testcases/misc/math/nextafter/ |
D | nextafter01.c | 67 answer = nextafter(1.0, 1.1); in main() 79 answer = nextafter(1.0, 0.9); in main() 90 answer = nextafter(1.0, 1.0); in main()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | DynamicStateCommandValidationTests.cpp | 82 TestViewportCall(false, 0.0, 0.0, nextafter(float(kWidth), 1000.0f), kHeight, 0.0, 1.0); in TEST_F() 86 TestViewportCall(false, 0.0, 0.0, kWidth, nextafter(float(kHeight), 1000.0f), 0.0, 1.0); in TEST_F() 90 TestViewportCall(false, 1.0, 0.0, nextafter(float(kWidth - 1.0), 1000.0f), kHeight, 0.0, 1.0); in TEST_F() 94 TestViewportCall(false, 0.0, 1.0, kWidth, nextafter(float(kHeight - 1.0), 1000.0f), 0.0, 1.0); in TEST_F() 117 TestViewportCall(false, 0.0, 0.0, 1.0, 1.0, nextafter(1.0f, 1000.0f), 1.0); in TEST_F() 127 TestViewportCall(false, 0.0, 0.0, 1.0, 1.0, 1.0, nextafter(1.0f, 1000.0f)); in TEST_F()
|
/third_party/boost/libs/math/test/compile_test/ |
D | sf_next_incl_test.cpp | 18 check_result<float>(boost::math::nextafter<float>(f, f)); in compile_and_link_test() 19 check_result<double>(boost::math::nextafter<double>(d, d)); in compile_and_link_test() 21 check_result<long double>(boost::math::nextafter<long double>(l, l)); in compile_and_link_test()
|
/third_party/abseil-cpp/absl/random/ |
D | beta_distribution_test.cc | 66 std::nextafter(TypeParam(0.5), TypeParam(0)), // 0.5 - epsilon in TYPED_TEST() 67 std::nextafter(TypeParam(0.5), TypeParam(1)), // 0.5 + epsilon in TYPED_TEST() 69 std::nextafter(TypeParam(1), TypeParam(0)), // 1 - epsilon in TYPED_TEST() 70 std::nextafter(TypeParam(1), TypeParam(2)), // 1 + epsilon in TYPED_TEST() 74 std::nextafter(kSmallA, TypeParam(0)), // in TYPED_TEST() 75 std::nextafter(kSmallA, TypeParam(1)), // in TYPED_TEST() 77 std::nextafter(kLargeA, TypeParam(0)), // in TYPED_TEST() 78 std::nextafter(kLargeA, std::numeric_limits<TypeParam>::max()), in TYPED_TEST() 80 std::nextafter(kLargeAPPC, TypeParam(0)), in TYPED_TEST() 81 std::nextafter(kLargeAPPC, std::numeric_limits<TypeParam>::max()), in TYPED_TEST() [all …]
|
D | bernoulli_distribution_test.cc | 102 std::make_pair(std::nextafter(1.0, 0.0), 1), // ~1 - epsilon 104 std::make_pair(std::nextafter(std::numeric_limits<double>::min(), 113 std::make_pair(std::nextafter(std::numeric_limits<double>::min(),
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
D | beta_distribution_test.cc | 74 std::nextafter(TypeParam(0.5), TypeParam(0)), // 0.5 - epsilon in TYPED_TEST() 75 std::nextafter(TypeParam(0.5), TypeParam(1)), // 0.5 + epsilon in TYPED_TEST() 77 std::nextafter(TypeParam(1), TypeParam(0)), // 1 - epsilon in TYPED_TEST() 78 std::nextafter(TypeParam(1), TypeParam(2)), // 1 + epsilon in TYPED_TEST() 82 std::nextafter(kSmallA, TypeParam(0)), // in TYPED_TEST() 83 std::nextafter(kSmallA, TypeParam(1)), // in TYPED_TEST() 85 std::nextafter(kLargeA, TypeParam(0)), // in TYPED_TEST() 86 std::nextafter(kLargeA, std::numeric_limits<TypeParam>::max()), in TYPED_TEST() 90 std::nextafter(std::numeric_limits<TypeParam>::min(), in TYPED_TEST() 95 std::nextafter(std::numeric_limits<TypeParam>::min(), in TYPED_TEST() [all …]
|
D | bernoulli_distribution_test.cc | 102 std::make_pair(std::nextafter(1.0, 0.0), 1), // ~1 - epsilon 104 std::make_pair(std::nextafter(std::numeric_limits<double>::min(), 113 std::make_pair(std::nextafter(std::numeric_limits<double>::min(),
|
/third_party/boost/libs/math/src/tr1/ |
D | nexttowardf.cpp | 19 return (float)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((double)x, (double)y); in BOOST_PREVENT_MACRO_SUBSTITUTION() 21 return (float)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((long double)x, y); in BOOST_PREVENT_MACRO_SUBSTITUTION()
|
D | nexttoward.cpp | 19 return c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION(x, (double)y); in BOOST_PREVENT_MACRO_SUBSTITUTION() 21 return (double)c_policies::nextafter BOOST_PREVENT_MACRO_SUBSTITUTION((long double)x, y); in BOOST_PREVENT_MACRO_SUBSTITUTION()
|
/third_party/boost/libs/math/doc/fp_utilities/ |
D | float_next.qbk | 43 [section:nextafter Finding the Next Representable Value in a Specific Direction (nextafter)] 54 FPT nextafter(FPT val, FPT direction); 58 [h4 Description - nextafter] 60 This is an implementation of the `nextafter` function included in the C99 standard. 79 [h4 Examples - nextafter] 84 nextafter(1.F, 999) is 1.00000012 85 nextafter(1/f, -999) is 0.99999994 88 nextafter(0.1F, 10) is 0.100000009 89 nextafter(0.1F, 10) is 0.099999994 92 [endsect] [/section:nextafter Finding the Next Representable Value in a Specific Direction (nextaft… [all …]
|
/third_party/boost/libs/units/test/ |
D | test_cmath.cpp | 130 BOOST_CHECK((bu::nextafter)(E4,E5).value() == (boost::math::nextafter)(E4.value(),E5.value())); in test_main() 131 BOOST_CHECK((bu::nextafter)(E5,E4).value() == (boost::math::nextafter)(E5.value(),E4.value())); in test_main() 133 BOOST_CHECK((bu::nexttoward)(E4,E5).value() == (boost::math::nextafter)(E4.value(),E5.value())); in test_main() 134 BOOST_CHECK((bu::nexttoward)(E5,E4).value() == (boost::math::nextafter)(E5.value(),E4.value())); in test_main()
|
/third_party/skia/modules/skottie/tests/ |
D | Keyframe.cpp | 91 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(std::nextafter(2.f, 0.f)), 1)); in DEF_TEST() 94 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(std::nextafter(3.f, 0.f)), 2)); in DEF_TEST() 134 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(std::nextafter(2.f, 0.f)), 1)); in DEF_TEST() 137 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(prop(std::nextafter(3.f, 0.f)), 2)); in DEF_TEST()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/ |
D | ulp.inl | 116 GLM_FUNC_QUALIFIER double nextafter(double x, double y) function 178 return std::nextafter(x, std::numeric_limits<float>::max()); 192 return std::nextafter(x, std::numeric_limits<double>::max()); 194 return detail::nextafter(x, std::numeric_limits<double>::max()); 198 return nextafter(x, DBL_MAX); 214 return std::nextafter(x, std::numeric_limits<float>::min()); 227 return std::nextafter(x, std::numeric_limits<double>::min()); 233 return nextafter(x, DBL_MIN);
|