Home
last modified time | relevance | path

Searched refs:iround (Results 1 – 25 of 47) sorted by relevance

12

/third_party/boost/boost/gil/
Dpoint.hpp183 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()
Dutilities.hpp53 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/
DTextureStage.cpp95 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()
DPixelProcessor.cpp108 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 …]
DSampler.cpp294 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()
DColor.hpp140 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/
Dsf_round_incl_test.cpp23 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/
Dtest_round.cpp144 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 …]
Dtest_autodiff_3.cpp204 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/
Dtest_round.cpp215 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/
Dinteger.inl37 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");
Dinteger.hpp84 GLM_FUNC_DECL vecType<int, P> iround(vecType<T, P> const & x);
/third_party/boost/boost/math/special_functions/detail/
Dround_fwd.hpp46 int iround(const T& v, const Policy& pol);
48 int iround(const T& v);
84 using boost::math::iround;\
Diconv.hpp28 return iround(v, pol); in iconv_imp()
/third_party/boost/boost/math/special_functions/
Dround.hpp82 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/
Dreal_concept.hpp282 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;
Dstd_real_concept.hpp261 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/
DMathTest.cpp299 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/
DMathTest.cpp339 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/
Drounding_func.qbk15 int iround(const T& v);
18 int iround(const T& v, const Policy&);
/third_party/gstreamer/gstreamer/tests/misc/
Dnetwork-clock-utils.scm45 (define (iround x)
144 (let ((period (iround (max 1 (* *sample-frequency* period)))))
/third_party/boost/boost/math/bindings/
Dmpfr.hpp119 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/
Dsf_concept_check_basic.cpp97 boost::math::iround(v1); in test_extra()
/third_party/skia/third_party/externals/swiftshader/src/System/
DMath.hpp81 inline int iround(float x) in iround() function
/third_party/boost/libs/gil/test/legacy/
Dimage.cpp265 …check_view(subimage_view(img_view, iround(img_view.dimensions()/4), iround(img_view.dimensions()/2… in view_transformations_test()

12