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

Function u4_push_modulo_table_5

bitvm/src/u4/u4_add.rs:50–56  ·  view source on GitHub ↗

Pushes the table for calculating the modulo, i.e. x % 16 for x < 80. i.e. 15 (max u4) * 5 (max # numbers to sum) + 4 (max carry)

()

Source from the content-addressed store, hash-verified

48
49/// Pushes the table for calculating the modulo, i.e. x % 16 for x < 80. i.e. 15 (max u4) * 5 (max # numbers to sum) + 4 (max carry)
50pub fn u4_push_modulo_table_5() -> Script {
51 script! {
52 for i in (0..80).rev() {
53 { i % 16 }
54 }
55 }
56}
57
58/// Drops the modulo table
59pub fn u4_drop_modulo_table() -> Script {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected