Lines Matching refs:b

61   public static final int testDotProdSimple(byte[] a, byte[] b) {  in testDotProdSimple()  argument
63 for (int i = 0; i < b.length; i++) { in testDotProdSimple()
64 int temp = a[i] * b[i]; in testDotProdSimple()
102 public static final int testDotProdComplex(byte[] a, byte[] b) { in testDotProdComplex() argument
104 for (int i = 0; i < b.length; i++) { in testDotProdComplex()
105 int temp = ((byte)(a[i] + 1)) * ((byte)(b[i] + 1)); in testDotProdComplex()
145 public static final int testDotProdSimpleUnsigned(byte[] a, byte[] b) { in testDotProdSimpleUnsigned() argument
147 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsigned()
148 int temp = (a[i] & 0xff) * (b[i] & 0xff); in testDotProdSimpleUnsigned()
186 public static final int testDotProdComplexUnsigned(byte[] a, byte[] b) { in testDotProdComplexUnsigned() argument
188 for (int i = 0; i < b.length; i++) { in testDotProdComplexUnsigned()
189 int temp = (((a[i] & 0xff) + 1) & 0xff) * (((b[i] & 0xff) + 1) & 0xff); in testDotProdComplexUnsigned()
227 public static final int testDotProdComplexUnsignedCastedToSigned(byte[] a, byte[] b) { in testDotProdComplexUnsignedCastedToSigned() argument
229 for (int i = 0; i < b.length; i++) { in testDotProdComplexUnsignedCastedToSigned()
230 int temp = ((byte)((a[i] & 0xff) + 1)) * ((byte)((b[i] & 0xff) + 1)); in testDotProdComplexUnsignedCastedToSigned()
268 public static final int testDotProdComplexSignedCastedToUnsigned(byte[] a, byte[] b) { in testDotProdComplexSignedCastedToUnsigned() argument
270 for (int i = 0; i < b.length; i++) { in testDotProdComplexSignedCastedToUnsigned()
271 int temp = ((a[i] + 1) & 0xff) * ((b[i] + 1) & 0xff); in testDotProdComplexSignedCastedToUnsigned()
279 public static final int testDotProdSignedWidening(byte[] a, byte[] b) { in testDotProdSignedWidening() argument
281 for (int i = 0; i < b.length; i++) { in testDotProdSignedWidening()
282 int temp = ((short)(a[i])) * ((short)(b[i])); in testDotProdSignedWidening()
290 public static final int testDotProdParamSigned(int x, byte[] b) { in testDotProdParamSigned() argument
292 for (int i = 0; i < b.length; i++) { in testDotProdParamSigned()
293 int temp = (byte)(x) * b[i]; in testDotProdParamSigned()
301 public static final int testDotProdParamUnsigned(int x, byte[] b) { in testDotProdParamUnsigned() argument
303 for (int i = 0; i < b.length; i++) { in testDotProdParamUnsigned()
304 int temp = (x & 0xff) * (b[i] & 0xff); in testDotProdParamUnsigned()
314 public static final int testDotProdIntParam(int x, byte[] b) { in testDotProdIntParam() argument
316 for (int i = 0; i < b.length; i++) { in testDotProdIntParam()
317 int temp = b[i] * (x); in testDotProdIntParam()
325 public static final int testDotProdSignedToChar(byte[] a, byte[] b) { in testDotProdSignedToChar() argument
327 for (int i = 0; i < b.length; i++) { in testDotProdSignedToChar()
328 int temp = ((char)(a[i])) * ((char)(b[i])); in testDotProdSignedToChar()
338 public static final int testDotProdSimpleCastedToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastedToSignedByte() argument
340 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToSignedByte()
341 byte temp = (byte)(a[i] * b[i]); in testDotProdSimpleCastedToSignedByte()
349 public static final int testDotProdSimpleCastedToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastedToUnsignedByte() argument
351 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToUnsignedByte()
352 s += (a[i] * b[i]) & 0xff; in testDotProdSimpleCastedToUnsignedByte()
359 public static final int testDotProdSimpleUnsignedCastedToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToSignedByte() argument
361 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToSignedByte()
362 byte temp = (byte)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToSignedByte()
370 public static final int testDotProdSimpleUnsignedCastedToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToUnsignedByte() argument
372 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToUnsignedByte()
373 s += ((a[i] & 0xff) * (b[i] & 0xff)) & 0xff; in testDotProdSimpleUnsignedCastedToUnsignedByte()
380 public static final int testDotProdSimpleCastedToShort(byte[] a, byte[] b) { in testDotProdSimpleCastedToShort() argument
382 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToShort()
383 short temp = (short)(a[i] * b[i]); in testDotProdSimpleCastedToShort()
391 public static final int testDotProdSimpleCastedToChar(byte[] a, byte[] b) { in testDotProdSimpleCastedToChar() argument
393 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToChar()
394 char temp = (char)(a[i] * b[i]); in testDotProdSimpleCastedToChar()
402 public static final int testDotProdSimpleUnsignedCastedToShort(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToShort() argument
404 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToShort()
405 short temp = (short)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToShort()
413 public static final int testDotProdSimpleUnsignedCastedToChar(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToChar() argument
415 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToChar()
416 char temp = (char)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToChar()
424 public static final int testDotProdSimpleUnsignedCastedToLong(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToLong() argument
426 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToLong()
427 long temp = (long)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToLong()
435 public static final int testDotProdUnsignedSigned(byte[] a, byte[] b) { in testDotProdUnsignedSigned() argument
437 for (int i = 0; i < b.length; i++) { in testDotProdUnsignedSigned()
438 int temp = (a[i] & 0xff) * b[i]; in testDotProdUnsignedSigned()