Lines Matching refs:sad
26 byte sad = 0; in sadByte2Byte()
28 sad += Math.abs(b1[i] - b2[i]); in sadByte2Byte()
30 return sad; in sadByte2Byte()
35 byte sad = 0; in sadByte2ByteAlt()
39 sad += s >= p ? s - p : p - s; in sadByte2ByteAlt()
41 return sad; in sadByte2ByteAlt()
46 byte sad = 0; in sadByte2ByteAlt2()
52 sad += x; in sadByte2ByteAlt2()
54 return sad; in sadByte2ByteAlt2()
59 short sad = 0; in sadByte2Short() local
61 sad += Math.abs(b1[i] - b2[i]); in sadByte2Short()
63 return sad; in sadByte2Short()
68 short sad = 0; in sadByte2ShortAlt() local
72 sad += s >= p ? s - p : p - s; in sadByte2ShortAlt()
74 return sad; in sadByte2ShortAlt()
79 short sad = 0; in sadByte2ShortAlt2() local
85 sad += x; in sadByte2ShortAlt2()
87 return sad; in sadByte2ShortAlt2()
114 int sad = 0; in sadByte2Int() local
116 sad += Math.abs(b1[i] - b2[i]); in sadByte2Int()
118 return sad; in sadByte2Int()
145 int sad = 0; in sadByte2IntAlt() local
149 sad += s >= p ? s - p : p - s; in sadByte2IntAlt()
151 return sad; in sadByte2IntAlt()
178 int sad = 0; in sadByte2IntAlt2() local
184 sad += x; in sadByte2IntAlt2()
186 return sad; in sadByte2IntAlt2()
217 long sad = 0; in sadByte2Long() local
221 sad += Math.abs(x - y); in sadByte2Long()
223 return sad; in sadByte2Long()
254 long sad = 1; // starts at 1 in sadByte2LongAt1() local
258 sad += Math.abs(x - y); in sadByte2LongAt1()
260 return sad; in sadByte2LongAt1()