Calculates n'th left shift of the top u4 element with both tables
(stack: &mut StackTracker, tables: StackVariable, n: u32)
| 46 | |
| 47 | /// Calculates n'th left shift of the top u4 element with both tables |
| 48 | pub fn u4_lshift_stack(stack: &mut StackTracker, tables: StackVariable, n: u32) -> StackVariable { |
| 49 | assert!((1..4).contains(&n)); |
| 50 | stack.get_value_from_table(tables, Some(16 * 3 + 16 * (n - 1))) |
| 51 | } |
| 52 | |
| 53 | /// Table for multiplication by two |
| 54 | pub fn u4_push_shift_for_blake(stack: &mut StackTracker) -> StackVariable { |
no outgoing calls