File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ fn negate_carry(a: BigDigit, acc: &mut DoubleBigDigit) -> BigDigit {
3636// + 1 & -ff = ...0 01 & ...f 01 = ...0 01 = + 1
3737// +ff & - 1 = ...0 ff & ...f ff = ...0 ff = +ff
3838// answer is pos, has length of a
39- fn bitand_pos_neg ( a : & mut Vec < BigDigit > , b : & [ BigDigit ] ) {
39+ fn bitand_pos_neg ( a : & mut [ BigDigit ] , b : & [ BigDigit ] ) {
4040 let mut carry_b = 1 ;
4141 for ( ai, & bi) in a. iter_mut ( ) . zip ( b. iter ( ) ) {
4242 let twos_b = negate_carry ( bi, & mut carry_b) ;
@@ -202,7 +202,7 @@ fn bitor_pos_neg(a: &mut Vec<BigDigit>, b: &[BigDigit]) {
202202// - 1 | +ff = ...f ff | ...0 ff = ...f ff = - 1
203203// -ff | + 1 = ...f 01 | ...0 01 = ...f 01 = -ff
204204// answer is neg, has length of a
205- fn bitor_neg_pos ( a : & mut Vec < BigDigit > , b : & [ BigDigit ] ) {
205+ fn bitor_neg_pos ( a : & mut [ BigDigit ] , b : & [ BigDigit ] ) {
206206 let mut carry_a = 1 ;
207207 let mut carry_or = 1 ;
208208 for ( ai, & bi) in a. iter_mut ( ) . zip ( b. iter ( ) ) {
You can’t perform that action at this time.
0 commit comments