Home
last modified time | relevance | path

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

12

/frameworks/rs/cpu_ref/
DrsCpuIntrinsicResize.cpp233 int32_t yf1 = rint(yf * 0x10000); in mkYCoeff()
234 int32_t yf2 = rint(yf * yf * 0x10000); in mkYCoeff()
235 int32_t yf3 = rint(yf * yf * yf * 0x10000); in mkYCoeff()
348 long xf16 = rint(xf * 0x10000); in kernelU4()
349 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU4()
415 long xf16 = rint(xf * 0x10000); in kernelU2()
416 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU2()
482 long xf16 = rint(xf * 0x10000); in kernelU1()
483 uint32_t xinc16 = rint(cp->scaleX * 0x10000); in kernelU1()
DrsCpuRuntimeMathFuncs.cpp79 IMPORT_F32_FN_F32(rint)
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs129 TEST_FUNC_1(rint);
/frameworks/rs/api/
Drs_math.spec1930 function: rint
1941 rint() rounds half values to even. For example, <code>rint(0.5f)</code> returns 0.f and function
1942 <code>rint(1.5f)</code> returns 2.f. Similarly, <code>rint(-0.5f)</code> returns -0.f and
1943 <code>rint(-1.5f)</code> returns -2.f.
1978 @rint() is similar but rounds half values toward even. @trunc() truncates the decimal fraction.
2191 See @rint() and @round() for other rounding options.
/frameworks/rs/java/tests/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/java/tests/RSTest_CompatLib/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/java/tests/RsTest_11/src/com/android/rs/test/
Dmath.rs169 TEST_FN_FUNC_FN(rint);
/frameworks/rs/scriptc/
Drs_math.rsh3741 * rint: Round to even
3745 * rint() rounds half values to even. For example, rint(0.5f) returns 0.f and
3746 * rint(1.5f) returns 2.f. Similarly, rint(-0.5f) returns -0.f and
3747 * rint(-1.5f) returns -2.f.
3752 rint(float v);
3755 rint(float2 v);
3758 rint(float3 v);
3761 rint(float4 v);
3791 * rint() is similar but rounds half values toward even. trunc() truncates the decimal fraction.
4078 * See rint() and round() for other rounding options.
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Dmath.rs311 TEST_FN_FUNC_FN(rint);
Dmath.rs.bak297 TEST_FN_FUNC_FN(rint);
Dmath.rs.orig311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dmath.rs319 TEST_FN_FUNC_FN(rint);
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
Dmath.rs311 TEST_FN_FUNC_FN(rint);
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rs380 BENCH_FN_FUNC_FN(rint);
/frameworks/base/docs/html/guide/topics/renderscript/reference/
Drs_math.jd937 <a href='rs_math.html#android_rs:rint'>rint</a>
6448 <a name='android_rs:rint'></a>
6451 <span class='sympad'>rint</span>
6457 <td>float rint(float v);
6462 …<td><a href='rs_value_types.html#android_rs:float2'>float2</a> rint(<a href='rs_value_types.html#a…
6467 …<td><a href='rs_value_types.html#android_rs:float3'>float3</a> rint(<a href='rs_value_types.html#a…
6472 …<td><a href='rs_value_types.html#android_rs:float4'>float4</a> rint(<a href='rs_value_types.html#a…
6482 <p> rint() rounds half values to even. For example, <code>rint(0.5f)</code> returns 0.f and
6483 <code>rint(1.5f)</code> returns 2.f. Similarly, <code>rint(-0.5f)</code> returns -0.f and
6484 <code>rint(-1.5f)</code> returns -2.f.
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java845 value = (float) (Math.rint(value * scale) / scale);
/frameworks/rs/driver/runtime/
Drs_cl.c546 extern float __attribute__((overloadable)) rint(float);
547 FN_FUNC_FN(rint) in FN_FUNC_FN() argument
/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);
/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_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_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_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_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);

12