Lines Matching refs:y
42 private static int sadInt2Int(int[] x, int[] y) { in sadInt2Int() argument
43 int min_length = Math.min(x.length, y.length); in sadInt2Int()
46 sad += Math.abs(x[i] - y[i]); in sadInt2Int()
68 private static int sadInt2IntAlt(int[] x, int[] y) { in sadInt2IntAlt() argument
69 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt()
73 int p = y[i]; in sadInt2IntAlt()
99 private static int sadInt2IntAlt2(int[] x, int[] y) { in sadInt2IntAlt2() argument
100 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt2()
104 int p = y[i]; in sadInt2IntAlt2()
138 private static long sadInt2Long(int[] x, int[] y) { in sadInt2Long() argument
139 int min_length = Math.min(x.length, y.length); in sadInt2Long()
143 long p = y[i]; in sadInt2Long()
175 private static long sadInt2LongAt1(int[] x, int[] y) { in sadInt2LongAt1() argument
176 int min_length = Math.min(x.length, y.length); in sadInt2LongAt1()
180 long p = y[i]; in sadInt2LongAt1()
189 int[] y = { 0, Integer.MIN_VALUE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
190 expectEquals(1, sadInt2Int(x, y)); in main()
191 expectEquals(1, sadInt2Int(y, x)); in main()
192 expectEquals(-1, sadInt2IntAlt(x, y)); in main()
193 expectEquals(-1, sadInt2IntAlt(y, x)); in main()
194 expectEquals(1, sadInt2IntAlt2(x, y)); in main()
195 expectEquals(1, sadInt2IntAlt2(y, x)); in main()
196 expectEquals(4294967295L, sadInt2Long(x, y)); in main()
197 expectEquals(4294967295L, sadInt2Long(y, x)); in main()
198 expectEquals(4294967296L, sadInt2LongAt1(x, y)); in main()
199 expectEquals(4294967296L, sadInt2LongAt1(y, x)); in main()
213 y = new int[m]; in main()
218 y[k] = interesting[j]; in main()
223 y[k] = 2; in main()
224 expectEquals(8, sadInt2Int(x, y)); in main()
225 expectEquals(-13762600, sadInt2IntAlt(x, y)); in main()
226 expectEquals(8, sadInt2IntAlt2(x, y)); in main()
227 expectEquals(2010030931928L, sadInt2Long(x, y)); in main()
228 expectEquals(2010030931929L, sadInt2LongAt1(x, y)); in main()