Struct Fpscr

Source
pub struct Fpscr { /* private fields */ }
Expand description

Floating-point Status Control Register

Implementations§

Source§

impl Fpscr

Source

pub fn from_bits(bits: u32) -> Self

Creates a Fspcr value from raw bits.

Source

pub fn bits(self) -> u32

Returns the contents of the register as raw bits

Source

pub fn n(self) -> bool

Read the Negative condition code flag

Source

pub fn set_n(&mut self, n: bool)

Sets the Negative condition code flag

Source

pub fn z(self) -> bool

Read the Zero condition code flag

Source

pub fn set_z(&mut self, z: bool)

Sets the Zero condition code flag

Source

pub fn c(self) -> bool

Read the Carry condition code flag

Source

pub fn set_c(&mut self, c: bool)

Sets the Carry condition code flag

Source

pub fn v(self) -> bool

Read the Overflow condition code flag

Source

pub fn set_v(&mut self, v: bool)

Sets the Zero condition code flag

Source

pub fn ahp(self) -> bool

Read the Alternative Half Precision bit

Source

pub fn set_ahp(&mut self, ahp: bool)

Sets the Alternative Half Precision bit

Source

pub fn dn(self) -> bool

Read the Default NaN mode bit

Source

pub fn set_dn(&mut self, dn: bool)

Sets the Default NaN mode bit

Source

pub fn fz(self) -> bool

Read the Flush to Zero mode bit

Source

pub fn set_fz(&mut self, fz: bool)

Sets the Flush to Zero mode bit

Source

pub fn rmode(self) -> RMode

Read the Rounding Mode control field

Source

pub fn set_rmode(&mut self, rmode: RMode)

Sets the Rounding Mode control field

Source

pub fn idc(self) -> bool

Read the Input Denormal cumulative exception bit

Source

pub fn set_idc(&mut self, idc: bool)

Sets the Input Denormal cumulative exception bit

Source

pub fn ixc(self) -> bool

Read the Inexact cumulative exception bit

Source

pub fn set_ixc(&mut self, ixc: bool)

Sets the Inexact cumulative exception bit

Source

pub fn ufc(self) -> bool

Read the Underflow cumulative exception bit

Source

pub fn set_ufc(&mut self, ufc: bool)

Sets the Underflow cumulative exception bit

Source

pub fn ofc(self) -> bool

Read the Overflow cumulative exception bit

Source

pub fn set_ofc(&mut self, ofc: bool)

Sets the Overflow cumulative exception bit

Source

pub fn dzc(self) -> bool

Read the Division by Zero cumulative exception bit

Source

pub fn set_dzc(&mut self, dzc: bool)

Sets the Division by Zero cumulative exception bit

Source

pub fn ioc(self) -> bool

Read the Invalid Operation cumulative exception bit

Source

pub fn set_ioc(&mut self, ioc: bool)

Sets the Invalid Operation cumulative exception bit

Trait Implementations§

Source§

impl Clone for Fpscr

Source§

fn clone(&self) -> Fpscr

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Fpscr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Fpscr

Auto Trait Implementations§

§

impl Freeze for Fpscr

§

impl RefUnwindSafe for Fpscr

§

impl Send for Fpscr

§

impl Sync for Fpscr

§

impl Unpin for Fpscr

§

impl UnwindSafe for Fpscr

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.