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
impl FPU
pub fn new() -> FPU
pub fn clear(&mut self)
pub fn set_ctrl(&mut self, ctrl: u16)
pub fn get_ctrl(&self) -> u16
pub fn set_ip(&mut self, ip: u64)
pub fn inc_top(&mut self)
pub fn dec_top(&mut self)
pub fn get_env32(&self) -> Vec<u32>
pub fn get_env64(&self) -> Vec<u64>
pub fn print(&self)
pub fn set_st(&mut self, i: usize, value: f64)
pub fn get_st(&mut self, i: usize) -> f64
pub fn xchg_st(&mut self, i: usize)
pub fn clear_st(&mut self, i: usize)
pub fn move_to_st0(&mut self, i: usize)
pub fn add_to_st0(&mut self, i: usize)
pub fn add(&mut self, i: usize, j: usize)
pub fn push(&mut self, value: f64)
pub fn pop(&mut self) -> f64
pub fn fyl2x(&mut self)
pub fn fyl2xp1(&mut self)
pub fn check_pending_exceptions(self)
pub fn set_streg(&mut self, reg: Register, value: f64)
pub fn frexp(&self, value: f64) -> (f64, i32)
Trait Implementations§
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> 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