Skip to content

Commit e94e705

Browse files
committed
more change
1 parent 98217cb commit e94e705

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/_string_tools/slice_packed_field.nr

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -594,20 +594,6 @@ fn divmod_31(numerator: u16) -> (u16, u16) {
594594
(quotient, remainder)
595595
}
596596

597-
/**
598-
* @brief converts a 16 bit value into 16 fake bools (Field elements that are 0 or 1)
599-
**/
600-
unconstrained fn decompose(val: Field) -> [Field; 16] {
601-
let mut r: [Field; 16] = [0; 16];
602-
603-
let mut it = val as u32;
604-
for i in 0..16 {
605-
r[i] = (it & 1) as Field;
606-
it >>= 1;
607-
}
608-
r
609-
}
610-
611597
// 5 gates?
612598
pub fn get_last_limb_path<let OutputFields: u32>(last_limb_index: Field) -> [u1; OutputFields] {
613599
// TODO we offset by 1 explain why (0 byte length produces 0 - 1 which = invalid array index. we just add 1 and increase array length by 1 to compensate)

0 commit comments

Comments
 (0)