pub struct Update {
pub from: &'static str,
pub into: &'static str,
pub load: &'static str,
pub store: &'static str,
pub commutes: bool,
}Expand description
One arithmetic instruction that could work on memory rather than on a register, and the load and the store that would be the rest of the run.
A table for the reason Fold is one, and four names in a row rather than three because the
run is three instructions rather than two. The widths of all four have to agree, and writing
them out is what makes a row that got one wrong something a reader can see.
Fields§
§from: &'static strThe arithmetic as the selector wrote it, on two registers.
into: &'static strThe same arithmetic reading one source out of memory and leaving its answer there.
load: &'static strThe load that put the memory’s word in a register.
store: &'static strThe store that put the answer back.
commutes: boolWhether the two sources may be swapped, which is what lets the load feed either of them.
Trait Implementations§
impl Copy for Update
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnsafeUnpin for Update
impl UnwindSafe for Update
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more