[−][src]Enum cranelift_codegen::ir::condcodes::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-xis less thany.GT-xis 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
OrderedEQ | LT | GT
UnorderedUN
EqualEQ
NotEqualThe C '!=' operator is the inverse of '==': NotEqual.
UN | LT | GT
OrderedNotEqualLT | GT
UnorderedOrEqualUN | EQ
LessThanLT
LessThanOrEqualLT | EQ
GreaterThanGT
GreaterThanOrEqualGT | EQ
UnorderedOrLessThanUN | LT
UnorderedOrLessThanOrEqualUN | LT | EQ
UnorderedOrGreaterThanUN | GT
UnorderedOrGreaterThanOrEqualUN | GT | EQ
Trait Implementations
impl CondCode for FloatCC[src]
impl Clone for FloatCC[src]
fn clone(&self) -> FloatCC[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Copy for FloatCC[src]
impl Debug for FloatCC[src]
impl Display for FloatCC[src]
impl PartialEq<FloatCC> for FloatCC[src]
fn eq(&self, other: &FloatCC) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Eq for FloatCC[src]
impl Hash for FloatCC[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl FromStr for FloatCC[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,