Home
last modified time | relevance | path

Searched refs:f1 (Results 1 – 25 of 122) sorted by relevance

12345

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_copy_test.java36 float[] f1 = new float[1024 * 2]; in testFloat2() local
38 for (int ct = 0; ct < f1.length; ct++) { in testFloat2()
39 f1[ct] = (float) ct; in testFloat2()
41 a1.copyFrom(f1); in testFloat2()
46 for (int ct = 0; ct < f1.length; ct++) { 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()
60 float[] f1 = new float[1024 * 4]; in testFloat3() local
62 for (int ct = 0; ct < f1.length; ct++) { in testFloat3()
63 f1[ct] = (float) ct; in testFloat3()
[all …]
Dmath.rscript21 volatile float f1;
160 f1 = fnc(f1); \
167 f1 = fnc(f1, (float*) &f1); \
174 f1 = fnc(f1, f1); \
186 f1 = fnc(f1, f1); \
187 f2 = fnc(f2, f1); \
188 f3 = fnc(f3, f1); \
189 f4 = fnc(f4, f1);
193 f1 = fnc(f1, f1); \
194 f2 = fnc(f1, f2); \
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_copy_test.java38 float[] f1 = new float[1024 * 2]; in testFloat2() local
40 for (int ct = 0; ct < f1.length; ct++) { in testFloat2()
41 f1[ct] = (float) ct; in testFloat2()
43 a1.copyFrom(f1); in testFloat2()
48 for (int ct = 0; ct < f1.length; ct++) { 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()
62 float[] f1 = new float[1024 * 4]; in testFloat3() local
64 for (int ct = 0; ct < f1.length; ct++) { in testFloat3()
65 f1[ct] = (float) ct; in testFloat3()
[all …]
Dmath.rscript23 volatile float f1;
162 f1 = fnc(f1); \
169 f1 = fnc(f1, (float*) &f1); \
176 f1 = fnc(f1, f1); \
188 f1 = fnc(f1, f1); \
189 f2 = fnc(f2, f1); \
190 f3 = fnc(f3, f1); \
191 f4 = fnc(f4, f1);
195 f1 = fnc(f1, f1); \
196 f2 = fnc(f1, f2); \
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_copy_test.java37 float[] f1 = new float[1024 * 2]; in testFloat2() local
39 for (int ct=0; ct < f1.length; ct++) { in testFloat2()
40 f1[ct] = (float)ct; in testFloat2()
42 a1.copyFrom(f1); in testFloat2()
47 for (int ct=0; ct < f1.length; ct++) { 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()
61 float[] f1 = new float[1024 * 4]; in testFloat3() local
63 for (int ct=0; ct < f1.length; ct++) { in testFloat3()
64 f1[ct] = (float)ct; in testFloat3()
[all …]
Dmath.rscript5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
Dkernel_struct.rscript6 float f1;
19 out->f1 = 0.f;
28 s.f1 = in.f1 + x;
40 _RS_ASSERT(aout[i].f1 == (i + ain[i].f1));
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dmath.rs.bak5 volatile float f1;
130 f1 = fnc(f1); \
137 f1 = fnc(f1, (float*) &f1); \
144 f1 = fnc(f1, f1); \
156 f1 = fnc(f1, f1); \
157 f2 = fnc(f2, f1); \
158 f3 = fnc(f3, f1); \
159 f4 = fnc(f4, f1);
163 f1 = fnc(f1); \
164 f1 = fnc(f2); \
[all …]
Dmath.rs.orig5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
Dmath.rscript5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dmath.rscript5 volatile float f1;
144 f1 = fnc(f1); \
151 f1 = fnc(f1, (float*) &f1); \
158 f1 = fnc(f1, f1); \
170 f1 = fnc(f1, f1); \
171 f2 = fnc(f2, f1); \
172 f3 = fnc(f3, f1); \
173 f4 = fnc(f4, f1);
177 f1 = fnc(f1); \
178 f1 = fnc(f2); \
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c47 Word32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
56 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
59 f1[i] = f1[i] << 2; in Isp_Az()
62 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
91 hi = f1[i] >> 16; in Isp_Az()
92 lo = (f1[i] & 0xffff)>>1; in Isp_Az()
95 f1[i] = vo_L_add(f1[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()
140 t0 = vo_L_add(f1[i], f2[i]); /* f1[i] + f2[i] */ in Isp_Az()
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_3/
Ddepthwise_conv2d_quant8_signed.mod.py21 f1 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [.25, 0., .2, 0., .25, 0., 0., .3, .25, 0.,… variable
24 Model().Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 2, 0, layout, 1, 1).To(o1)
29 f1: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.01, -128),
78 f1 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 4}", [.25, 0., .2, 0., .25, 0., 0., .3, .25, 0.,… variable
81 Model().Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 2, 1, 1, 2, 0, layout, 1, 1).To(o1)
86 f1: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.01, -128),
165 f1 = Parameter("op2", "TENSOR_QUANT8_SYMM_PER_CHANNEL", "{1, 2, 2, 2}", variable
170 Model("same").Operation("DEPTHWISE_CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 1, 0).To(o1)
220 f1 = Parameter("op2", "TENSOR_QUANT8_ASYMM_SIGNED", "{1, 2, 2, 4}, 0.5f, -1", [1, 3, 5, 7, -19, 19,… variable
229 i1, f1, b1,
[all …]
Dconv2d_quant8_signed.mod.py21 f1 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}", [.25, .25, .25, .25]) variable
24 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0, layout, 1, 1).To(o1)
29 f1: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.125, -128),
72 f1 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}", [.25, .25, .25, .25]) variable
75 Model().Operation("CONV_2D", i1, f1, b1, 2, 1, 1, 0, layout, 1, 1).To(o1)
80 f1: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.125, -128),
150 f1 = Parameter("op2", "TENSOR_QUANT8_SYMM_PER_CHANNEL", "{3, 1, 1, 2}", variable
154 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0).To(o1)
211 f1 = Parameter("op2", "TENSOR_FLOAT32", "{1, 2, 2, 1}", [.25, .25, .25, .25]) variable
214 Model().Operation("CONV_2D", i1, f1, b1, 0, 0, 0, 0, 1, 1, 0, layout).To(o1)
[all …]
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rscript184 RUN_BENCH(res_f_1 = fnc(src1_f_1), "f1 " #fnc "(f1)") \
191 RUN_BENCH(res_f_1 = fnc(src1_f_1, (float*) &src2_f_1), "f1 " #fnc "(f1, f1*)") \
198 RUN_BENCH(res_f_1 = fnc(src1_f_1, src2_f_1), "f1 " #fnc "(f1, f1)") \
210 RUN_BENCH(res_f_1 = fnc(src1_f_1, src2_f_1), "f1 " #fnc "(f1, f1)") \
211 RUN_BENCH(res_f_2 = fnc(src1_f_2, src2_f_1), "f2 " #fnc "(f2, f1)") \
212 RUN_BENCH(res_f_3 = fnc(src1_f_3, src2_f_1), "f3 " #fnc "(f3, f1)") \
213 RUN_BENCH(res_f_4 = fnc(src1_f_4, src2_f_1), "f4 " #fnc "(f4, f1)")
217 RUN_BENCH(res_f_1 = fnc(src1_f_1), "f1 " #fnc "(f1)") \
218 RUN_BENCH(res_f_1 = fnc(src1_f_2), "f1 " #fnc "(f2)") \
219 RUN_BENCH(res_f_1 = fnc(src1_f_3), "f1 " #fnc "(f3)") \
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dmath.rscript5 volatile float f1;
42 f1 = fnc(f1); \
49 f1 = fnc(f1, (float*) &f1); \
56 f1 = fnc(f1, f1); \
63 f1 = fnc(f1, f1); \
64 f2 = fnc(f2, f1); \
65 f3 = fnc(f3, f1); \
66 f4 = fnc(f4, f1);
70 f1 = fnc(f1, i1); \
77 f1 = fnc(f1, i1); \
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp142 int32 f1[NC16k + 1], f2[NC16k]; in Isp_Az() local
154 Get_isp_pol_16kHz(&isp[0], f1, nc); in Isp_Az()
157 f1[i] = shl_int32(f1[i], 2); in Isp_Az()
167 Get_isp_pol(&isp[0], f1, nc); in Isp_Az()
189 t0 = f1[i]; in Isp_Az()
193 f1[i] += t0; 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()
262 t0 = sub_int32(f1[i], f2[i]); /* f1[i] - f2[i] */ in Isp_Az()
[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) {
43 float3 tmp = f1;
44 f1 = f2;
50 double d = (f1.x * (f3.y - f2.y) - f2.x * f3.y + f3.x * f2.y + (f2.x - f3.x)
51 * f1.y);
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);
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_vts_implicit_variation/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
23 model = model.Operation("CONV_2D", i1, f1, b1, 1, 1, 1, act, layout).To(output)
34 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
43 ("NCHW", [i1, f1, output], [layout])
49 ("as_input", [f1])
/frameworks/ml/nn/tools/test_generator/tests/P_implicit_variation/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
23 model = model.Operation("CONV_2D", i1, f1, b1, 1, 1, 1, act, layout).To(output)
34 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
43 ("NCHW", [i1, f1, output], [layout])
49 ("as_input", [f1])
/frameworks/native/libs/ui/
DFence.cpp72 sp<Fence> Fence::merge(const char* name, const sp<Fence>& f1, in merge() argument
79 if (f1->isValid() && f2->isValid()) { in merge()
80 result = sync_merge(name, f1->mFenceFd, f2->mFenceFd); in merge()
81 } else if (f1->isValid()) { in merge()
82 result = sync_merge(name, f1->mFenceFd, f1->mFenceFd); in merge()
91 name, f1->mFenceFd.get(), f2->mFenceFd.get(), in merge()
98 sp<Fence> Fence::merge(const String8& name, const sp<Fence>& f1, in merge() argument
100 return merge(name.string(), f1, f2); in merge()
/frameworks/ml/nn/tools/test_generator/tests/P_variation/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
26 model = model.Operation("CONV_2D", i1, f1, b1, pad, stride0, stride1, act, layout).To(output)
37 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
43 Example((input0, output0)).AddNchw(i1, f1, output, layout).AddAllActivations(
44 output, act).AddInput(f1).AddVariations(RelaxedModeConverter(True), quant8)
/frameworks/ml/nn/tools/test_generator/tests/P_vts_variation/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
26 model = model.Operation("CONV_2D", i1, f1, b1, pad, stride0, stride1, act, layout).To(output)
37 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
45 Example((input0, output0)).AddNchw(i1, f1, output, layout).AddAllActivations(
46 output, act).AddInput(f1).AddVariations(RelaxedModeConverter(True), quant8)
/frameworks/ml/nn/tools/test_generator/tests/P_naming/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
26 model = model.Operation("CONV_2D", i1, f1, b1, pad, stride0, stride1, act, layout).To(output)
37 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
41 nchw = DataLayoutConverter("NCHW", name="nchw_layout").Identify([i1, f1, output], [layout])
44 weight_as_input = ParameterAsInputConverter(name="w_as_input").Identify([f1])
/frameworks/ml/nn/tools/test_generator/tests/P_vts_naming/
Dconv_float.mod.py17 f1 = Parameter("op2", "TENSOR_FLOAT32", "{2, 2, 2, 2}", [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, … variable
26 model = model.Operation("CONV_2D", i1, f1, b1, pad, stride0, stride1, act, layout).To(output)
37 f1: ("TENSOR_QUANT8_ASYMM", 0.25, 128),
41 nchw = DataLayoutConverter("NCHW", name="nchw_layout").Identify([i1, f1, output], [layout])
44 weight_as_input = ParameterAsInputConverter(name="w_as_input").Identify([f1])

12345