Assuming the u4 numbers X and Y are on top of the stack, calculates (16 * Y + X) >> 3 modulo 16
(stack: &mut StackTracker, tables: StackVariable)
| 94 | |
| 95 | /// Assuming the u4 numbers X and Y are on top of the stack, calculates (16 * Y + X) >> 3 modulo 16 |
| 96 | pub fn u4_2_nib_shift_blake(stack: &mut StackTracker, tables: StackVariable) -> StackVariable { |
| 97 | stack.number(8); |
| 98 | stack.op_greaterthanorequal(); |
| 99 | stack.op_swap(); |
| 100 | stack.get_value_from_table(tables, None); |
| 101 | stack.op_add() |
| 102 | } |
| 103 | |
| 104 | #[cfg(test)] |
| 105 | mod tests { |
no outgoing calls