Lines Matching refs:i
37 for (int i = 0; i < 128; i++) in add()
38 a[i] += x; in add()
50 for (int i = 0; i < 128; i++) in sub()
51 a[i] -= x; in sub()
63 for (int i = 0; i < 128; i++) in mul()
64 a[i] *= x; in mul()
77 for (int i = 0; i < 128; i++) in div()
78 a[i] /= x; in div()
90 for (int i = 0; i < 128; i++) in neg()
91 a[i] = (char) -a[i]; in neg()
103 for (int i = 0; i < 128; i++) in not()
104 a[i] = (char) ~a[i]; in not()
116 for (int i = 0; i < 128; i++) in shl4()
117 a[i] <<= 4; in shl4()
128 for (int i = 0; i < 128; i++) in sar2()
129 a[i] >>= 2; in sar2()
141 for (int i = 0; i < 128; i++) in shr2()
142 a[i] >>>= 2; in shr2()
150 for (int i = 0; i < 128; i++) in sar31()
151 a[i] >>= 31; in sar31()
155 for (int i = 0; i < 128; i++) in shr31()
156 a[i] >>>= 31; in shr31()
160 for (int i = 0; i < 128; i++) in shr32()
161 a[i] >>>= 32; // 0, since & 31 in shr32()
165 for (int i = 0; i < 128; i++) in shr33()
166 a[i] >>>= 33; // 1, since & 31 in shr33()
174 for (int i = 1; i < 127; i++) in bounds()
175 a[i] += 11; in bounds()
185 for (int i = 0; i < 128; i++) { in main()
186 a[i] = (char) i; in main()
190 for (int i = 0; i < 128; i++) { in main()
191 expectEquals(i + 2, a[i], "add"); in main()
194 for (int i = 0; i < 128; i++) { in main()
195 expectEquals(i, a[i], "sub"); in main()
198 for (int i = 0; i < 128; i++) { in main()
199 expectEquals(i + i, a[i], "mul"); in main()
202 for (int i = 0; i < 128; i++) { in main()
203 expectEquals(i, a[i], "div"); in main()
206 for (int i = 0; i < 128; i++) { in main()
207 expectEquals((char)-i, a[i], "neg"); in main()
212 for (int i = 1; i < 127; i++) { in main()
213 expectEquals((char)(11 - i), a[i], "bounds"); in main()
217 for (int i = 0; i < 128; i++) { in main()
218 a[i] = (char) 0xffff; in main()
221 for (int i = 0; i < 128; i++) { in main()
222 expectEquals((char) 0xfff0, a[i], "shl4"); in main()
225 for (int i = 0; i < 128; i++) { in main()
226 expectEquals((char) 0x3ffc, a[i], "sar2"); in main()
229 for (int i = 0; i < 128; i++) { in main()
230 expectEquals((char) 0x0fff, a[i], "shr2"); in main()
231 a[i] = (char) 0xffff; // reset in main()
234 for (int i = 0; i < 128; i++) { in main()
235 expectEquals(0, a[i], "sar31"); in main()
236 a[i] = (char) 0xffff; // reset in main()
239 for (int i = 0; i < 128; i++) { in main()
240 expectEquals(0, a[i], "shr31"); in main()
241 a[i] = (char) 0x1200; // reset in main()
244 for (int i = 0; i < 128; i++) { in main()
245 expectEquals((char) 0x1200, a[i], "shr32"); in main()
248 for (int i = 0; i < 128; i++) { in main()
249 expectEquals((char) 0x0900, a[i], "shr33"); in main()
250 a[i] = (char) 0xf1f0; // reset in main()
253 for (int i = 0; i < 128; i++) { in main()
254 expectEquals((char) 0x0e0f, a[i], "not"); in main()