Lines Matching refs:x

60   private static int sadInt2Int(int[] x, int[] y) {  in sadInt2Int()  argument
61 int min_length = Math.min(x.length, y.length); in sadInt2Int()
64 sad += Math.abs(x[i] - y[i]); in sadInt2Int()
86 private static int sadInt2IntAlt(int[] x, int[] y) { in sadInt2IntAlt() argument
87 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt()
90 int s = x[i]; in sadInt2IntAlt()
135 private static int sadInt2IntAlt2(int[] x, int[] y) { in sadInt2IntAlt2() argument
136 int min_length = Math.min(x.length, y.length); in sadInt2IntAlt2()
139 int s = x[i]; in sadInt2IntAlt2()
183 private static long sadInt2Long(int[] x, int[] y) { in sadInt2Long() argument
184 int min_length = Math.min(x.length, y.length); in sadInt2Long()
187 long s = x[i]; in sadInt2Long()
229 private static long sadInt2LongAt1(int[] x, int[] y) { in sadInt2LongAt1() argument
230 int min_length = Math.min(x.length, y.length); in sadInt2LongAt1()
233 long s = x[i]; in sadInt2LongAt1()
242 int[] x = { 0, Integer.MAX_VALUE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
244 expectEquals(1, sadInt2Int(x, y)); in main()
245 expectEquals(1, sadInt2Int(y, x)); in main()
246 expectEquals(-1, sadInt2IntAlt(x, y)); in main()
247 expectEquals(-1, sadInt2IntAlt(y, x)); in main()
248 expectEquals(1, sadInt2IntAlt2(x, y)); in main()
249 expectEquals(1, sadInt2IntAlt2(y, x)); in main()
250 expectEquals(4294967295L, sadInt2Long(x, y)); in main()
251 expectEquals(4294967295L, sadInt2Long(y, x)); in main()
252 expectEquals(4294967296L, sadInt2LongAt1(x, y)); in main()
253 expectEquals(4294967296L, sadInt2LongAt1(y, x)); in main()
266 x = new int[m]; in main()
271 x[k] = interesting[i]; in main()
276 x[k] = 10; in main()
278 expectEquals(8, sadInt2Int(x, y)); in main()
279 expectEquals(-13762600, sadInt2IntAlt(x, y)); in main()
280 expectEquals(8, sadInt2IntAlt2(x, y)); in main()
281 expectEquals(2010030931928L, sadInt2Long(x, y)); in main()
282 expectEquals(2010030931929L, sadInt2LongAt1(x, y)); in main()