Lines Matching refs:i
49 for (int i = 0; i < min_length; i++) { in halving_add_signed()
50 bo[i] = (short) ((b1[i] + b2[i]) >>> 1); in halving_add_signed()
84 for (int i = 0; i < min_length; i++) { in halving_add_unsigned()
85 int v1 = b1[i] & 0xffff; in halving_add_unsigned()
86 int v2 = b2[i] & 0xffff; in halving_add_unsigned()
87 bo[i] = (short) ((v1 + v2) >>> 1); in halving_add_unsigned()
109 for (int i = 0; i < min_length; i++) { in rounding_halving_add_signed()
110 bo[i] = (short) ((b1[i] + b2[i] + 1) >>> 1); in rounding_halving_add_signed()
146 for (int i = 0; i < min_length; i++) { in rounding_halving_add_unsigned()
147 int v1 = b1[i] & 0xffff; in rounding_halving_add_unsigned()
148 int v2 = b2[i] & 0xffff; in rounding_halving_add_unsigned()
149 bo[i] = (short) ((v1 + v2 + 1) >>> 1); in rounding_halving_add_unsigned()
171 for (int i = 0; i < min_length; i++) { in halving_add_signed_constant()
172 bo[i] = (short) ((b1[i] + 0x7fff) >>> 1); in halving_add_signed_constant()
205 for (int i = 0; i < min_length; i++) { in halving_add_unsigned_constant()
206 bo[i] = (short) (((b1[i] & 0xffff) + 0xffff) >>> 1); in halving_add_unsigned_constant()
224 for (int i = 0; i < M; i++) { in main()
225 sB1[i] = (short) i; in main()
226 sB2[i] = interesting[i & 7]; in main()
233 for (int i = 0; i < M; i++) { in main()
234 short e = (short) ((sB1[i] + sB2[i]) >> 1); in main()
235 expectEquals(e, sBo[i]); in main()
238 for (int i = 0; i < M; i++) { in main()
239 short e = (short) (((sB1[i] & 0xffff) + (sB2[i] & 0xffff)) >> 1); in main()
240 expectEquals(e, sBo[i]); in main()
243 for (int i = 0; i < M; i++) { in main()
244 short e = (short) ((sB1[i] + sB2[i] + 1) >> 1); in main()
245 expectEquals(e, sBo[i]); in main()
248 for (int i = 0; i < M; i++) { in main()
249 short e = (short) (((sB1[i] & 0xffff) + (sB2[i] & 0xffff) + 1) >> 1); in main()
250 expectEquals(e, sBo[i]); in main()
253 for (int i = 0; i < M; i++) { in main()
254 short e = (short) ((sB1[i] + 0x7fff) >> 1); in main()
255 expectEquals(e, sBo[i]); in main()
258 for (int i = 0; i < M; i++) { in main()
259 short e = (short) (((sB1[i] & 0xffff) + 0xffff) >> 1); in main()
260 expectEquals(e, sBo[i]); in main()