MCPcopy Create free account
hub / github.com/argumentcomputer/ix / push_auxiliary

Method push_auxiliary

crates/aiur/src/trace.rs:53–56  ·  view source on GitHub ↗
(&mut self, index: &mut ColumnIndex, t: G)

Source from the content-addressed store, hash-verified

51 let sum: u128 = values.iter().map(|x| u128::from(*x)).sum();
52 let word = u32::try_from(sum & 0xFFFF_FFFF).expect("masked to 32 bits");
53 let carry = u64::try_from(sum >> 32).expect("sum of u32 words fits in u64");
54 (word.to_le_bytes().map(|b| G::from_u64(b.into())), G::from_u64(carry))
55}
56
57impl<'a, 'b> ColumnMutSlice<'a, 'b> {
58 fn from_slice(
59 function: &Function,

Callers 2

populate_rowMethod · 0.80
dispatch_branchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected