MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / bit_len

Method bit_len

ciphercore-base/src/ops/adder.rs:164–166  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

162
163impl CarryNode {
164 fn bit_len(&self) -> Result<u64> {
165 Ok(self.propagate.get_type()?.get_shape()[0])
166 }
167
168 fn shrink(&self, overflow_bit: bool) -> Result<CarryNode> {
169 let bit_len = self.bit_len()? as i64;

Callers 2

shrinkMethod · 0.80
calculate_carry_bitsFunction · 0.80

Calls 2

get_shapeMethod · 0.80
get_typeMethod · 0.45

Tested by

no test coverage detected