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

Function u4_push_shift_tables_stack

bitvm/src/u4/u4_shift_stack.rs:29–35  ·  view source on GitHub ↗

Pushes left and right shift tables

(stack: &mut StackTracker)

Source from the content-addressed store, hash-verified

27
28/// Pushes left and right shift tables
29pub fn u4_push_shift_tables_stack(stack: &mut StackTracker) -> StackVariable {
30 stack.var(
31 16 * 6,
32 script! { {u4_push_lshift_tables()} {u4_push_rshift_tables()}},
33 "shift_tables",
34 )
35}
36
37/// Calculates n'th right shift of the top u4 element with both tables
38pub fn u4_rshift_stack(stack: &mut StackTracker, tables: StackVariable, n: u32) -> StackVariable {

Callers 6

test_lshiftFunction · 0.85
test_rshiftFunction · 0.85
sha256_stackFunction · 0.85

Calls

no outgoing calls

Tested by 5

test_lshiftFunction · 0.68
test_rshiftFunction · 0.68