MCPcopy Create free account
hub / github.com/BitVM/BitVM / is_negative

Method is_negative

bitvm/src/bigint/std.rs:329–335  ·  view source on GitHub ↗
(depth: u32)

Source from the content-addressed store, hash-verified

327 }
328
329 pub fn is_negative(depth: u32) -> Script {
330 script! {
331 { (1 + depth) * Self::N_LIMBS - 1 } OP_PICK
332 { Self::HEAD_OFFSET >> 1 }
333 OP_GREATERTHANOREQUAL
334 }
335 }
336
337 pub fn is_positive(depth: u32) -> Script {
338 script! {

Callers 1

test_windowed_mul_2lcFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_windowed_mul_2lcFunction · 0.64