Lines Matching refs:s1
26 private static char sadChar2Char(char[] s1, char[] s2) { in sadChar2Char() argument
27 int min_length = Math.min(s1.length, s2.length); in sadChar2Char()
30 sad += Math.abs(s1[i] - s2[i]); in sadChar2Char()
35 private static char sadChar2CharAlt(char[] s1, char[] s2) { in sadChar2CharAlt() argument
36 int min_length = Math.min(s1.length, s2.length); in sadChar2CharAlt()
39 char s = s1[i]; in sadChar2CharAlt()
46 private static char sadChar2CharAlt2(char[] s1, char[] s2) { in sadChar2CharAlt2() argument
47 int min_length = Math.min(s1.length, s2.length); in sadChar2CharAlt2()
50 char s = s1[i]; in sadChar2CharAlt2()
73 private static int sadChar2Int(char[] s1, char[] s2) { in sadChar2Int() argument
74 int min_length = Math.min(s1.length, s2.length); in sadChar2Int()
77 sad += Math.abs(s1[i] - s2[i]); in sadChar2Int()
96 private static int sadChar2IntAlt(char[] s1, char[] s2) { in sadChar2IntAlt() argument
97 int min_length = Math.min(s1.length, s2.length); in sadChar2IntAlt()
100 char s = s1[i]; in sadChar2IntAlt()
121 private static int sadChar2IntAlt2(char[] s1, char[] s2) { in sadChar2IntAlt2() argument
122 int min_length = Math.min(s1.length, s2.length); in sadChar2IntAlt2()
125 char s = s1[i]; in sadChar2IntAlt2()
151 private static long sadChar2Long(char[] s1, char[] s2) { in sadChar2Long() argument
152 int min_length = Math.min(s1.length, s2.length); in sadChar2Long()
155 long x = s1[i]; in sadChar2Long()
179 private static long sadChar2LongAt1(char[] s1, char[] s2) { in sadChar2LongAt1() argument
180 int min_length = Math.min(s1.length, s2.length); in sadChar2LongAt1()
183 long x = s1[i]; in sadChar2LongAt1()
192 char[] s1 = { 0, 0x8000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in main() local
194 expectEquals(1, sadChar2Char(s1, s2)); in main()
195 expectEquals(1, sadChar2Char(s2, s1)); in main()
196 expectEquals(1, sadChar2CharAlt(s1, s2)); in main()
197 expectEquals(1, sadChar2CharAlt(s2, s1)); in main()
198 expectEquals(1, sadChar2CharAlt2(s1, s2)); in main()
199 expectEquals(1, sadChar2CharAlt2(s2, s1)); in main()
200 expectEquals(1, sadChar2Int(s1, s2)); in main()
201 expectEquals(1, sadChar2Int(s2, s1)); in main()
202 expectEquals(1, sadChar2IntAlt(s1, s2)); in main()
203 expectEquals(1, sadChar2IntAlt(s2, s1)); in main()
204 expectEquals(1, sadChar2IntAlt2(s1, s2)); in main()
205 expectEquals(1, sadChar2IntAlt2(s2, s1)); in main()
206 expectEquals(1L, sadChar2Long(s1, s2)); in main()
207 expectEquals(1L, sadChar2Long(s2, s1)); in main()
208 expectEquals(2L, sadChar2LongAt1(s1, s2)); in main()
209 expectEquals(2L, sadChar2LongAt1(s2, s1)); in main()
224 s1 = new char[m]; in main()
229 s1[k] = interesting[i]; in main()
234 s1[k] = 10; in main()
236 expectEquals(56196, sadChar2Char(s1, s2)); in main()
237 expectEquals(56196, sadChar2CharAlt(s1, s2)); in main()
238 expectEquals(56196, sadChar2CharAlt2(s1, s2)); in main()
239 expectEquals(1497988, sadChar2Int(s1, s2)); in main()
240 expectEquals(1497988, sadChar2IntAlt(s1, s2)); in main()
241 expectEquals(1497988, sadChar2IntAlt2(s1, s2)); in main()
242 expectEquals(1497988L, sadChar2Long(s1, s2)); in main()
243 expectEquals(1497989L, sadChar2LongAt1(s1, s2)); in main()