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

Function i128_to_i64

ciphercore-base/src/ops/auc.rs:187–191  ·  view source on GitHub ↗
(x: Node)

Source from the content-addressed store, hash-verified

185}
186
187fn i128_to_i64(x: Node) -> Result<Node> {
188 let bits = x.a2b()?;
189 let bits = bits.get_slice(vec![SliceElement::SubArray(None, Some(64), None)])?;
190 bits.b2a(INT64)
191}
192
193#[cfg(test)]
194mod tests {

Callers 1

compute_naive_aucFunction · 0.85

Calls 3

a2bMethod · 0.45
get_sliceMethod · 0.45
b2aMethod · 0.45

Tested by

no test coverage detected