Struct libscemu::emu::fpu::FPU

source ·
pub struct FPU {
    pub f_c0: bool,
    pub f_c1: bool,
    pub f_c2: bool,
    pub f_c3: bool,
    /* private fields */
}

Fields§

§f_c0: bool§f_c1: bool§f_c2: bool§f_c3: bool

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: f32)

source

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

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: f32)

source

pub fn pop(&mut self) -> f32

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: f32)

Trait Implementations§

source§

impl Clone for FPU

source§

fn clone(&self) -> FPU

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

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> 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,

§

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>,

§

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>,

§

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