Home
last modified time | relevance | path

Searched refs:lround (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/boost/libs/math/test/compile_test/
Dsf_round_incl_test.cpp28 check_result<long>(boost::math::lround<float>(f)); in compile_and_link_test()
29 check_result<long>(boost::math::lround<double>(d)); in compile_and_link_test()
31 check_result<long>(boost::math::lround<long double>(l)); in compile_and_link_test()
/third_party/boost/libs/math/test/
Dtest_round.cpp164 long l = lround(arg); in test_round_number()
173 long k = lround(static_cast<T>((std::numeric_limits<long>::max)())); in test_round_number()
175 k = lround(static_cast<T>((std::numeric_limits<long>::min)())); in test_round_number()
227 BOOST_MATH_CHECK_THROW(lround(static_cast<T>(1e20)), boost::math::rounding_error); in test_round()
228 BOOST_MATH_CHECK_THROW(lround(static_cast<T>(-1e20)), boost::math::rounding_error); in test_round()
238 … BOOST_MATH_CHECK_THROW(lround(std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
239 … BOOST_MATH_CHECK_THROW(lround(-std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round()
249 … BOOST_MATH_CHECK_THROW(lround(std::numeric_limits<T>::quiet_NaN()), boost::math::rounding_error); in test_round()
307 …BOOST_MATH_CHECK_THROW(lround(static_cast<T>((std::numeric_limits<long>::max)()) + 1), boost::math… in test_round()
308 …BOOST_MATH_CHECK_THROW(lround(static_cast<T>((std::numeric_limits<long>::min)()) - 1), boost::math… in test_round()
[all …]
Dtest_autodiff_4.cpp14 using boost::math::lround; in BOOST_AUTO_TEST_CASE_TEMPLATE()
17 using boost::multiprecision::lround; in BOOST_AUTO_TEST_CASE_TEMPLATE()
20 using detail::lround; in BOOST_AUTO_TEST_CASE_TEMPLATE()
27 auto yl = lround(x); in BOOST_AUTO_TEST_CASE_TEMPLATE()
28 BOOST_CHECK_EQUAL(yl, lround(cx)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
/third_party/boost/libs/multiprecision/test/
Dtest_round.cpp226 long l = lround(arg); in test()
228 BOOST_TEST(l == lround(arg + 0)); in test()
279 long k = lround(static_cast<T>((std::numeric_limits<long>::max)())); in test()
281 BOOST_TEST(k == lround(static_cast<T>((std::numeric_limits<long>::max)()) + 0)); in test()
282 k = lround(static_cast<T>((std::numeric_limits<long>::min)())); in test()
284 BOOST_TEST(k == lround(static_cast<T>((std::numeric_limits<long>::min)()) + 0)); in test()
292 k = lround(static_cast<T>((std::numeric_limits<long>::max)() - 1)); in test()
294 k = lround(static_cast<T>((std::numeric_limits<long>::min)() + 1)); in test()
334 …BOOST_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(1e20))), boost::math::rounding_err… in test()
335 …BOOST_CHECK_THROW(result = static_cast<T>(lround(static_cast<T>(-1e20))), boost::math::rounding_er… in test()
[all …]
/third_party/boost/boost/math/special_functions/detail/
Dround_fwd.hpp50 long lround(const T& v, const Policy& pol);
52 long lround(const T& v);
85 using boost::math::lround;\
/third_party/boost/boost/math/special_functions/
Dround.hpp97 inline long lround(const T& v, const Policy& pol) in lround() function
106 inline long lround(const T& v) in lround() function
108 return lround(v, policies::policy<>()); in lround()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/
Dresize_op.cc41 output_w = static_cast<int>(std::lround(static_cast<float>(input_w) / input_h * output_h)); in Compute()
45 output_h = static_cast<int>(std::lround(static_cast<float>(input_h) / input_w * output_w)); in Compute()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/kernels/image/soft_dvpp/
Dsoft_dvpp_decode_resize_jpeg_op.cc48 …info.output_width = static_cast<int>(std::lround(static_cast<float>(input_w) / input_h * info.outp… in Compute()
52 …info.output_height = static_cast<int>(std::lround(static_cast<float>(input_h) / input_w * info.out… in Compute()
/third_party/skia/third_party/externals/harfbuzz/util/
Dansi-print.hh45 lround (double x) in lround() function
203 (*this)(x, y) = d < 0 ? 0 : d > dd ? 255 : lround (d * 255. / dd); in set()
300 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.height); in block_best()
332 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.width); in block_best()
/third_party/harfbuzz/util/
Dansi-print.cc46 lround (double x) in lround() function
206 (*this)(x, y) = d < 0 ? 0 : d > dd ? 255 : lround (d * 255. / dd); in set()
303 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.height); in block_best()
335 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.width); in block_best()
/third_party/flutter/skia/third_party/externals/harfbuzz/util/
Dansi-print.cc46 lround (double x) in lround() function
206 (*this)(x, y) = d < 0 ? 0 : d > dd ? 255 : lround (d * 255. / dd); in set()
303 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.height); in block_best()
335 unsigned int which = lround ((double) ((best_i + 1) * 8) / bi.width); in block_best()
/third_party/musl/porting/liteos_a/kernel/src/math/
Dlround.c3 long lround(double x) in lround() function
/third_party/musl/src/math/
Dlround.c3 long lround(double x) in lround() function
/third_party/musl/src/math/aarch64/
Dlround.c3 long lround(double x) in lround() function
/third_party/musl/libc-test/src/api/
Dtgmath.c216 #ifdef lround in f()
217 {double r = lround(x);} in f()
219 #error no lround(x) in f()
/third_party/musl/src/math/powerpc64/
Dlround.c5 long lround(double x) in lround() function
/third_party/boost/libs/math/src/tr1/
Dlround.cpp18 return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dlroundl.cpp18 return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dlroundf.cpp18 return c_policies::lround BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
/third_party/boost/boost/math/concepts/
Dstd_real_concept.hpp271 inline long lround(const concepts::std_real_concept& v, const Policy& pol) in lround() function
273 return boost::math::lround(v.value(), pol); in lround()
275 inline long lround(const concepts::std_real_concept& v) in lround() function
277 return boost::math::lround(v.value(), policies::policy<>()); in lround()
419 using concepts::lround;
Dreal_concept.hpp287 inline long lround(const concepts::real_concept& v, const Policy& pol) in lround() function
288 { return boost::math::lround(v.value(), pol); } in lround()
289 inline long lround(const concepts::real_concept& v) in lround() function
290 { return boost::math::lround(v.value(), policies::policy<>()); } in lround()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/
DInspectableNativeWindow.cpp295 return {0, 0, lround(size.Width * mSwapChainScale), lround(size.Height * mSwapChainScale)}; in clientRect()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/winrt/
DInspectableNativeWindow.cpp295 return {0, 0, lround(size.Width * mSwapChainScale), lround(size.Height * mSwapChainScale)}; in clientRect()
/third_party/musl/libc-test/src/math/
Dlround.c25 yi = lround(p->x); in main()
/third_party/musl/include/
Dtgmath.h188 #undef lround
251 #define lround(x) __tg_real_nocast(lround, (x)) macro

1234