Lines Matching refs:y
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()
78 long p = y[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()
113 long p = y[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()
157 long[] y = { 0, Long.MAX_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()
185 y = new long[m]; in main()
190 y[k] = interesting[j]; in main()
195 y[k] = 2; 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()