Home
last modified time | relevance | path

Searched refs:f2 (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dapitest.rscript65 volatile float2 f2;
334 f2 = rsGetElementAt_float2(aFloat2, 0);
335 rsSetElementAt_float2(aFloat2, f2, 0);
336 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
337 rsSetElementAt_float2(aFloat2, f2, 0, 0);
338 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
339 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
397 f4 += rsSample(allocDst, samplerNonNull, f2);
398 f4 += rsSample(allocDst, samplerNonNull, f2, f);
422 c2 = convert_char2(f2);
[all …]
DUT_copy_test.java38 float[] f2 = new float[1024 * 2]; in testFloat2() local
46 a2.copyTo(f2); in testFloat2()
48 if (f1[ct] != f2[ct]) { in testFloat2()
50 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
62 float[] f2 = new float[1024 * 4]; in testFloat3() local
70 a2.copyTo(f2); in testFloat3()
72 if ((f1[ct] != f2[ct]) && ((ct&3) != 3)) { in testFloat3()
74 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
86 float[] f2 = new float[1024 * 4]; in testFloat4() local
94 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rscript6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
Dkernel_struct.rscript9 float f2;
21 out->f2 = 1.0f;
30 s.f2 = in.f2 + x;
42 _RS_ASSERT(aout[i].f2 == (i + ain[i].f2));
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dapitest.rscript83 volatile float2 f2;
354 f2 = rsGetElementAt_float2(aFloat2, 0);
355 rsSetElementAt_float2(aFloat2, f2, 0);
356 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
357 rsSetElementAt_float2(aFloat2, f2, 0, 0);
358 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
359 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
417 f4 += rsSample(allocDst, samplerNonNull, f2);
418 f4 += rsSample(allocDst, samplerNonNull, f2, f);
442 c2 = convert_char2(f2);
[all …]
DUT_copy_test.java39 float[] f2 = new float[1024 * 2]; in testFloat2() local
47 a2.copyTo(f2); in testFloat2()
49 if (f1[ct] != f2[ct]) { in testFloat2()
51 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
63 float[] f2 = new float[1024 * 4]; in testFloat3() local
71 a2.copyTo(f2); in testFloat3()
73 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3()
75 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
87 float[] f2 = new float[1024 * 4]; in testFloat4() local
95 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rscript24 volatile float2 f2;
163 f2 = fnc(f2); \
170 f2 = fnc(f2, (float2*) &f2); \
177 f2 = fnc(f2, f2); \
189 f2 = fnc(f2, f1); \
196 f2 = fnc(f1, f2); \
203 f1 = fnc(f2); \
210 f1 = fnc(f2, f2); \
217 f2 = fnc(f2, i2); \
224 f2 = fnc(f2, i1); \
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/
Dapitest.rscript81 volatile float2 f2;
352 f2 = rsGetElementAt_float2(aFloat2, 0);
353 rsSetElementAt_float2(aFloat2, f2, 0);
354 f2 = rsGetElementAt_float2(aFloat2, 0, 0);
355 rsSetElementAt_float2(aFloat2, f2, 0, 0);
356 f2 = rsGetElementAt_float2(aFloat2, 0, 0, 0);
357 rsSetElementAt_float2(aFloat2, f2, 0, 0, 0);
415 f4 += rsSample(allocDst, samplerNonNull, f2);
416 f4 += rsSample(allocDst, samplerNonNull, f2, f);
440 c2 = convert_char2(f2);
[all …]
/frameworks/compile/slang/tests/P_math_fp/
Dmath_fp.rscript10 float2 f2;
16 f2 = fnc(f2); \
22 i2 = fnc(f2); \
28 f2 = fnc(f2, f2); \
34 f2 = fnc(f2, &f2); \
40 f2 = fnc(f2, &i2); \
46 f2 = fnc(f2, f2); \
52 f2 = fnc(f2, i); \
58 f2 = fnc(f2, i2); \
64 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Drasterize.rscript41 triangleSetup(float3 f1, float3 f2, float3 f3) {
42 if (((f1.x - f2.x) * (f3.y - f2.y) - (f1.y - f2.y) * (f3.x - f2.x)) < 0) {
44 f1 = f2;
45 f2 = tmp;
50 double d = (f1.x * (f3.y - f2.y) - f2.x * f3.y + f3.x * f2.y + (f2.x - f3.x)
57 slope[total].x = (-(f1.y * (f3.z - f2.z) - f2.y * f3.z + f3.y * f2.z + (f2.y - f3.y) * f1.z)
59 slope[total].y = ((f1.x * (f3.z - f2.z) - f2.x * f3.z + f3.x * f2.z + (f2.x - f3.x) * f1.z)
61 zoff[total] = ((f1.x * (f3.y * f2.z - f2.y * f3.z) + f1.y * (f2.x * f3.z - f3.x * f2.z) +
62 (f3.x * f2.y - f2.x * f3.y) * f1.z) / d);
65 p2[total] = f2.xy;
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c47 Word32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
66 Get_isp_pol_16kHz(&isp[1], f2, (nc - 1)); in Isp_Az()
69 f2[i] = f2[i] << 2; in Isp_Az()
72 Get_isp_pol(&isp[1], f2, (nc - 1)); in Isp_Az()
80 f2[i] = vo_L_sub(f2[i], f2[i - 2]); /* f2[i] -= f2[i-2]; */ in Isp_Az()
99 hi = f2[i] >> 16; in Isp_Az()
100 lo = (f2[i] & 0xffff)>>1; in Isp_Az()
102 f2[i] = vo_L_sub(f2[i], t0); in Isp_Az()
117 t0 = vo_L_add(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
123 t0 = vo_L_sub(f1[i], f2[i]); /* f1[i] - f2[i] */ in Isp_Az()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java37 float[] f2 = new float[1024 * 2]; in testFloat2() local
45 a2.copyTo(f2); in testFloat2()
47 if (f1[ct] != f2[ct]) { in testFloat2()
49 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2()
61 float[] f2 = new float[1024 * 4]; in testFloat3() local
69 a2.copyTo(f2); in testFloat3()
71 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3()
73 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3()
85 float[] f2 = new float[1024 * 4]; in testFloat4() local
93 a2.copyTo(f2); in testFloat4()
[all …]
Dmath.rscript22 volatile float2 f2;
161 f2 = fnc(f2); \
168 f2 = fnc(f2, (float2*) &f2); \
175 f2 = fnc(f2, f2); \
187 f2 = fnc(f2, f1); \
194 f2 = fnc(f1, f2); \
201 f1 = fnc(f2); \
208 f1 = fnc(f2, f2); \
215 f2 = fnc(f2, i2); \
222 f2 = fnc(f2, i1); \
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp142 int32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
159 Get_isp_pol_16kHz(&isp[1], f2, nc - 1); in Isp_Az()
162 f2[i] = shl_int32(f2[i], 2); in Isp_Az()
168 Get_isp_pol(&isp[1], f2, nc - 1); in Isp_Az()
177 f2[i] -= f2[i - 2]; /* f2[i] -= f2[i-2]; */ in Isp_Az()
190 t1 = f2[i]; in Isp_Az()
194 f2[i] -= t1; in Isp_Az()
211 t0 = add_int32(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
223 t0 = sub_int32(f1[i], f2[i]); /* f1[i] - f2[i] */ in Isp_Az()
255 t0 = add_int32(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Ddepthwise_conv2d_dilation.mod.py48 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]) variable
51 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0, layout, 2, 2).To(o2)
56 f2: ("TENSOR_QUANT8_ASYMM", 0.01, 0),
103 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]) variable
106 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout, 2, 2).To(o2)
111 f2: ("TENSOR_QUANT8_ASYMM", 0.01, 0),
130 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}", [1, 2, 3, 4]) variable
133 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 1, 2, 2, 1, 0, layout, 3, 3).To(o2)
138 f2: ("TENSOR_QUANT8_ASYMM", 0.125, 0),
Dconv2d_dilation.mod.py43 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 3, 3, 1}", [1, 2, 3, 4, 5, 6, 7, 8, 9]) variable
46 Model().Operation("CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 0, layout, 3, 3).To(o2)
51 f2: ("TENSOR_QUANT8_ASYMM", 0.125, 0),
94 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 3, 3, 1}", [1, 2, 3, 4, 5, 6, 7, 8, 9]) variable
97 Model().Operation("CONV_2D", i2, f2, b2, 2, 1, 1, 0, layout, 3, 3).To(o2)
102 f2: ("TENSOR_QUANT8_ASYMM", 0.125, 0),
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak6 volatile float2 f2;
131 f2 = fnc(f2); \
138 f2 = fnc(f2, (float2*) &f2); \
145 f2 = fnc(f2, f2); \
157 f2 = fnc(f2, f1); \
164 f1 = fnc(f2); \
171 f1 = fnc(f2, f2); \
178 f2 = fnc(f2, i2); \
185 f2 = fnc(f2, i1); \
192 f2 = fnc(f2, f2, f2); \
[all …]
Dmath.rs.orig6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
Dmath.rscript6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript6 volatile float2 f2;
43 f2 = fnc(f2); \
50 f2 = fnc(f2, (float2*) &f2); \
57 f2 = fnc(f2, f2); \
64 f2 = fnc(f2, f1); \
71 f2 = fnc(f2, i2); \
78 f2 = fnc(f2, i1); \
85 f2 = fnc(f2, f2, f2); \
92 f2 = fnc(f2, (int2*) &i2); \
99 f2 = fnc(f2, f2, (int2*) &i2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript6 volatile float2 f2;
145 f2 = fnc(f2); \
152 f2 = fnc(f2, (float2*) &f2); \
159 f2 = fnc(f2, f2); \
171 f2 = fnc(f2, f1); \
178 f1 = fnc(f2); \
185 f1 = fnc(f2, f2); \
192 f2 = fnc(f2, i2); \
199 f2 = fnc(f2, i1); \
206 f2 = fnc(f2, f2, f2); \
[all …]
/frameworks/native/libs/ui/
DFence.cpp73 const sp<Fence>& f2) { in merge() argument
79 if (f1->isValid() && f2->isValid()) { in merge()
80 result = sync_merge(name, f1->mFenceFd, f2->mFenceFd); in merge()
83 } else if (f2->isValid()) { in merge()
84 result = sync_merge(name, f2->mFenceFd, f2->mFenceFd); in merge()
91 name, f1->mFenceFd.get(), f2->mFenceFd.get(), in merge()
99 const sp<Fence>& f2) { in merge() argument
100 return merge(name.string(), f1, f2); in merge()
/frameworks/ml/nn/runtime/test/specs/V1_3/
Ddepthwise_conv2d_quant8_signed.mod.py49 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]) variable
52 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 0, 0, 0, 0, 1, 1, 2, 0, layout, 2, 2).To(o2)
57 f2: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.125, -128),
106 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]) variable
109 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 2, 1, 1, 2, 0, layout, 2, 2).To(o2)
114 f2: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, -128),
135 f2 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}", [1, 2, 3, 4]) variable
138 Model().Operation("DEPTHWISE_CONV_2D", i2, f2, b2, 1, 2, 2, 1, 0, layout, 3, 3).To(o2)
143 f2: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.125, -128),
182 f2 = Parameter("op2", "TENSOR_QUANT8_SYMM_PER_CHANNEL", "{1, 2, 2, 4}", variable
[all …]
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rscript185 RUN_BENCH(res_f_2 = fnc(src1_f_2), "f2 " #fnc "(f2)") \
192 RUN_BENCH(res_f_2 = fnc(src1_f_2, (float2*) &src2_f_2), "f2 " #fnc "(f2, f2*)") \
199 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_2), "f2 " #fnc "(f2, f2)") \
211 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_1), "f2 " #fnc "(f2, f1)") \
218 RUN_BENCH(res_f_1 = fnc(src1_f_2), "f1 " #fnc "(f2)") \
225 RUN_BENCH(res_f_1 = fnc(src1_f_2, src2_f_2), "f1 " #fnc "(f2, f2)") \
232 RUN_BENCH(res_f_2 = fnc(src1_f_2, src1_i_2), "f2 " #fnc "(f2, i2)") \
239 RUN_BENCH(res_f_2 = fnc(src1_f_2, src1_i_1), "f2 " #fnc "(f2, i1)") \
246 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_2, src3_f_2), "f2 " #fnc "(f2, f2, f2)") \
253 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_2, src3_f_1), "f2 " #fnc "(f2, f2, f1)") \
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dlsp_az.cpp518 Word32 f2[6]; in Lsp_Az() local
527 Get_lsp_pol(&lsp[1], f2, pOverflow); in Lsp_Az()
530 p_f2 = &f2[5]; in Lsp_Az()
535 *(p_f2--) -= f2[i-1]; in Lsp_Az()
540 p_f2 = &f2[1]; in Lsp_Az()

123