Lines Matching refs:s2

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()
42 short p = s2[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()
53 short p = s2[i]; in sadShort2ShortAlt2()
83 private static int sadShort2Int(short[] s1, short[] s2) { in sadShort2Int() argument
84 int min_length = Math.min(s1.length, s2.length); in sadShort2Int()
87 sad += Math.abs(s1[i] - s2[i]); in sadShort2Int()
114 private static int sadShort2IntAlt(short[] s1, short[] s2) { in sadShort2IntAlt() argument
115 int min_length = Math.min(s1.length, s2.length); in sadShort2IntAlt()
119 short p = s2[i]; in sadShort2IntAlt()
147 private static int sadShort2IntAlt2(short[] s1, short[] s2) { in sadShort2IntAlt2() argument
148 int min_length = Math.min(s1.length, s2.length); in sadShort2IntAlt2()
152 short p = s2[i]; in sadShort2IntAlt2()
282 private static long sadShort2Long(short[] s1, short[] s2) { in sadShort2Long() argument
283 int min_length = Math.min(s1.length, s2.length); in sadShort2Long()
287 long y = s2[i]; in sadShort2Long()
319 private static long sadShort2LongAt1(short[] s1, short[] s2) { in sadShort2LongAt1() argument
320 int min_length = Math.min(s1.length, s2.length); in sadShort2LongAt1()
324 long y = s2[i]; in sadShort2LongAt1()
333 short[] s2 = { 0, 32767, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
334 expectEquals(-1, sadShort2Short(s1, s2)); in main()
335 expectEquals(-1, sadShort2Short(s2, s1)); in main()
336 expectEquals(-1, sadShort2ShortAlt(s1, s2)); in main()
337 expectEquals(-1, sadShort2ShortAlt(s2, s1)); in main()
338 expectEquals(-1, sadShort2ShortAlt2(s1, s2)); in main()
339 expectEquals(-1, sadShort2ShortAlt2(s2, s1)); in main()
340 expectEquals(65535, sadShort2Int(s1, s2)); in main()
341 expectEquals(65535, sadShort2Int(s2, s1)); in main()
342 expectEquals(65535, sadShort2IntAlt(s1, s2)); in main()
343 expectEquals(65535, sadShort2IntAlt(s2, s1)); in main()
344 expectEquals(65535, sadShort2IntAlt2(s1, s2)); in main()
345 expectEquals(65535, sadShort2IntAlt2(s2, s1)); in main()
349 expectEquals(65535L, sadShort2Long(s1, s2)); in main()
350 expectEquals(65535L, sadShort2Long(s2, s1)); in main()
351 expectEquals(65536L, sadShort2LongAt1(s1, s2)); in main()
352 expectEquals(65536L, sadShort2LongAt1(s2, s1)); in main()
368 s2 = new short[m]; in main()
373 s2[k] = interesting[j]; in main()
378 s2[k] = 2; in main()
379 expectEquals(-18932, sadShort2Short(s1, s2)); in main()
380 expectEquals(-18932, sadShort2ShortAlt(s1, s2)); in main()
381 expectEquals(-18932, sadShort2ShortAlt2(s1, s2)); in main()
382 expectEquals(1291788, sadShort2Int(s1, s2)); in main()
383 expectEquals(1291788, sadShort2IntAlt(s1, s2)); in main()
384 expectEquals(1291788, sadShort2IntAlt2(s1, s2)); in main()
388 expectEquals(1291788L, sadShort2Long(s1, s2)); in main()
389 expectEquals(1291789L, sadShort2LongAt1(s1, s2)); in main()