pub enum RoundImm {
RoundNearest = 0,
RoundDown = 1,
RoundUp = 2,
RoundZero = 3,
}
Expand description
Encode the rounding modes used as part of the Rounding Control field. Note, these rounding immediates only consider the rounding control field (i.e. the rounding mode) which only take up the first two bits when encoded. However the rounding immediate which this field helps make up, also includes bits 3 and 4 which define the rounding select and precision mask respectively. These two bits are not defined here and are implicitly set to zero when encoded.
Variants§
RoundNearest = 0
Round to nearest mode.
RoundDown = 1
Round down mode.
RoundUp = 2
Round up mode.
RoundZero = 3
Round to zero mode.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoundImm
impl RefUnwindSafe for RoundImm
impl Send for RoundImm
impl Sync for RoundImm
impl Unpin for RoundImm
impl UnwindSafe for RoundImm
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)