Lines Matching refs:b
81 public static final int testDotProdSimple(byte[] a, byte[] b) { in testDotProdSimple() argument
83 for (int i = 0; i < b.length; i++) { in testDotProdSimple()
84 int temp = a[i] * b[i]; in testDotProdSimple()
143 public static final int testDotProdComplex(byte[] a, byte[] b) { in testDotProdComplex() argument
145 for (int i = 0; i < b.length; i++) { in testDotProdComplex()
146 int temp = ((byte)(a[i] + 1)) * ((byte)(b[i] + 1)); in testDotProdComplex()
206 public static final int testDotProdSimpleUnsigned(byte[] a, byte[] b) { in testDotProdSimpleUnsigned() argument
208 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsigned()
209 int temp = (a[i] & 0xff) * (b[i] & 0xff); in testDotProdSimpleUnsigned()
268 public static final int testDotProdComplexUnsigned(byte[] a, byte[] b) { in testDotProdComplexUnsigned() argument
270 for (int i = 0; i < b.length; i++) { in testDotProdComplexUnsigned()
271 int temp = (((a[i] & 0xff) + 1) & 0xff) * (((b[i] & 0xff) + 1) & 0xff); in testDotProdComplexUnsigned()
330 public static final int testDotProdComplexUnsignedCastedToSigned(byte[] a, byte[] b) { in testDotProdComplexUnsignedCastedToSigned() argument
332 for (int i = 0; i < b.length; i++) { in testDotProdComplexUnsignedCastedToSigned()
333 int temp = ((byte)((a[i] & 0xff) + 1)) * ((byte)((b[i] & 0xff) + 1)); in testDotProdComplexUnsignedCastedToSigned()
392 public static final int testDotProdComplexSignedCastedToUnsigned(byte[] a, byte[] b) { in testDotProdComplexSignedCastedToUnsigned() argument
394 for (int i = 0; i < b.length; i++) { in testDotProdComplexSignedCastedToUnsigned()
395 int temp = ((a[i] + 1) & 0xff) * ((b[i] + 1) & 0xff); in testDotProdComplexSignedCastedToUnsigned()
403 public static final int testDotProdSignedWidening(byte[] a, byte[] b) { in testDotProdSignedWidening() argument
405 for (int i = 0; i < b.length; i++) { in testDotProdSignedWidening()
406 int temp = ((short)(a[i])) * ((short)(b[i])); in testDotProdSignedWidening()
414 public static final int testDotProdParamSigned(int x, byte[] b) { in testDotProdParamSigned() argument
416 for (int i = 0; i < b.length; i++) { in testDotProdParamSigned()
417 int temp = (byte)(x) * b[i]; in testDotProdParamSigned()
425 public static final int testDotProdParamUnsigned(int x, byte[] b) { in testDotProdParamUnsigned() argument
427 for (int i = 0; i < b.length; i++) { in testDotProdParamUnsigned()
428 int temp = (x & 0xff) * (b[i] & 0xff); in testDotProdParamUnsigned()
438 public static final int testDotProdIntParam(int x, byte[] b) { in testDotProdIntParam() argument
440 for (int i = 0; i < b.length; i++) { in testDotProdIntParam()
441 int temp = b[i] * (x); in testDotProdIntParam()
449 public static final int testDotProdSignedToChar(byte[] a, byte[] b) { in testDotProdSignedToChar() argument
451 for (int i = 0; i < b.length; i++) { in testDotProdSignedToChar()
452 int temp = ((char)(a[i])) * ((char)(b[i])); in testDotProdSignedToChar()
462 public static final int testDotProdSimpleCastedToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastedToSignedByte() argument
464 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToSignedByte()
465 byte temp = (byte)(a[i] * b[i]); in testDotProdSimpleCastedToSignedByte()
473 public static final int testDotProdSimpleCastedToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastedToUnsignedByte() argument
475 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToUnsignedByte()
476 s += (a[i] * b[i]) & 0xff; in testDotProdSimpleCastedToUnsignedByte()
483 public static final int testDotProdSimpleUnsignedCastedToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToSignedByte() argument
485 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToSignedByte()
486 byte temp = (byte)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToSignedByte()
494 public static final int testDotProdSimpleUnsignedCastedToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToUnsignedByte() argument
496 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToUnsignedByte()
497 s += ((a[i] & 0xff) * (b[i] & 0xff)) & 0xff; in testDotProdSimpleUnsignedCastedToUnsignedByte()
504 public static final int testDotProdSimpleCastedToShort(byte[] a, byte[] b) { in testDotProdSimpleCastedToShort() argument
506 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToShort()
507 short temp = (short)(a[i] * b[i]); in testDotProdSimpleCastedToShort()
515 public static final int testDotProdSimpleCastedToChar(byte[] a, byte[] b) { in testDotProdSimpleCastedToChar() argument
517 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastedToChar()
518 char temp = (char)(a[i] * b[i]); in testDotProdSimpleCastedToChar()
526 public static final int testDotProdSimpleUnsignedCastedToShort(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToShort() argument
528 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToShort()
529 short temp = (short)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToShort()
537 public static final int testDotProdSimpleUnsignedCastedToChar(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToChar() argument
539 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToChar()
540 char temp = (char)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToChar()
548 public static final int testDotProdSimpleUnsignedCastedToLong(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastedToLong() argument
550 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastedToLong()
551 long temp = (long)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastedToLong()
559 public static final int testDotProdUnsignedSigned(byte[] a, byte[] b) { in testDotProdUnsignedSigned() argument
561 for (int i = 0; i < b.length; i++) { in testDotProdUnsignedSigned()
562 int temp = (a[i] & 0xff) * b[i]; in testDotProdUnsignedSigned()