Home
last modified time | relevance | path

Searched refs:v2 (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/compile/libbcc/lib/Renderscript/runtime/arch/
Dgeneric.c87 extern float __attribute__((overloadable)) fmax(float v1, float v2) { in fmax() argument
88 return v1 > v2 ? v1 : v2; in fmax()
91 extern float2 __attribute__((overloadable)) fmax(float2 v1, float2 v2) { in fmax() argument
93 r.x = v1.x > v2.x ? v1.x : v2.x; in fmax()
94 r.y = v1.y > v2.y ? v1.y : v2.y; in fmax()
98 extern float3 __attribute__((overloadable)) fmax(float3 v1, float3 v2) { in fmax() argument
100 r.x = v1.x > v2.x ? v1.x : v2.x; in fmax()
101 r.y = v1.y > v2.y ? v1.y : v2.y; in fmax()
102 r.z = v1.z > v2.z ? v1.z : v2.z; in fmax()
106 extern float4 __attribute__((overloadable)) fmax(float4 v1, float4 v2) { in fmax() argument
[all …]
Dneon.ll131 define <4 x float> @_Z4fmaxDv4_fS_(<4 x float> %v1, <4 x float> %v2) nounwind readonly {
132 …%1 = tail call <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float> %v1, <4 x float> %v2) nounwind r…
136 define <4 x float> @_Z4fmaxDv4_ff(<4 x float> %v1, float %v2) nounwind readonly {
137 %1 = tail call <4 x float> @smear_4f(float %v2) nounwind readnone
142 define <3 x float> @_Z4fmaxDv3_fS_(<3 x float> %v1, <3 x float> %v2) nounwind readonly {
144 %2 = shufflevector <3 x float> %v2, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
150 define <3 x float> @_Z4fmaxDv3_ff(<3 x float> %v1, float %v2) nounwind readonly {
152 %2 = tail call <4 x float> @smear_4f(float %v2) nounwind readnone
158 define <2 x float> @_Z4fmaxDv2_fS_(<2 x float> %v1, <2 x float> %v2) nounwind readonly {
159 …%1 = tail call <2 x float> @llvm.arm.neon.vmaxs.v2f32(<2 x float> %v1, <2 x float> %v2) nounwind r…
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUT_math_agree.java149 private float min(float v1, float v2) { in min() argument
150 return v1 < v2 ? v1 : v2; in min()
152 private float[] min(float[] v1, float[] v2) { in min() argument
153 assert v1.length == v2.length; in min()
156 rv[i] = min(v1[i], v2[i]); in min()
159 private byte min(byte v1, byte v2) { in min() argument
160 return v1 < v2 ? v1 : v2; in min()
162 private byte[] min(byte[] v1, byte[] v2) { in min() argument
163 assert v1.length == v2.length; in min()
166 rv[i] = min(v1[i], v2[i]); in min()
[all …]
DUT_bug_char.java40 private byte min(byte v1, byte v2) { in min() argument
41 return v1 < v2 ? v1 : v2; in min()
43 private byte[] min(byte[] v1, byte[] v2) { in min() argument
44 assert v1.length == v2.length; in min()
47 rv[i] = min(v1[i], v2[i]); in min()
Dmath_agree.rs58 static void fail_f1(float v1, float v2, float actual, float expected, char *op_name) {
62 rsDebug("v2", v2);
68 static void fail_f2(float2 v1, float2 v2, float2 actual, float2 expected, char *op_name) {
75 rsDebug("v2.x", v2.x);
76 rsDebug("v2.y", v2.y);
85 static void fail_f3(float3 v1, float3 v2, float3 actual, float3 expected, char *op_name) {
94 rsDebug("v2.x", v2.x);
95 rsDebug("v2.y", v2.y);
96 rsDebug("v2.z", v2.z);
108 static void fail_f4(float4 v1, float4 v2, float4 actual, float4 expected, char *op_name) {
[all …]
/frameworks/compile/libbcc/lib/Renderscript/runtime/
Drs_cl.c56 extern float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2) { \
58 r.x = fnc(v1.x, v2.x); \
59 r.y = fnc(v1.y, v2.y); \
62 extern float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2) { \
64 r.x = fnc(v1.x, v2.x); \
65 r.y = fnc(v1.y, v2.y); \
66 r.z = fnc(v1.z, v2.z); \
69 extern float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2) { \
71 r.x = fnc(v1.x, v2.x); \
72 r.y = fnc(v1.y, v2.y); \
[all …]
Dmath.ll12 define float @_Z3powf(float %v1, float %v2) {
13 %1 = tail call float @llvm.pow.f32(float %v1, float %v2)
Dpixel_packing.ll15 %v2 = fadd <4 x float> %f05, %v1
16 %v3 = tail call <4 x i8> @_Z14convert_uchar4Dv4_f(<4 x float> %v2) nounwind readnone
/frameworks/native/opengl/libagl/
Dprimitives.cpp40 vertex_t* v0, vertex_t* v1, vertex_t* v2);
45 vertex_t* v0, vertex_t* v1, vertex_t* v2);
48 vertex_t* v0, vertex_t* v1, vertex_t* v2);
51 vertex_t* v0, vertex_t* v1, vertex_t* v2);
54 vertex_t* v0, vertex_t* v1, vertex_t* v2);
57 vertex_t* v0, vertex_t* v1, vertex_t* v2);
60 vertex_t* v0, vertex_t* v1, vertex_t* v2);
63 vertex_t* v0, vertex_t* v1, vertex_t* v2);
74 vertex_t* v0, vertex_t* v1, vertex_t* v2) in lightTriangleDarkSmooth() argument
88 if(!(v2->flags & vertex_t::LIT)) { in lightTriangleDarkSmooth()
[all …]
Darray.cpp655 vertex_t *v, *v0, *v1, *v2; in drawPrimitivesTriangleFanOrStrip() local
679 v2 = v++; in drawPrimitivesTriangleFanOrStrip()
680 const uint32_t cc = v0->flags & v1->flags & v2->flags; in drawPrimitivesTriangleFanOrStrip()
682 c->prims.renderTriangle(c, v0, v1, v2); in drawPrimitivesTriangleFanOrStrip()
683 swap(((winding^=1) ? v1 : v0), v2); in drawPrimitivesTriangleFanOrStrip()
868 vertex_t* v2; in drawIndexedPrimitivesTriangleFanOrStrip() local
879 v2 = fetch_vertex(c, read_index(type, indices)); in drawIndexedPrimitivesTriangleFanOrStrip()
880 const uint32_t cc = v0->flags & v1->flags & v2->flags; in drawIndexedPrimitivesTriangleFanOrStrip()
882 c->prims.renderTriangle(c, v0, v1, v2); in drawIndexedPrimitivesTriangleFanOrStrip()
885 consumed = v2; in drawIndexedPrimitivesTriangleFanOrStrip()
[all …]
/frameworks/rs/driver/
DrsdRuntimeMath.cpp86 static uint32_t SC_max_u32(uint32_t v, uint32_t v2) {return rsMax(v, v2);} in SC_max_u32() argument
87 static uint16_t SC_max_u16(uint16_t v, uint16_t v2) {return rsMax(v, v2);} in SC_max_u16() argument
88 static uint8_t SC_max_u8(uint8_t v, uint8_t v2) {return rsMax(v, v2);} in SC_max_u8() argument
89 static int32_t SC_max_i32(int32_t v, int32_t v2) {return rsMax(v, v2);} in SC_max_i32() argument
90 static int16_t SC_max_i16(int16_t v, int16_t v2) {return rsMax(v, v2);} in SC_max_i16() argument
91 static int8_t SC_max_i8(int8_t v, int8_t v2) {return rsMax(v, v2);} in SC_max_i8() argument
93 static uint32_t SC_min_u32(uint32_t v, uint32_t v2) {return rsMin(v, v2);} in SC_min_u32() argument
94 static uint16_t SC_min_u16(uint16_t v, uint16_t v2) {return rsMin(v, v2);} in SC_min_u16() argument
95 static uint8_t SC_min_u8(uint8_t v, uint8_t v2) {return rsMin(v, v2);} in SC_min_u8() argument
96 static int32_t SC_min_i32(int32_t v, int32_t v2) {return rsMin(v, v2);} in SC_min_i32() argument
[all …]
/frameworks/support/renderscript/v8/rs_support/driver/
DrsdRuntimeMath.cpp89 static uint32_t SC_max_u32(uint32_t v, uint32_t v2) {return rsMax(v, v2);} in SC_max_u32() argument
90 static uint16_t SC_max_u16(uint16_t v, uint16_t v2) {return rsMax(v, v2);} in SC_max_u16() argument
91 static uint8_t SC_max_u8(uint8_t v, uint8_t v2) {return rsMax(v, v2);} in SC_max_u8() argument
92 static int32_t SC_max_i32(int32_t v, int32_t v2) {return rsMax(v, v2);} in SC_max_i32() argument
93 static int16_t SC_max_i16(int16_t v, int16_t v2) {return rsMax(v, v2);} in SC_max_i16() argument
94 static int8_t SC_max_i8(int8_t v, int8_t v2) {return rsMax(v, v2);} in SC_max_i8() argument
96 static uint32_t SC_min_u32(uint32_t v, uint32_t v2) {return rsMin(v, v2);} in SC_min_u32() argument
97 static uint16_t SC_min_u16(uint16_t v, uint16_t v2) {return rsMin(v, v2);} in SC_min_u16() argument
98 static uint8_t SC_min_u8(uint8_t v, uint8_t v2) {return rsMin(v, v2);} in SC_min_u8() argument
99 static int32_t SC_min_i32(int32_t v, int32_t v2) {return rsMin(v, v2);} in SC_min_i32() argument
[all …]
/frameworks/base/libs/hwui/
DPatch.cpp172 float v2 = fmax(0.0f, stepY - vOffset) / bitmapHeight; in updateVertices() local
180 generateRow(vertex, y1, y2, v1, v2, stretchX, rescaleX, right - left, in updateVertices()
220 void Patch::generateRow(TextureVertex*& vertex, float y1, float y2, float v1, float v2, in generateRow() argument
248 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount); in generateRow()
266 generateQuad(vertex, x1, y1, x2, y2, u1, v1, 1.0f, v2, quadCount); in generateRow()
271 float u1, float v1, float u2, float v2, uint32_t& quadCount) { in generateQuad() argument
285 PATCH_LOGD(" right, bottom = %.2f, %.2f\t\tu2, v2 = %.4f, %.4f", x2, y2, u2, v2); in generateQuad()
299 TextureVertex::set(vertex++, x1, y2, u1, v2); in generateQuad()
302 TextureVertex::set(vertex++, x1, y2, u1, v2); in generateQuad()
304 TextureVertex::set(vertex++, x2, y2, u2, v2); in generateQuad()
[all …]
DPatch.h78 float v1, float v2, float stretchX, float rescaleX,
82 float u1, float v1, float u2, float v2,
DFontRenderer.h127 float x2, float y2, float u2, float v2,
131 float x2, float y2, float u2, float v2,
135 float x2, float y2, float u2, float v2,
/frameworks/support/renderscript/v8/rs_support/scriptc/
Drs_cl.rsh111 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2); \
112 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2); \
113 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2);
116 _RS_RUNTIME float __attribute__((overloadable)) fnc(float2 v1, float2 v2); \
117 _RS_RUNTIME float __attribute__((overloadable)) fnc(float3 v1, float3 v2); \
118 _RS_RUNTIME float __attribute__((overloadable)) fnc(float4 v1, float4 v2);
121 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float v2); \
122 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float v2); \
123 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float v2);
126 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, int2 v2); \
[all …]
/frameworks/rs/scriptc/
Drs_cl.rsh111 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float2 v2); \
112 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float3 v2); \
113 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float4 v2);
116 _RS_RUNTIME float __attribute__((overloadable)) fnc(float2 v1, float2 v2); \
117 _RS_RUNTIME float __attribute__((overloadable)) fnc(float3 v1, float3 v2); \
118 _RS_RUNTIME float __attribute__((overloadable)) fnc(float4 v1, float4 v2);
121 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, float v2); \
122 _RS_RUNTIME float3 __attribute__((overloadable)) fnc(float3 v1, float v2); \
123 _RS_RUNTIME float4 __attribute__((overloadable)) fnc(float4 v1, float v2);
126 _RS_RUNTIME float2 __attribute__((overloadable)) fnc(float2 v1, int2 v2); \
[all …]
/frameworks/base/tools/layoutlib/bridge/tests/src/android/graphics/
DMatrix_DelegateTest.java50 float[] v2 = new float[9]; in testCopyConstructor() local
52 m2.getValues(v2); in testCopyConstructor()
55 assertEquals(v1[i], v2[i]); in testCopyConstructor()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dconceal.cpp142 uint8 *y1, *y2, *u1, *u2, *v1, *v2; in CopyVopMB() local
159 v2 = prevFrame + size + (size >> 2) + chrstart; in CopyVopMB()
182 oscl_memcpy(v1, v2, B_SIZE); in CopyVopMB()
184 v2 += width_C; in CopyVopMB()
185 oscl_memcpy(v1, v2, B_SIZE); in CopyVopMB()
187 v2 += width_C; in CopyVopMB()
/frameworks/native/opengl/tests/angeles/
Ddemo.c169 static void vector3Sub(VECTOR3 *dest, VECTOR3 *v1, VECTOR3 *v2) in vector3Sub() argument
171 dest->x = v1->x - v2->x; in vector3Sub()
172 dest->y = v1->y - v2->y; in vector3Sub()
173 dest->z = v1->z - v2->z; in vector3Sub()
244 VECTOR3 v1, v2, n; in createSuperShape() local
259 vector3Sub(&v2, &pd, &pa); in createSuperShape()
267 n.x = v1.y * v2.z - v1.z * v2.y; in createSuperShape()
268 n.y = v1.z * v2.x - v1.x * v2.z; in createSuperShape()
269 n.z = v1.x * v2.y - v1.y * v2.x; in createSuperShape()
/frameworks/compile/libbcc/tests/data/src/
DaddressOf.c14 float *v2 = &s[index].x; in testStruct() local
15 printf("testStruct: %g %g %g\n",base.x, *v, *v2); in testStruct()
/frameworks/av/services/camera/tests/CameraServiceTest/
DCameraServiceTest.cpp192 bool test(OP op, int v1, int v2);
193 void assertTest(OP op, int v1, int v2);
205 bool MCameraClient::test(OP op, int v1, int v2) { in test() argument
207 case EQ: return v1 == v2; in test()
208 case GT: return v1 > v2; in test()
209 case LT: return v1 < v2; in test()
210 case GE: return v1 >= v2; in test()
211 case LE: return v1 <= v2; in test()
217 void MCameraClient::assertTest(OP op, int v1, int v2) { in assertTest() argument
218 if (!test(op, v1, v2)) { in assertTest()
[all …]
/frameworks/compile/mclinker/unittests/
DGCFactoryListTraitsTest.cpp65 #define CHECK_LIST_VALUE(v1, v2, v3, v4, v5, v6, v7, v8, v9, v10) do { \ argument
68 CHECK_NODE_VALUE(v2); \
/frameworks/native/services/surfaceflinger/
DTransform.cpp73 const float v2 = A[2][i]; in operator *() local
74 D[0][i] = v0*B[0][0] + v1*B[0][1] + v2*B[0][2]; in operator *()
75 D[1][i] = v0*B[1][0] + v1*B[1][1] + v2*B[1][2]; in operator *()
76 D[2][i] = v0*B[2][0] + v1*B[2][1] + v2*B[2][2]; in operator *()
/frameworks/base/libs/hwui/font/
DFont.cpp92 float v2 = glyph->mBitmapMaxV; in drawCachedGlyph() local
97 mState->appendMeshQuad(nPenX, nPenY, u1, v2, in drawCachedGlyph()
98 nPenX + width, nPenY, u2, v2, in drawCachedGlyph()
154 const float v2 = glyph->mBitmapMaxV; in drawCachedGlyph() local
158 position->fY + destination[0].fY, u1, v2, in drawCachedGlyph()
160 position->fY + destination[1].fY, u2, v2, in drawCachedGlyph()

123