Lines Matching refs:b1
44 private static void halving_add_signed(byte[] b1, byte[] b2, byte[] 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] = (byte) ((b1[i] + b2[i]) >> 1); in halving_add_signed()
79 private static void halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in halving_add_unsigned() argument
80 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in halving_add_unsigned()
82 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff)) >> 1); in halving_add_unsigned()
102 private static void rounding_halving_add_signed(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_signed() argument
103 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_signed()
105 bo[i] = (byte) ((b1[i] + b2[i] + 1) >> 1); in rounding_halving_add_signed()
139 private static void rounding_halving_add_unsigned(byte[] b1, byte[] b2, byte[] bo) { in rounding_halving_add_unsigned() argument
140 int min_length = Math.min(bo.length, Math.min(b1.length, b2.length)); in rounding_halving_add_unsigned()
142 bo[i] = (byte) (((b1[i] & 0xff) + (b2[i] & 0xff) + 1) >> 1); in rounding_halving_add_unsigned()
162 private static void halving_add_signed_constant(byte[] b1, byte[] bo) { in halving_add_signed_constant() argument
163 int min_length = Math.min(bo.length, b1.length); in halving_add_signed_constant()
165 bo[i] = (byte) ((b1[i] + 0x7f) >> 1); in halving_add_signed_constant()
196 private static void halving_add_unsigned_constant(byte[] b1, byte[] bo) { in halving_add_unsigned_constant() argument
197 int min_length = Math.min(bo.length, b1.length); in halving_add_unsigned_constant()
199 bo[i] = (byte) (((b1[i] & 0xff) + 0xff) >> 1); in halving_add_unsigned_constant()