Home
last modified time | relevance | path

Searched refs:rint (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp241 int32_t yf1 = rint(yf * 0x10000); in mkYCoeff()
242 int32_t yf2 = rint(yf * yf * 0x10000); in mkYCoeff()
243 int32_t yf3 = rint(yf * yf * yf * 0x10000); in mkYCoeff()
363 long xf16 = rint(xf * 0x10000); in kernelU4()
364 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU4()
440 long xf16 = rint(xf * 0x10000); in kernelU2()
441 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU2()
518 long xf16 = rint(xf * 0x10000); in kernelU1()
519 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU1()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript129 TEST_FUNC_1(rint);
/frameworks/base/graphics/java/android/graphics/
DPath.java741 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) { in offset()
/frameworks/base/core/java/android/util/
DHalf.java526 return FP16.rint(h); in round()
/frameworks/rs/script_api/
Drs_math.spec2940 function: rint
2951 rint() rounds half values to even. For example, <code>rint(0.5f)</code> returns 0.f and function
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/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript825 f = rint(f);
826 f2 = rint(f2);
827 f3 = rint(f3);
828 f4 = rint(f4);
Dmath.rscript311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript845 f = rint(f);
846 f2 = rint(f2);
847 f3 = rint(f3);
848 f4 = rint(f4);
Dmath.rscript336 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript843 f = rint(f);
844 f2 = rint(f2);
845 f3 = rint(f3);
846 f4 = rint(f4);
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript169 TEST_FN_FUNC_FN(rint);
/frameworks/rs/script_api/include/
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(float4 v);
5788 rint(half v);
5793 rint(half2 v);
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak297 TEST_FN_FUNC_FN(rint);
Dmath.rs.orig311 TEST_FN_FUNC_FN(rint);
Dmath.rscript311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath_fp16.rscript237 TEST_HN_FUNC_HN(rint);
Dmath.rscript334 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rscript380 BENCH_FN_FUNC_FN(rint);
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java920 value = (float) (Math.rint(value * scale) / scale);
/frameworks/rs/driver/runtime/
Drs_cl.c671 float __attribute__((overloadable)) rint(float v) { in rint() function
674 FN_FUNC_FN(rint) in FN_FUNC_FN() argument
2135 HN_FUNC_HN(rint);
/frameworks/compile/slang/tests/P_all_api_14/
Dall14.rscript2927 *(float*)buf1203 = rint(*(float*)buf1204);
2928 *(float2*)buf1205 = rint(*(float2*)buf1206);
2929 *(float3*)buf1207 = rint(*(float3*)buf1208);
2930 *(float4*)buf1209 = rint(*(float4*)buf1210);
/frameworks/compile/slang/tests/P_all_api_15/
Dall15.rscript2927 *(float*)buf1203 = rint(*(float*)buf1204);
2928 *(float2*)buf1205 = rint(*(float2*)buf1206);
2929 *(float3*)buf1207 = rint(*(float3*)buf1208);
2930 *(float4*)buf1209 = rint(*(float4*)buf1210);
/frameworks/compile/slang/tests/P_all_api_11/
Dall11.rscript2857 *(float*)buf1203 = rint(*(float*)buf1204);
2858 *(float2*)buf1205 = rint(*(float2*)buf1206);
2859 *(float3*)buf1207 = rint(*(float3*)buf1208);
2860 *(float4*)buf1209 = rint(*(float4*)buf1210);
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rscript2857 *(float*)buf1203 = rint(*(float*)buf1204);
2858 *(float2*)buf1205 = rint(*(float2*)buf1206);
2859 *(float3*)buf1207 = rint(*(float3*)buf1208);
2860 *(float4*)buf1209 = rint(*(float4*)buf1210);

12