Lines Matching refs:s1
28 private static short sadShort2Short(short[] s1, short[] s2) { in sadShort2Short() argument
29 int min_length = Math.min(s1.length, s2.length); in sadShort2Short()
32 sad += Math.abs(s1[i] - s2[i]); in sadShort2Short()
37 private static short sadShort2ShortAlt(short[] s1, short[] s2) { in sadShort2ShortAlt() argument
38 int min_length = Math.min(s1.length, s2.length); in sadShort2ShortAlt()
41 short s = s1[i]; in sadShort2ShortAlt()
48 private static short sadShort2ShortAlt2(short[] s1, short[] s2) { in sadShort2ShortAlt2() argument
49 int min_length = Math.min(s1.length, s2.length); in sadShort2ShortAlt2()
52 short s = s1[i]; in sadShort2ShortAlt2()
92 private static int sadShort2Int(short[] s1, short[] s2) { in sadShort2Int() argument
93 int min_length = Math.min(s1.length, s2.length); in sadShort2Int()
96 sad += Math.abs(s1[i] - s2[i]); in sadShort2Int()
132 private static int sadShort2IntAlt(short[] s1, short[] s2) { in sadShort2IntAlt() argument
133 int min_length = Math.min(s1.length, s2.length); in sadShort2IntAlt()
136 short s = s1[i]; in sadShort2IntAlt()
174 private static int sadShort2IntAlt2(short[] s1, short[] s2) { in sadShort2IntAlt2() argument
175 int min_length = Math.min(s1.length, s2.length); in sadShort2IntAlt2()
178 short s = s1[i]; in sadShort2IntAlt2()
345 private static long sadShort2Long(short[] s1, short[] s2) { in sadShort2Long() argument
346 int min_length = Math.min(s1.length, s2.length); in sadShort2Long()
349 long x = s1[i]; in sadShort2Long()
391 private static long sadShort2LongAt1(short[] s1, short[] s2) { in sadShort2LongAt1() argument
392 int min_length = Math.min(s1.length, s2.length); in sadShort2LongAt1()
395 long x = s1[i]; in sadShort2LongAt1()
404 short[] s1 = { 0, -32768, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
406 expectEquals(-1, sadShort2Short(s1, s2)); in main()
407 expectEquals(-1, sadShort2Short(s2, s1)); in main()
408 expectEquals(-1, sadShort2ShortAlt(s1, s2)); in main()
409 expectEquals(-1, sadShort2ShortAlt(s2, s1)); in main()
410 expectEquals(-1, sadShort2ShortAlt2(s1, s2)); in main()
411 expectEquals(-1, sadShort2ShortAlt2(s2, s1)); in main()
412 expectEquals(65535, sadShort2Int(s1, s2)); in main()
413 expectEquals(65535, sadShort2Int(s2, s1)); in main()
414 expectEquals(65535, sadShort2IntAlt(s1, s2)); in main()
415 expectEquals(65535, sadShort2IntAlt(s2, s1)); in main()
416 expectEquals(65535, sadShort2IntAlt2(s1, s2)); in main()
417 expectEquals(65535, sadShort2IntAlt2(s2, s1)); in main()
418 expectEquals(32880, sadShort2IntConstant1(s1)); in main()
419 expectEquals(32880, sadShort2IntConstant2(s1)); in main()
420 expectEquals(32866, sadShort2IntConstant3(s1)); in main()
421 expectEquals(65535L, sadShort2Long(s1, s2)); in main()
422 expectEquals(65535L, sadShort2Long(s2, s1)); in main()
423 expectEquals(65536L, sadShort2LongAt1(s1, s2)); in main()
424 expectEquals(65536L, sadShort2LongAt1(s2, s1)); in main()
439 s1 = new short[m]; in main()
444 s1[k] = interesting[i]; in main()
449 s1[k] = 10; in main()
451 expectEquals(-18932, sadShort2Short(s1, s2)); in main()
452 expectEquals(-18932, sadShort2ShortAlt(s1, s2)); in main()
453 expectEquals(-18932, sadShort2ShortAlt2(s1, s2)); in main()
454 expectEquals(1291788, sadShort2Int(s1, s2)); in main()
455 expectEquals(1291788, sadShort2IntAlt(s1, s2)); in main()
456 expectEquals(1291788, sadShort2IntAlt2(s1, s2)); in main()
457 expectEquals(823907, sadShort2IntConstant1(s1)); in main()
458 expectEquals(823907, sadShort2IntConstant2(s1)); in main()
459 expectEquals(823953, sadShort2IntConstant3(s1)); in main()
460 expectEquals(1291788L, sadShort2Long(s1, s2)); in main()
461 expectEquals(1291789L, sadShort2LongAt1(s1, s2)); in main()