Home
last modified time | relevance | path

Searched refs:z (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/frameworks/base/rs/java/android/renderscript/
DDouble3.java31 public double z; field in Double3
39 this.z = data.z; in Double3()
42 public Double3(double x, double y, double z) { in Double3() argument
45 this.z = z; in Double3()
59 res.z = a.z + b.z; in add()
72 z += value.z; in add()
83 z += value; in add()
97 res.z = a.z + b; in add()
110 z -= value.z; in sub()
124 res.z = a.z - b.z; in sub()
[all …]
DLong3.java31 public long z; field in Long3
38 this.x = this.y = this.z = i; in Long3()
41 public Long3(long x, long y, long z) { in Long3() argument
44 this.z = z; in Long3()
51 this.z = source.z; in Long3()
62 this.z += a.z; in add()
76 result.z = a.z + b.z; in add()
89 z += value; in add()
103 result.z = a.z + b; in add()
116 this.z -= a.z; in sub()
[all …]
DShort3.java31 public short z; field in Short3
38 this.x = this.y = this.z = i; in Short3()
41 public Short3(short x, short y, short z) { in Short3() argument
44 this.z = z; in Short3()
51 this.z = source.z; in Short3()
62 this.z += a.z; in add()
76 result.z = (short)(a.z + b.z); in add()
89 z += value; in add()
103 result.z = (short)(a.z + b); in add()
116 this.z -= a.z; in sub()
[all …]
DInt3.java31 public int z; field in Int3
38 this.x = this.y = this.z = i; in Int3()
41 public Int3(int x, int y, int z) { in Int3() argument
44 this.z = z; in Int3()
51 this.z = source.z; in Int3()
62 this.z += a.z; in add()
76 result.z = a.z + b.z; in add()
89 z += value; in add()
103 result.z = a.z + b; in add()
116 this.z -= a.z; in sub()
[all …]
DFloat3.java31 public float z; field in Float3
39 this.z = data.z; in Float3()
42 public Float3(float x, float y, float z) { in Float3() argument
45 this.z = z; in Float3()
59 res.z = a.z + b.z; in add()
72 z += value.z; in add()
83 z += value; in add()
97 res.z = a.z + b; in add()
110 z -= value.z; in sub()
124 res.z = a.z - b.z; in sub()
[all …]
DByte3.java31 public byte z; field in Byte3
39 z = initZ; in Byte3()
46 this.z = source.z; in Byte3()
57 this.z += a.z; in add()
71 result.z = (byte)(a.z + b.z); in add()
84 z += value; in add()
98 result.z = (byte)(a.z + b); in add()
111 this.z -= a.z; in sub()
125 result.z = (byte)(a.z - b.z); in sub()
138 z -= value; in sub()
[all …]
DShort4.java31 public short z; field in Short4
39 this.x = this.y = this.z = this.w = i; in Short4()
42 public Short4(short x, short y, short z, short w) { in Short4() argument
45 this.z = z; in Short4()
53 this.z = source.z; in Short4()
65 this.z += a.z; in add()
80 result.z = (short)(a.z + b.z); in add()
94 z += value; in add()
109 result.z = (short)(a.z + b); in add()
123 this.z -= a.z; in sub()
[all …]
DLong4.java31 public long z; field in Long4
39 this.x = this.y = this.z = this.w = i; in Long4()
42 public Long4(long x, long y, long z, long w) { in Long4() argument
45 this.z = z; in Long4()
53 this.z = source.z; in Long4()
65 this.z += a.z; in add()
80 result.z = a.z + b.z; in add()
94 z += value; in add()
109 result.z = a.z + b; in add()
123 this.z -= a.z; in sub()
[all …]
DInt4.java31 public int z; field in Int4
39 this.x = this.y = this.z = this.w = i; in Int4()
42 public Int4(int x, int y, int z, int w) { in Int4() argument
45 this.z = z; in Int4()
53 this.z = source.z; in Int4()
65 this.z += a.z; in add()
80 result.z = a.z + b.z; in add()
94 z += value; in add()
109 result.z = a.z + b; in add()
123 this.z -= a.z; in sub()
[all …]
DFloat4.java31 public float z; field in Float4
40 this.z = data.z; in Float4()
44 public Float4(float x, float y, float z, float w) { in Float4() argument
47 this.z = z; in Float4()
62 res.z = a.z + b.z; in add()
76 z += value.z; in add()
88 z += value; in add()
103 res.z = a.z + b; in add()
117 z -= value.z; in sub()
129 z -= value; in sub()
[all …]
DDouble4.java31 public double z; field in Double4
40 this.z = data.z; in Double4()
44 public Double4(double x, double y, double z, double w) { in Double4() argument
47 this.z = z; in Double4()
62 res.z = a.z + b.z; in add()
76 z += value.z; in add()
88 z += value; in add()
103 res.z = a.z + b; in add()
117 z -= value.z; in sub()
129 z -= value; in sub()
[all …]
DByte4.java31 public byte z; field in Byte4
40 z = initZ; in Byte4()
47 this.z = source.z; in Byte4()
59 this.z += a.z; in add()
74 result.z = (byte)(a.z + b.z); in add()
88 z += value; in add()
103 result.z = (byte)(a.z + b); in add()
117 this.z -= a.z; in sub()
132 result.z = (byte)(a.z - b.z); in sub()
146 z -= value; in sub()
[all …]
/frameworks/rs/driver/runtime/arch/
Dgeneric.c45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
53 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
69 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
77 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
133 r.z = v1.z > v2.z ? v1.z : v2.z; in fmax()
141 r.z = v1.z > v2.z ? v1.z : v2.z; in fmax()
157 r.z = v1.z > v2 ? v1.z : v2; in fmax()
165 r.z = v1.z > v2 ? v1.z : v2; in fmax()
189 r.z = v1.z < v2.z ? v1.z : v2.z; in fmin()
197 r.z = v1.z < v2.z ? v1.z : v2.z; in fmin()
[all …]
Dclamp.c57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
65 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
81 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
/frameworks/rs/driver/runtime/
Drs_quaternion.c16 q->z += rhs->z; in rsQuaternionAdd()
23 q->z = -q->z; in rsQuaternionConjugate()
28 return q0->w*q1->w + q0->x*q1->x + q0->y*q1->y + q0->z*q1->z; in rsQuaternionDot()
35 float xz = q->x * q->z; in rsQuaternionGetMatrixUnit()
38 float yz = q->y * q->z; in rsQuaternionGetMatrixUnit()
40 float zz = q->z * q->z; in rsQuaternionGetMatrixUnit()
41 float zw = q->z * q->w; in rsQuaternionGetMatrixUnit()
57 rsQuaternionLoadRotateUnit(rs_quaternion* q, float rot, float x, float y, float z) { in rsQuaternionLoadRotateUnit() argument
65 q->z = z * s; in rsQuaternionLoadRotateUnit()
69 rsQuaternionSet(rs_quaternion* q, float w, float x, float y, float z) { in rsQuaternionSet() argument
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_vector.java56 if (F3.x != 1.0f || F3.y != 2.0f || F3.z != 3.0f) { in initializeGlobals()
61 F3.z = 4.99f; in initializeGlobals()
65 if (F4.x != 1.0f || F4.y != 2.0f || F4.z != 3.0f || F4.w != 4.0f) { in initializeGlobals()
70 F4.z = 4.99f; in initializeGlobals()
83 if (D3.x != 1.0 || D3.y != 2.0 || D3.z != 3.0) { in initializeGlobals()
88 D3.z = 4.99; in initializeGlobals()
92 if (D4.x != 1.0 || D4.y != 2.0 || D4.z != 3.0 || D4.w != 4.0) { in initializeGlobals()
97 D4.z = 4.99; in initializeGlobals()
110 if (B3.x != 1 || B3.y != 2 || B3.z != 3) { in initializeGlobals()
115 B3.z = 4; in initializeGlobals()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_vector.java41 if (F3.x != 1.0f || F3.y != 2.0f || F3.z != 3.0f) { in initializeGlobals()
46 F3.z = 4.99f; in initializeGlobals()
50 if (F4.x != 1.0f || F4.y != 2.0f || F4.z != 3.0f || F4.w != 4.0f) { in initializeGlobals()
55 F4.z = 4.99f; in initializeGlobals()
68 if (D3.x != 1.0 || D3.y != 2.0 || D3.z != 3.0) { in initializeGlobals()
73 D3.z = 4.99; in initializeGlobals()
77 if (D4.x != 1.0 || D4.y != 2.0 || D4.z != 3.0 || D4.w != 4.0) { in initializeGlobals()
82 D4.z = 4.99; in initializeGlobals()
95 if (B3.x != 1 || B3.y != 2 || B3.z != 3) { in initializeGlobals()
100 B3.z = 4; in initializeGlobals()
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
DUT_vector.java41 if (F3.x != 1.0f || F3.y != 2.0f || F3.z != 3.0f) { in initializeGlobals()
46 F3.z = 4.99f; in initializeGlobals()
50 if (F4.x != 1.0f || F4.y != 2.0f || F4.z != 3.0f || F4.w != 4.0f) { in initializeGlobals()
55 F4.z = 4.99f; in initializeGlobals()
68 if (D3.x != 1.0 || D3.y != 2.0 || D3.z != 3.0) { in initializeGlobals()
73 D3.z = 4.99; in initializeGlobals()
77 if (D4.x != 1.0 || D4.y != 2.0 || D4.z != 3.0 || D4.w != 4.0) { in initializeGlobals()
82 D4.z = 4.99; in initializeGlobals()
95 if (B3.x != 1 || B3.y != 2 || B3.z != 3) { in initializeGlobals()
100 B3.z = 4; in initializeGlobals()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_vector.java58 if (F3.x != 1.0f || F3.y != 2.0f || F3.z != 3.0f) { in initializeGlobals()
63 F3.z = 4.99f; in initializeGlobals()
67 if (F4.x != 1.0f || F4.y != 2.0f || F4.z != 3.0f || F4.w != 4.0f) { in initializeGlobals()
72 F4.z = 4.99f; in initializeGlobals()
85 if (D3.x != 1.0 || D3.y != 2.0 || D3.z != 3.0) { in initializeGlobals()
90 D3.z = 4.99; in initializeGlobals()
94 if (D4.x != 1.0 || D4.y != 2.0 || D4.z != 3.0 || D4.w != 4.0) { in initializeGlobals()
99 D4.z = 4.99; in initializeGlobals()
112 if (B3.x != 1 || B3.y != 2 || B3.z != 3) { in initializeGlobals()
117 B3.z = 4; in initializeGlobals()
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
DUT_vector.java41 if (F3.x != 1.0f || F3.y != 2.0f || F3.z != 3.0f) { in initializeGlobals()
46 F3.z = 4.99f; in initializeGlobals()
50 if (F4.x != 1.0f || F4.y != 2.0f || F4.z != 3.0f || F4.w != 4.0f) { in initializeGlobals()
55 F4.z = 4.99f; in initializeGlobals()
68 if (D3.x != 1.0 || D3.y != 2.0 || D3.z != 3.0) { in initializeGlobals()
73 D3.z = 4.99; in initializeGlobals()
77 if (D4.x != 1.0 || D4.y != 2.0 || D4.z != 3.0 || D4.w != 4.0) { in initializeGlobals()
82 D4.z = 4.99; in initializeGlobals()
95 if (B3.x != 1 || B3.y != 2 || B3.z != 3) { in initializeGlobals()
100 B3.z = 4; in initializeGlobals()
[all …]
/frameworks/rs/driver/runtime/ll64/
Dallocation.ll6 …re i8* @rsOffset(%struct.rs_allocation* nocapture readonly %a, i32 %sizeOf, i32 %x, i32 %y, i32 %z)
7 declare i8* @rsOffsetNs(%struct.rs_allocation* nocapture readonly %a, i32 %x, i32 %y, i32 %z)
38 …pl_char(%struct.rs_allocation* nocapture readonly %a, i8 signext %val, i32 %x, i32 %y, i32 %z) #1 {
39 %1 = tail call i8* @rsOffset(%struct.rs_allocation* %a, i32 1, i32 %x, i32 %y, i32 %z) #2
44 …@rsGetElementAtImpl_char(%struct.rs_allocation* nocapture readonly %a, i32 %x, i32 %y, i32 %z) #0 {
45 %1 = tail call i8* @rsOffset(%struct.rs_allocation* %a, i32 1, i32 %x, i32 %y, i32 %z) #2
51 …ntAtImpl_char2(%struct.rs_allocation* nocapture readonly %a, i16 %val, i32 %x, i32 %y, i32 %z) #1 {
52 %1 = tail call i8* @rsOffset(%struct.rs_allocation* %a, i32 2, i32 %x, i32 %y, i32 %z) #2
59 …rsGetElementAtImpl_char2(%struct.rs_allocation* nocapture readonly %a, i32 %x, i32 %y, i32 %z) #0 {
60 %1 = tail call i8* @rsOffset(%struct.rs_allocation* %a, i32 2, i32 %x, i32 %y, i32 %z) #2
[all …]
/frameworks/rs/driver/runtime/ll32/
Dallocation.ll4 declare i8* @rsOffset([1 x i32] %a.coerce, i32 %sizeOf, i32 %x, i32 %y, i32 %z)
5 declare i8* @rsOffsetNs([1 x i32] %a.coerce, i32 %x, i32 %y, i32 %z)
36 define void @rsSetElementAtImpl_char([1 x i32] %a.coerce, i8 signext %val, i32 %x, i32 %y, i32 %z) …
37 %1 = tail call i8* @rsOffset([1 x i32] %a.coerce, i32 1, i32 %x, i32 %y, i32 %z) #2
42 define signext i8 @rsGetElementAtImpl_char([1 x i32] %a.coerce, i32 %x, i32 %y, i32 %z) #0 {
43 %1 = tail call i8* @rsOffset([1 x i32] %a.coerce, i32 1, i32 %x, i32 %y, i32 %z) #2
49 define void @rsSetElementAtImpl_char2([1 x i32] %a.coerce, <2 x i8> %val, i32 %x, i32 %y, i32 %z) #…
50 %1 = tail call i8* @rsOffset([1 x i32] %a.coerce, i32 2, i32 %x, i32 %y, i32 %z) #2
56 define <2 x i8> @rsGetElementAtImpl_char2([1 x i32] %a.coerce, i32 %x, i32 %y, i32 %z) #0 {
57 %1 = tail call i8* @rsOffset([1 x i32] %a.coerce, i32 2, i32 %x, i32 %y, i32 %z) #2
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript51 zoomFactor = dz.x * dz.x + dz.y * dz.y + dz.z * dz.z;
52 zoomFactor /= dx.x * dx.x + dx.y * dx.y + dx.z * dx.z;
59 mLight = mLightRelitvePos.x + dx + mLightRelitvePos.y * dy + mLightRelitvePos.z * dz;
74 float v = mix(v_0, v_1, delta.z);
87 int bz = p.z >> 5;
91 int off = brickno + (p.z & 0x1F) * 32 + (p.y & 0x1F);
121 short pix = rsGetElementAt_short(volume, ip.x, ip.y, ip.z);
141 // short2 tmps = rsAllocationVLoadX_short2(volume, ip.x + 0, ip.y + 0, ip.z + 0);
143 float v_0_0_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 0, ip.z + 0);
144 float v_0_0_1 = (float) rsGetElementAt_short(volume, ip.x + 1, ip.y + 0, ip.z + 0);
[all …]
/frameworks/native/libs/math/tests/
Dquat_test.cpp50 EXPECT_EQ(q0.z, 0); in TEST_F()
56 EXPECT_EQ(q1.z, 0); in TEST_F()
62 EXPECT_EQ(q2.z, 4); in TEST_F()
68 EXPECT_EQ(q3.z, 4); in TEST_F()
74 EXPECT_EQ(q4.z, 4); in TEST_F()
80 EXPECT_EQ(q5.z, 42); in TEST_F()
87 EXPECT_EQ(q6.z, 0); in TEST_F()
93 EXPECT_EQ(q7.z, 4); in TEST_F()
99 EXPECT_EQ(qf.z, 0); in TEST_F()
107 q0.z = 30; in TEST_F()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMath.cpp55 static void SC_MatrixLoadRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixLoadRotate() argument
56 m->loadRotate(rot, x, y, z); in SC_MatrixLoadRotate()
58 static void SC_MatrixLoadScale(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixLoadScale() argument
59 m->loadScale(x, y, z); in SC_MatrixLoadScale()
61 static void SC_MatrixLoadTranslate(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixLoadTranslate() argument
62 m->loadTranslate(x, y, z); in SC_MatrixLoadTranslate()
64 static void SC_MatrixRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixRotate() argument
65 m->rotate(rot, x, y, z); in SC_MatrixRotate()
67 static void SC_MatrixScale(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixScale() argument
68 m->scale(x, y, z); in SC_MatrixScale()
[all …]

12345678910>>...19