Lines Matching refs:x

46   private static long sadLong2Long(long[] x, long[] y) {  in sadLong2Long()  argument
47 int min_length = Math.min(x.length, y.length); in sadLong2Long()
50 sad += Math.abs(x[i] - y[i]); in sadLong2Long()
73 private static long sadLong2LongAlt(long[] x, long[] y) { in sadLong2LongAlt() argument
74 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt()
77 long s = x[i]; in sadLong2LongAlt()
108 private static long sadLong2LongAlt2(long[] x, long[] y) { in sadLong2LongAlt2() argument
109 int min_length = Math.min(x.length, y.length); in sadLong2LongAlt2()
112 long s = x[i]; in sadLong2LongAlt2()
145 private static long sadLong2LongAt1(long[] x, long[] y) { in sadLong2LongAt1() argument
146 int min_length = Math.min(x.length, y.length); in sadLong2LongAt1()
149 sad += Math.abs(x[i] - y[i]); in sadLong2LongAt1()
156 long[] x = { 0, Long.MIN_VALUE, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
158 expectEquals(1L, sadLong2Long(x, y)); in main()
159 expectEquals(1L, sadLong2Long(y, x)); in main()
160 expectEquals(-1L, sadLong2LongAlt(x, y)); in main()
161 expectEquals(-1L, sadLong2LongAlt(y, x)); in main()
162 expectEquals(1L, sadLong2LongAlt2(x, y)); in main()
163 expectEquals(1L, sadLong2LongAlt2(y, x)); in main()
164 expectEquals(2L, sadLong2LongAt1(x, y)); in main()
165 expectEquals(2L, sadLong2LongAt1(y, x)); in main()
184 x = new long[m]; in main()
189 x[k] = interesting[i]; in main()
194 x[k] = 10; in main()
196 expectEquals(8L, sadLong2Long(x, y)); in main()
197 expectEquals(-901943132200L, sadLong2LongAlt(x, y)); in main()
198 expectEquals(8L, sadLong2LongAlt2(x, y)); in main()
199 expectEquals(9L, sadLong2LongAt1(x, y)); in main()