/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/ |
D | compute_benchmark.rs | 134 #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/ |
D | math.rs | 110 #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 …]
|
D | math_24.rs | 26 #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/ |
D | math.rs | 112 #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 …]
|
D | math_24.rs | 28 #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/ |
D | math.rs.bak | 80 #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 …]
|
D | math.rs | 94 #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 …]
|
D | math.rs.orig | 94 #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/ |
D | math.rs | 94 #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/ |
D | math.rs | 94 #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/ |
D | math_fp.rs | 14 #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/ |
D | math_int.rs | 39 #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/ |
D | math.rs | 40 #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/ |
D | rs_cl.c | 25 #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/ |
D | android_renderscript_RenderScript.cpp | 42 #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/ |
D | android_renderscript_RenderScript.cpp | 53 #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 …]
|