Home
last modified time | relevance | path

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

12

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp226 int32_t yf1 = rint(yf * 0x10000); in mkYCoeff()
227 int32_t yf2 = rint(yf * yf * 0x10000); in mkYCoeff()
228 int32_t yf3 = rint(yf * yf * yf * 0x10000); in mkYCoeff()
341 long xf16 = rint(xf * 0x10000); in kernelU4()
342 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU4()
408 long xf16 = rint(xf * 0x10000); in kernelU2()
409 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU2()
475 long xf16 = rint(xf * 0x10000); in kernelU1()
476 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU1()
/frameworks/base/graphics/java/android/graphics/
DPath.java728 if (isSimplePath && dx == Math.rint(dx) && dy == Math.rint(dy)) { in offset()
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs129 TEST_FUNC_1(rint);
/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.rs825 f = rint(f);
826 f2 = rint(f2);
827 f3 = rint(f3);
828 f4 = rint(f4);
Dmath.rs311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
Dapitest.rs827 f = rint(f);
828 f2 = rint(f2);
829 f3 = rint(f3);
830 f4 = rint(f4);
Dmath.rs311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rs169 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/
Dmath_fp16.rs221 TEST_HN_FUNC_HN(rint);
Dmath.rs319 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.rs311 TEST_FN_FUNC_FN(rint);
Dmath.rs.orig311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rs311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rs380 BENCH_FN_FUNC_FN(rint);
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java845 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_13/
Dall13.rs2857 *(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_11/
Dall11.rs2857 *(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_16/
Dall16.rs3019 *(float*)buf1203 = rint(*(float*)buf1204);
3020 *(float2*)buf1205 = rint(*(float2*)buf1206);
3021 *(float3*)buf1207 = rint(*(float3*)buf1208);
3022 *(float4*)buf1209 = rint(*(float4*)buf1210);
/frameworks/compile/slang/tests/P_all_api_12/
Dall12.rs2857 *(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_14/
Dall14.rs2927 *(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.rs2927 *(float*)buf1203 = rint(*(float*)buf1204);
2928 *(float2*)buf1205 = rint(*(float2*)buf1206);
2929 *(float3*)buf1207 = rint(*(float3*)buf1208);
2930 *(float4*)buf1209 = rint(*(float4*)buf1210);

12