Lines Matching refs:x
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()
72 int s = x[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()
103 int s = x[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()
142 long s = x[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()
179 long s = x[i]; in sadInt2LongAt1()
188 int[] x = { 0, Integer.MAX_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()
212 x = new int[m]; in main()
217 x[k] = interesting[i]; in main()
222 x[k] = 10; 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()