Home | History | Annotate | Download | only in renderscript

Lines Matching full:byte

25     public byte x;
26 public byte y;
27 public byte z;
28 public byte w;
33 public Byte4(byte initX, byte initY, byte initZ, byte initW) {
68 result.x = (byte)(a.x + b.x);
69 result.y = (byte)(a.y + b.y);
70 result.z = (byte)(a.z + b.z);
71 result.w = (byte)(a.w + b.w);
81 public void add(byte value) {
95 public static Byte4 add(Byte4 a, byte b) {
97 result.x = (byte)(a.x + b);
98 result.y = (byte)(a.y + b);
99 result.z = (byte)(a.z + b);
100 result.w = (byte)(a.w + b);
126 result.x = (byte)(a.x - b.x);
127 result.y = (byte)(a.y - b.y);
128 result.z = (byte)(a.z - b.z);
129 result.w = (byte)(a.w - b.w);
139 public void sub(byte value) {
153 public static Byte4 sub(Byte4 a, byte b) {
155 result.x = (byte)(a.x - b);
156 result.y = (byte)(a.y - b);
157 result.z = (byte)(a.z - b);
158 result.w = (byte)(a.w - b);
184 result.x = (byte)(a.x * b.x);
185 result.y = (byte)(a.y * b.y);
186 result.z = (byte)(a.z * b.z);
187 result.w = (byte)(a.w * b.w);
197 public void mul(byte value) {
211 public static Byte4 mul(Byte4 a, byte b) {
213 result.x = (byte)(a.x * b);
214 result.y = (byte)(a.y * b);
215 result.z = (byte)(a.z * b);
216 result.w = (byte)(a.w * b);
242 result.x = (byte)(a.x / b.x);
243 result.y = (byte)(a.y / b.y);
244 result.z = (byte)(a.z / b.z);
245 result.w = (byte)(a.w / b.w);
255 public void div(byte value) {
269 public static Byte4 div(Byte4 a, byte b) {
271 result.x = (byte)(a.x / b);
272 result.y = (byte)(a.y / b);
273 result.z = (byte)(a.z / b);
274 result.w = (byte)(a.w / b);
284 public byte length() {
292 this.x = (byte)(-x);
293 this.y = (byte)(-y);
294 this.z = (byte)(-z);
295 this.w = (byte)(-w);
304 public byte dotProduct(Byte4 a) {
305 return (byte)((x * a.x) + (y * a.y) + (z * a.z) + (w * a.w));
315 public static byte dotProduct(Byte4 a, Byte4 b) {
316 return (byte)((b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w));
325 public void addMultiple(Byte4 a, byte factor) {
352 public void setValues(byte a, byte b, byte c, byte d) {
364 public byte elementSum() {
365 return (byte)(x + y + z + w);
374 public byte get(int i) {
395 public void setAt(int i, byte value) {
420 public void addAt(int i, byte value) {
445 public void copyTo(byte[] data, int offset) {