Lines Matching refs:x
29 static int sad1(char x, char y) { in sad1() argument
30 return x >= y ? x - y : y - x; in sad1()
40 static int sad2(char x, char y) { in sad2() argument
41 int diff = x - y; in sad2()
53 static int sad3(char x, char y) { in sad3() argument
54 int diff = x - y; in sad3()
65 static int sad3Alt(char x, char y) { in sad3Alt() argument
66 int diff = x - y; in sad3Alt()
77 static long sadL1(char x, char y) { in sadL1() argument
78 long xl = x; in sadL1()
90 static long sadL2(char x, char y) { in sadL2() argument
91 long diff = x - y; in sadL2()
103 static long sadL3(char x, char y) { in sadL3() argument
104 long diff = x - y; in sadL3()
115 static long sadL3Alt(char x, char y) { in sadL3Alt() argument
116 long diff = x - y; in sadL3Alt()
138 char x = interesting[i]; in main() local
140 int e = Math.abs(x - y); in main()
141 expectEquals(e, sad1(x, y)); in main()
142 expectEquals(e, sad2(x, y)); in main()
143 expectEquals(e, sad3(x, y)); in main()
144 expectEquals(e, sad3Alt(x, y)); in main()
145 expectEquals(e, sadL1(x, y)); in main()
146 expectEquals(e, sadL2(x, y)); in main()
147 expectEquals(e, sadL3(x, y)); in main()
148 expectEquals(e, sadL3Alt(x, y)); in main()