Home
last modified time | relevance | path

Searched refs:fnc (Results 1 – 16 of 16) sorted by relevance

/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rs134 #define BENCH_XN_FUNC_YN(typeout, fnc, typein) \
135 RUN_BENCH(res_##typeout##_1 = fnc(src1_##typein##_1);, #typeout "1 " #fnc "(" #typein "1)") \
136 RUN_BENCH(res_##typeout##_2 = fnc(src1_##typein##_2);, #typeout "2 " #fnc "(" #typein "2)") \
137 RUN_BENCH(res_##typeout##_3 = fnc(src1_##typein##_3);, #typeout "3 " #fnc "(" #typein "3)") \
138 RUN_BENCH(res_##typeout##_4 = fnc(src1_##typein##_4);, #typeout "4 " #fnc "(" #typein "4)")
140 #define BENCH_XN_FUNC_XN_XN(type, fnc) …
141 …RUN_BENCH(res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1), #type "1 " #fnc "(" #type "1, " …
142 …RUN_BENCH(res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2), #type "2 " #fnc "(" #type "2, " …
143 …RUN_BENCH(res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3), #type "3 " #fnc "(" #type "3, " …
144 …RUN_BENCH(res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4), #type "4 " #fnc "(" #type "4, " …
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dmath.rs110 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
111 res_##typeout##_1 = fnc(src1_##typein##_1); \
112 res_##typeout##_2 = fnc(src1_##typein##_2); \
113 res_##typeout##_3 = fnc(src1_##typein##_3); \
114 res_##typeout##_4 = fnc(src1_##typein##_4);
116 #define TEST_XN_FUNC_XN_XN(type, fnc) \
117 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
118 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
119 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
120 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
Dmath_24.rs26 #define TEST_FN_FUNC_FN(fnc) \
27 rsDebug("Testing " #fnc, 0); \
28 f1 = fnc(f1); \
29 f2 = fnc(f2); \
30 f3 = fnc(f3); \
31 f4 = fnc(f4);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dmath.rs112 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
113 res_##typeout##_1 = fnc(src1_##typein##_1); \
114 res_##typeout##_2 = fnc(src1_##typein##_2); \
115 res_##typeout##_3 = fnc(src1_##typein##_3); \
116 res_##typeout##_4 = fnc(src1_##typein##_4);
118 #define TEST_XN_FUNC_XN_XN(type, fnc) \
119 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
120 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
121 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
122 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
Dmath_24.rs28 #define TEST_FN_FUNC_FN(fnc) \
29 rsDebug("Testing " #fnc, 0); \
30 f1 = fnc(f1); \
31 f2 = fnc(f2); \
32 f3 = fnc(f3); \
33 f4 = fnc(f4);
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak80 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
81 res_##typeout##_1 = fnc(src1_##typein##_1); \
82 res_##typeout##_2 = fnc(src1_##typein##_2); \
83 res_##typeout##_3 = fnc(src1_##typein##_3); \
84 res_##typeout##_4 = fnc(src1_##typein##_4);
86 #define TEST_XN_FUNC_XN_XN(type, fnc) \
87 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
88 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
89 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
90 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
Dmath.rs94 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
95 res_##typeout##_1 = fnc(src1_##typein##_1); \
96 res_##typeout##_2 = fnc(src1_##typein##_2); \
97 res_##typeout##_3 = fnc(src1_##typein##_3); \
98 res_##typeout##_4 = fnc(src1_##typein##_4);
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
101 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
102 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
103 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
104 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
Dmath.rs.orig94 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
95 res_##typeout##_1 = fnc(src1_##typein##_1); \
96 res_##typeout##_2 = fnc(src1_##typein##_2); \
97 res_##typeout##_3 = fnc(src1_##typein##_3); \
98 res_##typeout##_4 = fnc(src1_##typein##_4);
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
101 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
102 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
103 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
104 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dmath.rs94 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
95 res_##typeout##_1 = fnc(src1_##typein##_1); \
96 res_##typeout##_2 = fnc(src1_##typein##_2); \
97 res_##typeout##_3 = fnc(src1_##typein##_3); \
98 res_##typeout##_4 = fnc(src1_##typein##_4);
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
101 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
102 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
103 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
104 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rs94 #define TEST_XN_FUNC_YN(typeout, fnc, typein) \
95 res_##typeout##_1 = fnc(src1_##typein##_1); \
96 res_##typeout##_2 = fnc(src1_##typein##_2); \
97 res_##typeout##_3 = fnc(src1_##typein##_3); \
98 res_##typeout##_4 = fnc(src1_##typein##_4);
100 #define TEST_XN_FUNC_XN_XN(type, fnc) \
101 res_##type##_1 = fnc(src1_##type##_1, src2_##type##_1); \
102 res_##type##_2 = fnc(src1_##type##_2, src2_##type##_2); \
103 res_##type##_3 = fnc(src1_##type##_3, src2_##type##_3); \
104 res_##type##_4 = fnc(src1_##type##_4, src2_##type##_4);
[all …]
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rs14 #define TEST_FUNC_1(fnc) \
15 f = fnc(f); \
16 f2 = fnc(f2); \
17 f3 = fnc(f3); \
18 f4 = fnc(f4);
20 #define TEST_FUNC_1_RI(fnc) \
21 i = fnc(f); \
22 i2 = fnc(f2); \
23 i3 = fnc(f3); \
24 i4 = fnc(f4);
[all …]
/frameworks/compile/slang/tests/P_math_int/
Dmath_int.rs39 #define TEST4_1(ret, typ, fnc) \
40 ret = fnc(typ); \
41 ret##2 = fnc(typ##2); \
42 ret##3 = fnc(typ##3); \
43 ret##4 = fnc(typ##4);
45 #define TEST4_2(typ, fnc) \
46 typ = fnc(typ, typ); \
47 typ##2 = fnc(typ##2, typ##2); \
48 typ##3 = fnc(typ##3, typ##3); \
49 typ##4 = fnc(typ##4, typ##4);
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rs40 #define TEST_FN_FUNC_FN(fnc) \
41 rsDebug("Testing " #fnc, 0); \
42 f1 = fnc(f1); \
43 f2 = fnc(f2); \
44 f3 = fnc(f3); \
45 f4 = fnc(f4);
47 #define TEST_FN_FUNC_FN_PFN(fnc) \
48 rsDebug("Testing " #fnc, 0); \
49 f1 = fnc(f1, (float*) &f1); \
50 f2 = fnc(f2, (float2*) &f2); \
[all …]
/frameworks/rs/driver/runtime/
Drs_cl.c25 #define FN_FUNC_FN(fnc) \ argument
26 extern float2 __attribute__((overloadable)) fnc(float2 v) { \
28 r.x = fnc(v.x); \
29 r.y = fnc(v.y); \
32 extern float3 __attribute__((overloadable)) fnc(float3 v) { \
34 r.x = fnc(v.x); \
35 r.y = fnc(v.y); \
36 r.z = fnc(v.z); \
39 extern float4 __attribute__((overloadable)) fnc(float4 v) { \
41 r.x = fnc(v.x); \
[all …]
/frameworks/rs/support/jni/
Dandroid_renderscript_RenderScript.cpp42 #define PER_ARRAY_TYPE(flag, fnc, readonly, ...) { \ argument
67 fnc(__VA_ARGS__); \
69 fnc(__VA_ARGS__); \
75 fnc(__VA_ARGS__); \
92 fnc(__VA_ARGS__); \
94 fnc(__VA_ARGS__); \
100 fnc(__VA_ARGS__); \
118 fnc(__VA_ARGS__); \
120 fnc(__VA_ARGS__); \
126 fnc(__VA_ARGS__); \
[all …]
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp53 #define PER_ARRAY_TYPE(flag, fnc, readonly, ...) { \ argument
82 fnc(__VA_ARGS__); \
84 fnc(__VA_ARGS__); \
90 fnc(__VA_ARGS__); \
111 fnc(__VA_ARGS__); \
113 fnc(__VA_ARGS__); \
119 fnc(__VA_ARGS__); \
141 fnc(__VA_ARGS__); \
143 fnc(__VA_ARGS__); \
149 fnc(__VA_ARGS__); \
[all …]