Lines Matching refs:i
39 for (int i = 0; i < 128; i++) in add()
40 a[i] += x; in add()
54 for (int i = 0; i < 128; i++) in sub()
55 a[i] -= x; in sub()
69 for (int i = 0; i < 128; i++) in mul()
70 a[i] *= x; in mul()
83 for (int i = 0; i < 128; i++) in div()
84 a[i] /= x; in div()
98 for (int i = 0; i < 128; i++) in neg()
99 a[i] = (byte) -a[i]; in neg()
113 for (int i = 0; i < 128; i++) in not()
114 a[i] = (byte) ~a[i]; in not()
128 for (int i = 0; i < 128; i++) in shl4()
129 a[i] <<= 4; in shl4()
141 for (int i = 0; i < 128; i++) in sar2()
142 a[i] >>= 2; in sar2()
154 for (int i = 0; i < 128; i++) in shr2()
155 a[i] >>>= 2; in shr2()
163 for (int i = 0; i < 128; i++) in sar31()
164 a[i] >>= 31; in sar31()
168 for (int i = 0; i < 128; i++) in shr31()
169 a[i] >>>= 31; in shr31()
173 for (int i = 0; i < 128; i++) in shr32()
174 a[i] >>>= 32; // 0, since & 31 in shr32()
178 for (int i = 0; i < 128; i++) in shr33()
179 a[i] >>>= 33; // 1, since & 31 in shr33()
183 for (int i = 0; i < 128; i++) in shl9()
184 a[i] <<= 9; // yields all-zeros in shl9()
192 for (int i = 1; i < 127; i++) in bounds()
193 a[i] += 11; in bounds()
203 for (int i = 0; i < 128; i++) { in main()
204 a[i] = (byte) i; in main()
208 for (int i = 0; i < 128; i++) { in main()
209 expectEquals((byte)(i + 2), a[i], "add"); in main()
212 for (int i = 0; i < 128; i++) { in main()
213 expectEquals(i, a[i], "sub"); in main()
216 for (int i = 0; i < 128; i++) { in main()
217 expectEquals((byte)(i + i), a[i], "mul"); in main()
220 for (int i = 0; i < 128; i++) { in main()
221 expectEquals(((byte)(i + i)) >> 1, a[i], "div"); in main()
222 a[i] = (byte) i; // undo arithmetic wrap-around effects in main()
225 for (int i = 0; i < 128; i++) { in main()
226 expectEquals(-i, a[i], "neg"); in main()
231 for (int i = 1; i < 127; i++) { in main()
232 expectEquals(11 - i, a[i], "bounds"); in main()
236 for (int i = 0; i < 128; i++) { in main()
237 a[i] = (byte) 0xff; in main()
240 for (int i = 0; i < 128; i++) { in main()
241 expectEquals((byte) 0xf0, a[i], "shl4"); in main()
244 for (int i = 0; i < 128; i++) { in main()
245 expectEquals((byte) 0xfc, a[i], "sar2"); in main()
248 for (int i = 0; i < 128; i++) { in main()
249 expectEquals((byte) 0xff, a[i], "shr2"); // sic! in main()
252 for (int i = 0; i < 128; i++) { in main()
253 expectEquals((byte) 0xff, a[i], "sar31"); in main()
256 for (int i = 0; i < 128; i++) { in main()
257 expectEquals(0x01, a[i], "shr31"); in main()
258 a[i] = (byte) 0x12; // reset in main()
261 for (int i = 0; i < 128; i++) { in main()
262 expectEquals((byte) 0x12, a[i], "shr32"); in main()
265 for (int i = 0; i < 128; i++) { in main()
266 expectEquals((byte) 0x09, a[i], "shr33"); in main()
269 for (int i = 0; i < 128; i++) { in main()
270 expectEquals((byte) 0x00, a[i], "shl9"); in main()
271 a[i] = (byte) 0xf0; // reset in main()
274 for (int i = 0; i < 128; i++) { in main()
275 expectEquals((byte) 0x0f, a[i], "not"); in main()