Searched refs:rint (Results 1 - 9 of 9) sorted by relevance

/frameworks/rs/cpu_ref/
H A DrsCpuIntrinsicResize.cpp226 int32_t yf1 = rint(yf * 0x10000);
227 int32_t yf2 = rint(yf * yf * 0x10000);
228 int32_t yf3 = rint(yf * yf * yf * 0x10000);
341 long xf16 = rint(xf * 0x10000);
342 uint32_t xinc16 = rint(cp->scaleX * 0x10000);
408 long xf16 = rint(xf * 0x10000);
409 uint32_t xinc16 = rint(cp->scaleX * 0x10000);
475 long xf16 = rint(xf * 0x10000);
476 uint32_t xinc16 = rint(cp->scaleX * 0x10000);
/frameworks/base/graphics/java/android/graphics/
H A DPath.java736 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) {
/frameworks/rs/script_api/
H A Drs_math.spec2940 function: rint
2951 rint() rounds half values to even. For example, <code>rint(0.5f)</code> returns 0.f and
2952 <code>rint(1.5f)</code> returns 2.f. Similarly, <code>rint(-0.5f)</code> returns -0.f and
2953 <code>rint(-1.5f)</code> returns -2.f.
2958 function: rint
3008 @rint() is similar but rounds half values toward even. @trunc() truncates the decimal fraction.
3359 See @rint() and @round() for other rounding options.
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dmath_fp16.rs237 TEST_HN_FUNC_HN(rint);
H A Dmath.rs334 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
H A Dapitest.rs843 f = rint(f);
844 f2 = rint(f2);
845 f3 = rint(f3);
846 f4 = rint(f4);
/frameworks/base/core/java/com/android/internal/widget/
H A DPointerLocationView.java852 value = (float) (Math.rint(value * scale) / scale);
/frameworks/rs/script_api/include/
H A Drs_math.rsh5764 * rint: Round to even
5768 * rint() rounds half values to even. For example, rint(0.5f) returns 0.f and
5769 * rint(1.5f) returns 2.f. Similarly, rint(-0.5f) returns -0.f and
5770 * rint(-1.5f) returns -2.f.
5775 rint(float v);
5778 rint(float2 v);
5781 rint(float3 v);
5784 rint(float
[all...]
/frameworks/rs/driver/runtime/
H A Drs_cl.c671 float __attribute__((overloadable)) rint(float v) { function
674 FN_FUNC_FN(rint)
2135 HN_FUNC_HN(rint); variable

Completed in 188 milliseconds