Struct cranelift_codegen::ir::immediates::Ieee32 [−][src]
pub struct Ieee32(_);
An IEEE binary32 immediate floating point value, represented as a u32 containing the bit pattern.
All bit patterns are allowed.
Methods
impl Ieee32
[src]
impl Ieee32
pub fn with_bits(x: u32) -> Self
[src]
pub fn with_bits(x: u32) -> Self
Create a new Ieee32
containing the bits of x
.
pub fn pow2<I: Into<i32>>(n: I) -> Self
[src]
pub fn pow2<I: Into<i32>>(n: I) -> Self
Create an Ieee32
number representing 2.0^n
.
pub fn fcvt_to_sint_negative_overflow<I: Into<i32>>(n: I) -> Self
[src]
pub fn fcvt_to_sint_negative_overflow<I: Into<i32>>(n: I) -> Self
Create an Ieee32
number representing the greatest negative value
not convertable from f32 to a signed integer with width n.
pub fn neg(self) -> Self
[src]
pub fn neg(self) -> Self
Return self negated.
pub fn with_float(x: f32) -> Self
[src]
pub fn with_float(x: f32) -> Self
Create a new Ieee32
representing the number x
.
pub fn bits(self) -> u32
[src]
pub fn bits(self) -> u32
Get the bitwise representation.
Trait Implementations
impl Copy for Ieee32
[src]
impl Copy for Ieee32
impl Clone for Ieee32
[src]
impl Clone for Ieee32
fn clone(&self) -> Ieee32
[src]
fn clone(&self) -> Ieee32
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Ieee32
[src]
impl Debug for Ieee32
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Ieee32
[src]
impl Eq for Ieee32
impl PartialEq for Ieee32
[src]
impl PartialEq for Ieee32
fn eq(&self, other: &Ieee32) -> bool
[src]
fn eq(&self, other: &Ieee32) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Ieee32) -> bool
[src]
fn ne(&self, other: &Ieee32) -> bool
This method tests for !=
.
impl Hash for Ieee32
[src]
impl Hash for Ieee32
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Ieee32
[src]
impl Display for Ieee32
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl FromStr for Ieee32
[src]
impl FromStr for Ieee32