Lines Matching refs:bo

44   private static void halving_add_signed(short[] b1, short[] b2, short[] bo) {  in halving_add_signed()  argument
45 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed()
47 bo[i] = (short) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
70 private static void halving_add_signed_alt(short[] b1, short[] b2, short[] bo) { in halving_add_signed_alt() argument
71 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_signed_alt()
74 bo[i] = (short) (((b1[i] + 10) + (b2[i] - 10)) >> 1); in halving_add_signed_alt()
106 private static void halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in halving_add_unsigned() argument
107 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
109 bo[i] = (short) (((b1[i] & 0xffff) + (b2[i] & 0xffff)) >> 1); in halving_add_unsigned()
129 private static void rounding_halving_add_signed(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed() argument
130 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
132 bo[i] = (short) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_signed()
152 private static void rounding_halving_add_signed_alt(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed_alt() argument
153 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed_alt()
156 bo[i] = (short) (((1 + b1[i]) + b2[i]) >> 1); in rounding_halving_add_signed_alt()
179 private static void rounding_halving_add_signed_alt2(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_signed_alt2() argument
180 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed_alt2()
183 bo[i] = (short) (((b1[i] + 10) + (b2[i] - 9)) >> 1); in rounding_halving_add_signed_alt2()
217 private static void rounding_halving_add_unsigned(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_unsigned() argument
218 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
220 bo[i] = (short) (((b1[i] & 0xffff) + (b2[i] & 0xffff) + 1) >> 1); in rounding_halving_add_unsigned()
254 private static void rounding_halving_add_unsigned_alt(short[] b1, short[] b2, short[] bo) { in rounding_halving_add_unsigned_alt() argument
255 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned_alt()
258 bo[i] = (short) ((b1[i] & 0xffff) + ((b2[i] & 0xffff) + 1) >> 1); in rounding_halving_add_unsigned_alt()
278 private static void halving_add_signed_constant(short[] b1, short[] bo) { in halving_add_signed_constant() argument
279 int min_length = Math.min(bo.length, b1.length); in halving_add_signed_constant()
281 bo[i] = (short) ((b1[i] + 0x7fff) >> 1); in halving_add_signed_constant()
312 private static void halving_add_unsigned_constant(short[] b1, short[] bo) { in halving_add_unsigned_constant() argument
313 int min_length = Math.min(bo.length, b1.length); in halving_add_unsigned_constant()
315 bo[i] = (short) (((b1[i] & 0xffff) + 0xffff) >> 1); in halving_add_unsigned_constant()