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

Function invert_bits

ciphercore-base/src/ops/long_division.rs:339–342  ·  view source on GitHub ↗
(binary_num: Node)

Source from the content-addressed store, hash-verified

337}
338
339fn invert_bits(binary_num: Node) -> Result<Node> {
340 let g = binary_num.get_graph();
341 g.custom_op(CustomOperation::new(Not {}), vec![binary_num])
342}
343
344// Returns -binary_num, i.e. two's complement of a given number.
345fn negative(binary_num: Node) -> Result<Node> {

Callers 2

adjust_negativeFunction · 0.85
negativeFunction · 0.85

Calls 2

get_graphMethod · 0.45
custom_opMethod · 0.45

Tested by

no test coverage detected