/third_party/boost/boost/gil/ |
D | point.hpp | 183 static_cast<result_type>(iround(x)), in operator /() 184 static_cast<result_type>(iround(y))}; in operator /() 249 inline point<std::ptrdiff_t> iround(point<T> const& p) in iround() function 256 inline point<std::ptrdiff_t> iround(point<float> const& p) in iround() function 258 return { iround(p.x), iround(p.y) }; in iround() 262 inline point<std::ptrdiff_t> iround(point<double> const& p) in iround() function 264 return { iround(p.x), iround(p.y) }; in iround()
|
D | utilities.hpp | 53 inline std::ptrdiff_t iround(float x) in iround() function 58 inline std::ptrdiff_t iround(double x) in iround() function
|
/third_party/skia/third_party/externals/swiftshader/src/Renderer/ |
D | TextureStage.cpp | 95 short r = iround(4095 * constantColor.r); in setConstantColor() 96 short g = iround(4095 * constantColor.g); in setConstantColor() 97 short b = iround(4095 * constantColor.b); in setConstantColor() 98 short a = iround(4095 * constantColor.a); in setConstantColor() 113 uniforms.bumpmapMatrix4W[element / 2][element % 2][0] = iround(4095 * value); in setBumpmapMatrix() 114 uniforms.bumpmapMatrix4W[element / 2][element % 2][1] = iround(4095 * value); in setBumpmapMatrix() 115 uniforms.bumpmapMatrix4W[element / 2][element % 2][2] = iround(4095 * value); in setBumpmapMatrix() 116 uniforms.bumpmapMatrix4W[element / 2][element % 2][3] = iround(4095 * value); in setBumpmapMatrix() 121 short scale = iround(4095 * value); in setLuminanceScale() 128 short offset = iround(4095 * value); in setLuminanceOffset()
|
D | PixelProcessor.cpp | 108 short x = iround(4095 * clamp_s(value[0], -1.0f, 1.0f)); in setFloatConstant() 109 short y = iround(4095 * clamp_s(value[1], -1.0f, 1.0f)); in setFloatConstant() 110 short z = iround(4095 * clamp_s(value[2], -1.0f, 1.0f)); in setFloatConstant() 111 short w = iround(4095 * clamp_s(value[3], -1.0f, 1.0f)); in setFloatConstant() 698 short textureFactorR = iround(4095 * textureFactor.r); in setTextureFactor() 699 short textureFactorG = iround(4095 * textureFactor.g); in setTextureFactor() 700 short textureFactorB = iround(4095 * textureFactor.b); in setTextureFactor() 701 short textureFactorA = iround(4095 * textureFactor.a); in setTextureFactor() 727 short blendConstantR = iround(65535 * blendConstant.r); in setBlendConstant() 728 short blendConstantG = iround(65535 * blendConstant.g); in setBlendConstant() [all …]
|
D | Sampler.cpp | 294 short r = iround(0xFFFF * borderColor.r); in setBorderColor() 295 short g = iround(0xFFFF * borderColor.g); in setBorderColor() 296 short b = iround(0xFFFF * borderColor.b); in setBorderColor() 297 short a = iround(0xFFFF * borderColor.a); in setBorderColor()
|
D | Color.hpp | 140 r = iround(clamp(c.r * 4095.0f, -4096.0f, 4095.0f)); in Color() 141 g = iround(clamp(c.g * 4095.0f, -4096.0f, 4095.0f)); in Color() 142 b = iround(clamp(c.b * 4095.0f, -4096.0f, 4095.0f)); in Color() 143 a = iround(clamp(c.a * 4095.0f, -4096.0f, 4095.0f)); in Color()
|
/third_party/boost/libs/math/test/compile_test/ |
D | sf_round_incl_test.cpp | 23 check_result<int>(boost::math::iround<float>(f)); in compile_and_link_test() 24 check_result<int>(boost::math::iround<double>(d)); in compile_and_link_test() 26 check_result<int>(boost::math::iround<long double>(l)); in compile_and_link_test()
|
/third_party/boost/libs/math/test/ |
D | test_round.cpp | 144 int i = iround(arg); in test_round_number() 153 int si = iround(static_cast<T>((std::numeric_limits<int>::max)())); in test_round_number() 155 si = iround(static_cast<T>((std::numeric_limits<int>::min)())); in test_round_number() 225 BOOST_MATH_CHECK_THROW(iround(static_cast<T>(1e20)), boost::math::rounding_error); in test_round() 226 BOOST_MATH_CHECK_THROW(iround(static_cast<T>(-1e20)), boost::math::rounding_error); in test_round() 236 … BOOST_MATH_CHECK_THROW(iround(std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round() 237 … BOOST_MATH_CHECK_THROW(iround(-std::numeric_limits<T>::infinity()), boost::math::rounding_error); in test_round() 248 … BOOST_MATH_CHECK_THROW(iround(std::numeric_limits<T>::quiet_NaN()), boost::math::rounding_error); in test_round() 302 …BOOST_MATH_CHECK_THROW(iround(static_cast<T>((std::numeric_limits<int>::max)()) + 1), boost::math:… in test_round() 303 …BOOST_MATH_CHECK_THROW(iround(static_cast<T>((std::numeric_limits<int>::min)()) - 1), boost::math:… in test_round() [all …]
|
D | test_autodiff_3.cpp | 204 int y = iround(x); in BOOST_AUTO_TEST_CASE_TEMPLATE() 205 BOOST_CHECK_EQUAL(y, iround(cx)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
|
/third_party/boost/libs/multiprecision/test/ |
D | test_round.cpp | 215 int i = iround(arg); in test() 217 BOOST_TEST(i == iround(arg + 0)); in test() 255 int si = iround(static_cast<T>((std::numeric_limits<int>::max)())); in test() 257 BOOST_TEST(si == iround(static_cast<T>((std::numeric_limits<int>::max)()) + 0)); in test() 258 si = iround(static_cast<T>((std::numeric_limits<int>::min)())); in test() 260 BOOST_TEST(si == iround(static_cast<T>((std::numeric_limits<int>::min)()) + 0)); in test() 268 si = iround(static_cast<T>((std::numeric_limits<int>::max)() - 1)); in test() 270 si = iround(static_cast<T>((std::numeric_limits<int>::min)() + 1)); in test() 332 …BOOST_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(1e20))), boost::math::rounding_err… in test() 333 …BOOST_CHECK_THROW(result = static_cast<T>(iround(static_cast<T>(-1e20))), boost::math::rounding_er… in test() [all …]
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/ |
D | integer.inl | 37 GLM_FUNC_QUALIFIER int iround(genType x) function 39 …GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'iround' only accept floating-point in… 46 GLM_FUNC_QUALIFIER vecType<int, P> iround(vecType<T, P> const& x) function 48 …GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'iround' only accept floating-point inputs");
|
D | integer.hpp | 84 GLM_FUNC_DECL vecType<int, P> iround(vecType<T, P> const & x);
|
/third_party/boost/boost/math/special_functions/detail/ |
D | round_fwd.hpp | 46 int iround(const T& v, const Policy& pol); 48 int iround(const T& v); 84 using boost::math::iround;\
|
D | iconv.hpp | 28 return iround(v, pol); in iconv_imp()
|
/third_party/boost/boost/math/special_functions/ |
D | round.hpp | 82 inline int iround(const T& v, const Policy& pol) in iround() function 91 inline int iround(const T& v) in iround() function 93 return iround(v, policies::policy<>()); in iround()
|
/third_party/boost/boost/math/concepts/ |
D | real_concept.hpp | 282 inline int iround(const concepts::real_concept& v, const Policy& pol) in iround() function 283 { return boost::math::iround(v.value(), pol); } in iround() 284 inline int iround(const concepts::real_concept& v) in iround() function 285 { return boost::math::iround(v.value(), policies::policy<>()); } in iround() 489 using concepts::iround;
|
D | std_real_concept.hpp | 261 inline int iround(const concepts::std_real_concept& v, const Policy& pol) in iround() function 263 return boost::math::iround(v.value(), pol); in iround() 265 inline int iround(const concepts::std_real_concept& v) in iround() function 267 return boost::math::iround(v.value(), policies::policy<>()); in iround() 418 using concepts::iround;
|
/third_party/flutter/skia/tests/ |
D | MathTest.cpp | 299 int iround = SkMulDiv255Round(a, b); in test_muldiv255() local 302 REPORTER_ASSERT(reporter, iround == round); in test_muldiv255() 305 REPORTER_ASSERT(reporter, itrunc <= iround); in test_muldiv255() 306 REPORTER_ASSERT(reporter, iround <= a); in test_muldiv255() 307 REPORTER_ASSERT(reporter, iround <= b); in test_muldiv255()
|
/third_party/skia/tests/ |
D | MathTest.cpp | 339 int iround = SkMulDiv255Round(a, b); in test_muldiv255() local 342 REPORTER_ASSERT(reporter, iround == round); in test_muldiv255() 345 REPORTER_ASSERT(reporter, itrunc <= iround); in test_muldiv255() 346 REPORTER_ASSERT(reporter, iround <= a); in test_muldiv255() 347 REPORTER_ASSERT(reporter, iround <= b); in test_muldiv255()
|
/third_party/boost/libs/math/doc/fp_utilities/ |
D | rounding_func.qbk | 15 int iround(const T& v); 18 int iround(const T& v, const Policy&);
|
/third_party/gstreamer/gstreamer/tests/misc/ |
D | network-clock-utils.scm | 45 (define (iround x) 144 (let ((period (iround (max 1 (* *sample-frequency* period)))))
|
/third_party/boost/boost/math/bindings/ |
D | mpfr.hpp | 119 inline int iround(mpfr_class const& x, const Policy&) in iround() function 124 inline int iround(__gmp_expr<T,U> const& x, const Policy& pol) in iround() function 126 return iround(static_cast<mpfr_class>(x), pol); in iround() 194 using ::iround;
|
/third_party/boost/libs/multiprecision/test/concepts/ |
D | sf_concept_check_basic.cpp | 97 boost::math::iround(v1); in test_extra()
|
/third_party/skia/third_party/externals/swiftshader/src/System/ |
D | Math.hpp | 81 inline int iround(float x) in iround() function
|
/third_party/boost/libs/gil/test/legacy/ |
D | image.cpp | 265 …check_view(subimage_view(img_view, iround(img_view.dimensions()/4), iround(img_view.dimensions()/2… in view_transformations_test()
|