[−]Enum cranelift::prelude::FloatCC
Condition code for comparing floating point numbers.
This condition code is used by the fcmp
instruction to compare floating point values. Two
IEEE floating point values relate in exactly one of four ways:
UN
- unordered when either value is NaN.EQ
- equal numerical value.LT
-x
is less thany
.GT
-x
is greater thany
.
Note that 0.0
and -0.0
relate as EQ
because they both represent the number 0.
The condition codes described here are used to produce a single boolean value from the
comparison. The 14 condition codes here cover every possible combination of the relation above
except the impossible !UN & !EQ & !LT & !GT
and the always true UN | EQ | LT | GT
.
Variants
EQ | LT | GT
UN
EQ
The C '!=' operator is the inverse of '==': NotEqual
.
UN | LT | GT
LT | GT
UN | EQ
LT
LT | EQ
GT
GT | EQ
UN | LT
UN | LT | EQ
UN | GT
UN | GT | EQ
Trait Implementations
impl Clone for FloatCC
fn clone(&self) -> FloatCC
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl CondCode for FloatCC
impl Copy for FloatCC
impl Debug for FloatCC
impl Display for FloatCC
impl Eq for FloatCC
impl FromStr for FloatCC
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<FloatCC, <FloatCC as FromStr>::Err>
impl Hash for FloatCC
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<FloatCC> for FloatCC
impl StructuralEq for FloatCC
impl StructuralPartialEq for FloatCC
Auto Trait Implementations
impl RefUnwindSafe for FloatCC
impl Send for FloatCC
impl Sync for FloatCC
impl Unpin for FloatCC
impl UnwindSafe for FloatCC
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,