`ret = *sp; sp -= size_of:: ()`
(&mut self)
| 1058 | |
| 1059 | /// `ret = *sp; sp -= size_of::<T>()` |
| 1060 | fn pop<T>(&mut self) -> T { |
| 1061 | let sp = self.state[XReg::sp].get_ptr::<T>(); |
| 1062 | let val = unsafe { sp.read_unaligned() }; |
| 1063 | self.set_sp_unchecked(sp.wrapping_add(1)); |
| 1064 | val |
| 1065 | } |
| 1066 | |
| 1067 | /// Sets the stack pointer to the `sp` provided. |
| 1068 | /// |
no test coverage detected