FPU

Struct FPU 

Source
pub struct FPU {
    pub stat: u16,
    pub f_c0: bool,
    pub f_c1: bool,
    pub f_c2: bool,
    pub f_c3: bool,
    pub f_c4: bool,
    pub mxcsr: u32,
    /* private fields */
}

Fields§

§stat: u16§f_c0: bool§f_c1: bool§f_c2: bool§f_c3: bool§f_c4: bool§mxcsr: u32

Implementations§

Source§

impl FPU

Source

pub fn new() -> FPU

Source

pub fn clear(&mut self)

Source

pub fn set_ctrl(&mut self, ctrl: u16)

Source

pub fn get_ctrl(&self) -> u16

Source

pub fn set_ip(&mut self, ip: u64)

Source

pub fn inc_top(&mut self)

Source

pub fn dec_top(&mut self)

Source

pub fn get_env32(&self) -> Vec<u32>

Source

pub fn get_env64(&self) -> Vec<u64>

Source

pub fn print(&self)

Source

pub fn set_st(&mut self, i: usize, value: f64)

Source

pub fn get_st(&mut self, i: usize) -> f64

Source

pub fn xchg_st(&mut self, i: usize)

Source

pub fn clear_st(&mut self, i: usize)

Source

pub fn move_to_st0(&mut self, i: usize)

Source

pub fn add_to_st0(&mut self, i: usize)

Source

pub fn add(&mut self, i: usize, j: usize)

Source

pub fn push(&mut self, value: f64)

Source

pub fn pop(&mut self) -> f64

Source

pub fn fyl2x(&mut self)

Source

pub fn fyl2xp1(&mut self)

Source

pub fn check_pending_exceptions(self)

Source

pub fn set_streg(&mut self, reg: Register, value: f64)

Source

pub fn frexp(&self, value: f64) -> (f64, i32)

Trait Implementations§

Source§

impl Clone for FPU

Source§

fn clone(&self) -> FPU

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

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

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for FPU

§

impl RefUnwindSafe for FPU

§

impl Send for FPU

§

impl Sync for FPU

§

impl Unpin for FPU

§

impl UnwindSafe for FPU

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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V