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 testDotProdComplexUnsignedCastToSigned(byte[] a, byte[] b) { in testDotProdComplexUnsignedCastToSigned() argument
332 for (int i = 0; i < b.length; i++) { in testDotProdComplexUnsignedCastToSigned()
333 int temp = ((byte)((a[i] & 0xff) + 1)) * ((byte)((b[i] & 0xff) + 1)); in testDotProdComplexUnsignedCastToSigned()
392 public static final int testDotProdComplexSignedCastToUnsigned(byte[] a, byte[] b) { in testDotProdComplexSignedCastToUnsigned() argument
394 for (int i = 0; i < b.length; i++) { in testDotProdComplexSignedCastToUnsigned()
395 int temp = ((a[i] + 1) & 0xff) * ((b[i] + 1) & 0xff); in testDotProdComplexSignedCastToUnsigned()
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 testDotProdSimpleCastToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastToSignedByte() argument
464 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastToSignedByte()
465 byte temp = (byte)(a[i] * b[i]); in testDotProdSimpleCastToSignedByte()
473 public static final int testDotProdSimpleCastToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleCastToUnsignedByte() argument
475 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastToUnsignedByte()
476 s += (a[i] * b[i]) & 0xff; in testDotProdSimpleCastToUnsignedByte()
483 public static final int testDotProdSimpleUnsignedCastToSignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastToSignedByte() argument
485 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastToSignedByte()
486 byte temp = (byte)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastToSignedByte()
494 public static final int testDotProdSimpleUnsignedCastToUnsignedByte(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastToUnsignedByte() argument
496 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastToUnsignedByte()
497 s += ((a[i] & 0xff) * (b[i] & 0xff)) & 0xff; in testDotProdSimpleUnsignedCastToUnsignedByte()
504 public static final int testDotProdSimpleCastToShort(byte[] a, byte[] b) { in testDotProdSimpleCastToShort() argument
506 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastToShort()
507 short temp = (short)(a[i] * b[i]); in testDotProdSimpleCastToShort()
515 public static final int testDotProdSimpleCastToChar(byte[] a, byte[] b) { in testDotProdSimpleCastToChar() argument
517 for (int i = 0; i < b.length; i++) { in testDotProdSimpleCastToChar()
518 char temp = (char)(a[i] * b[i]); in testDotProdSimpleCastToChar()
526 public static final int testDotProdSimpleUnsignedCastToShort(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastToShort() argument
528 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastToShort()
529 short temp = (short)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastToShort()
537 public static final int testDotProdSimpleUnsignedCastToChar(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastToChar() argument
539 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastToChar()
540 char temp = (char)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastToChar()
548 public static final int testDotProdSimpleUnsignedCastToLong(byte[] a, byte[] b) { in testDotProdSimpleUnsignedCastToLong() argument
550 for (int i = 0; i < b.length; i++) { in testDotProdSimpleUnsignedCastToLong()
551 long temp = (long)((a[i] & 0xff) * (b[i] & 0xff)); in testDotProdSimpleUnsignedCastToLong()
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()