Lines Matching refs:a
22 static byte[] a; field in SimdByte
38 a[i] += x; in add()
51 a[i] -= x; in sub()
64 a[i] *= x; in mul()
77 a[i] /= x; in div()
90 a[i] = (byte) -a[i]; in neg()
103 a[i] = (byte) ~a[i]; in not()
116 a[i] <<= 4; in shl4()
129 a[i] >>= 2; in sar2()
141 a[i] >>>= 2; in shr2()
150 a[i] >>= 31; in sar31()
155 a[i] >>>= 31; in shr31()
160 a[i] >>>= 32; // 0, since & 31 in shr32()
165 a[i] >>>= 33; // 1, since & 31 in shr33()
170 a[i] <<= 9; // yields all-zeros in shl9()
179 a[i] += 11; in bounds()
188 a = new byte[128]; in main()
190 a[i] = (byte) i; in main()
195 expectEquals((byte)(i + 2), a[i], "add"); in main()
199 expectEquals(i, a[i], "sub"); in main()
203 expectEquals((byte)(i + i), a[i], "mul"); in main()
207 expectEquals(((byte)(i + i)) >> 1, a[i], "div"); in main()
208 a[i] = (byte) i; // undo arithmetic wrap-around effects in main()
212 expectEquals(-i, a[i], "neg"); in main()
216 expectEquals(0, a[0], "bounds0"); in main()
218 expectEquals(11 - i, a[i], "bounds"); in main()
220 expectEquals(-127, a[127], "bounds127"); in main()
223 a[i] = (byte) 0xff; in main()
227 expectEquals((byte) 0xf0, a[i], "shl4"); in main() local
231 expectEquals((byte) 0xfc, a[i], "sar2"); in main() local
235 expectEquals((byte) 0xff, a[i], "shr2"); // sic! in main() local
239 expectEquals((byte) 0xff, a[i], "sar31"); in main() local
243 expectEquals(0x01, a[i], "shr31"); in main()
244 a[i] = (byte) 0x12; // reset in main()
248 expectEquals((byte) 0x12, a[i], "shr32"); in main() local
252 expectEquals((byte) 0x09, a[i], "shr33"); in main() local
256 expectEquals((byte) 0x00, a[i], "shl9"); in main() local
257 a[i] = (byte) 0xf0; // reset in main()
261 expectEquals((byte) 0x0f, a[i], "not"); in main() local