Lines Matching refs:b1
24 private static byte sadByte2Byte(byte[] b1, byte[] b2) { in sadByte2Byte() argument
25 int min_length = Math.min(b1.length, b2.length); in sadByte2Byte()
28 sad += Math.abs(b1[i] - b2[i]); in sadByte2Byte()
33 private static byte sadByte2ByteAlt(byte[] b1, byte[] b2) { in sadByte2ByteAlt() argument
34 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt()
37 byte s = b1[i]; in sadByte2ByteAlt()
44 private static byte sadByte2ByteAlt2(byte[] b1, byte[] b2) { in sadByte2ByteAlt2() argument
45 int min_length = Math.min(b1.length, b2.length); in sadByte2ByteAlt2()
48 byte s = b1[i]; in sadByte2ByteAlt2()
57 private static short sadByte2Short(byte[] b1, byte[] b2) { in sadByte2Short() argument
58 int min_length = Math.min(b1.length, b2.length); in sadByte2Short()
61 sad += Math.abs(b1[i] - b2[i]); in sadByte2Short()
66 private static short sadByte2ShortAlt(byte[] b1, byte[] b2) { in sadByte2ShortAlt() argument
67 int min_length = Math.min(b1.length, b2.length); in sadByte2ShortAlt()
70 byte s = b1[i]; in sadByte2ShortAlt()
77 private static short sadByte2ShortAlt2(byte[] b1, byte[] b2) { in sadByte2ShortAlt2() argument
78 int min_length = Math.min(b1.length, b2.length); in sadByte2ShortAlt2()
81 byte s = b1[i]; in sadByte2ShortAlt2()
112 private static int sadByte2Int(byte[] b1, byte[] b2) { in sadByte2Int() argument
113 int min_length = Math.min(b1.length, b2.length); in sadByte2Int()
116 sad += Math.abs(b1[i] - b2[i]); in sadByte2Int()
143 private static int sadByte2IntAlt(byte[] b1, byte[] b2) { in sadByte2IntAlt() argument
144 int min_length = Math.min(b1.length, b2.length); in sadByte2IntAlt()
147 byte s = b1[i]; in sadByte2IntAlt()
176 private static int sadByte2IntAlt2(byte[] b1, byte[] b2) { in sadByte2IntAlt2() argument
177 int min_length = Math.min(b1.length, b2.length); in sadByte2IntAlt2()
180 byte s = b1[i]; in sadByte2IntAlt2()
215 private static long sadByte2Long(byte[] b1, byte[] b2) { in sadByte2Long() argument
216 int min_length = Math.min(b1.length, b2.length); in sadByte2Long()
219 long x = b1[i]; in sadByte2Long()
252 private static long sadByte2LongAt1(byte[] b1, byte[] b2) { in sadByte2LongAt1() argument
253 int min_length = Math.min(b1.length, b2.length); in sadByte2LongAt1()
256 long x = b1[i]; in sadByte2LongAt1()
265 byte[] b1 = { 0, -128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main()
267 expectEquals(-1, sadByte2Byte(b1, b2)); in main()
268 expectEquals(-1, sadByte2Byte(b2, b1)); in main()
269 expectEquals(-1, sadByte2ByteAlt(b1, b2)); in main()
270 expectEquals(-1, sadByte2ByteAlt(b2, b1)); in main()
271 expectEquals(-1, sadByte2ByteAlt2(b1, b2)); in main()
272 expectEquals(-1, sadByte2ByteAlt2(b2, b1)); in main()
273 expectEquals(255, sadByte2Short(b1, b2)); in main()
274 expectEquals(255, sadByte2Short(b2, b1)); in main()
275 expectEquals(255, sadByte2ShortAlt(b1, b2)); in main()
276 expectEquals(255, sadByte2ShortAlt(b2, b1)); in main()
277 expectEquals(255, sadByte2ShortAlt2(b1, b2)); in main()
278 expectEquals(255, sadByte2ShortAlt2(b2, b1)); in main()
279 expectEquals(255, sadByte2Int(b1, b2)); in main()
280 expectEquals(255, sadByte2Int(b2, b1)); in main()
281 expectEquals(255, sadByte2IntAlt(b1, b2)); in main()
282 expectEquals(255, sadByte2IntAlt(b2, b1)); in main()
283 expectEquals(255, sadByte2IntAlt2(b1, b2)); in main()
284 expectEquals(255, sadByte2IntAlt2(b2, b1)); in main()
285 expectEquals(255, sadByte2Long(b1, b2)); in main()
286 expectEquals(255L, sadByte2Long(b2, b1)); in main()
287 expectEquals(256L, sadByte2LongAt1(b1, b2)); in main()
288 expectEquals(256L, sadByte2LongAt1(b2, b1)); in main()
295 b1 = new byte[m]; in main()
299 b1[k] = (byte) i; in main()
304 b1[k] = 10; in main()
306 expectEquals(8, sadByte2Byte(b1, b2)); in main()
307 expectEquals(8, sadByte2ByteAlt(b1, b2)); in main()
308 expectEquals(8, sadByte2ByteAlt2(b1, b2)); in main()
309 expectEquals(21768, sadByte2Short(b1, b2)); in main()
310 expectEquals(21768, sadByte2ShortAlt(b1, b2)); in main()
311 expectEquals(21768, sadByte2ShortAlt2(b1, b2)); in main()
312 expectEquals(5592328, sadByte2Int(b1, b2)); in main()
313 expectEquals(5592328, sadByte2IntAlt(b1, b2)); in main()
314 expectEquals(5592328, sadByte2IntAlt2(b1, b2)); in main()
315 expectEquals(5592328L, sadByte2Long(b1, b2)); in main()
316 expectEquals(5592329L, sadByte2LongAt1(b1, b2)); in main()