Lines Matching refs:b
76 public static Short4 add(Short4 a, Short4 b) { in add() argument
78 result.x = (short)(a.x + b.x); in add()
79 result.y = (short)(a.y + b.y); in add()
80 result.z = (short)(a.z + b.z); in add()
81 result.w = (short)(a.w + b.w); in add()
105 public static Short4 add(Short4 a, short b) { in add() argument
107 result.x = (short)(a.x + b); in add()
108 result.y = (short)(a.y + b); in add()
109 result.z = (short)(a.z + b); in add()
110 result.w = (short)(a.w + b); in add()
134 public static Short4 sub(Short4 a, Short4 b) { in sub() argument
136 result.x = (short)(a.x - b.x); in sub()
137 result.y = (short)(a.y - b.y); in sub()
138 result.z = (short)(a.z - b.z); in sub()
139 result.w = (short)(a.w - b.w); in sub()
163 public static Short4 sub(Short4 a, short b) { in sub() argument
165 result.x = (short)(a.x - b); in sub()
166 result.y = (short)(a.y - b); in sub()
167 result.z = (short)(a.z - b); in sub()
168 result.w = (short)(a.w - b); in sub()
192 public static Short4 mul(Short4 a, Short4 b) { in mul() argument
194 result.x = (short)(a.x * b.x); in mul()
195 result.y = (short)(a.y * b.y); in mul()
196 result.z = (short)(a.z * b.z); in mul()
197 result.w = (short)(a.w * b.w); in mul()
221 public static Short4 mul(Short4 a, short b) { in mul() argument
223 result.x = (short)(a.x * b); in mul()
224 result.y = (short)(a.y * b); in mul()
225 result.z = (short)(a.z * b); in mul()
226 result.w = (short)(a.w * b); in mul()
250 public static Short4 div(Short4 a, Short4 b) { in div() argument
252 result.x = (short)(a.x / b.x); in div()
253 result.y = (short)(a.y / b.y); in div()
254 result.z = (short)(a.z / b.z); in div()
255 result.w = (short)(a.w / b.w); in div()
279 public static Short4 div(Short4 a, short b) { in div() argument
281 result.x = (short)(a.x / b); in div()
282 result.y = (short)(a.y / b); in div()
283 result.z = (short)(a.z / b); in div()
284 result.w = (short)(a.w / b); in div()
308 public static Short4 mod(Short4 a, Short4 b) { in mod() argument
310 result.x = (short)(a.x % b.x); in mod()
311 result.y = (short)(a.y % b.y); in mod()
312 result.z = (short)(a.z % b.z); in mod()
313 result.w = (short)(a.w % b.w); in mod()
337 public static Short4 mod(Short4 a, short b) { in mod() argument
339 result.x = (short)(a.x % b); in mod()
340 result.y = (short)(a.y % b); in mod()
341 result.z = (short)(a.z % b); in mod()
342 result.w = (short)(a.w % b); in mod()
383 public static short dotProduct(Short4 a, Short4 b) { in dotProduct() argument
384 return (short)((b.x * a.x) + (b.y * a.y) + (b.z * a.z) + (b.w * a.w)); in dotProduct()
420 public void setValues(short a, short b, short c, short d) { in setValues() argument
422 this.y = b; in setValues()