Enum cranelift_codegen::ir::condcodes::FloatCC [−][src]
pub enum FloatCC {
Ordered,
Unordered,
Equal,
NotEqual,
OrderedNotEqual,
UnorderedOrEqual,
LessThan,
LessThanOrEqual,
GreaterThan,
GreaterThanOrEqual,
UnorderedOrLessThan,
UnorderedOrLessThanOrEqual,
UnorderedOrGreaterThan,
UnorderedOrGreaterThanOrEqual,
}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 Clone for FloatCC[src]
impl Clone for FloatCCfn clone(&self) -> FloatCC[src]
fn clone(&self) -> FloatCCReturns 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 Copy for FloatCC[src]
impl Copy for FloatCCimpl PartialEq for FloatCC[src]
impl PartialEq for FloatCCfn eq(&self, other: &FloatCC) -> bool[src]
fn eq(&self, other: &FloatCC) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for FloatCC[src]
impl Eq for FloatCCimpl Debug for FloatCC[src]
impl Debug for FloatCCfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for FloatCC[src]
impl Hash for FloatCCfn 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 CondCode for FloatCC[src]
impl CondCode for FloatCCfn inverse(self) -> Self[src]
fn inverse(self) -> SelfGet the inverse condition code of self. Read more
fn reverse(self) -> Self[src]
fn reverse(self) -> SelfGet the reversed condition code for self. Read more
impl Display for FloatCC[src]
impl Display for FloatCCfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl FromStr for FloatCC[src]
impl FromStr for FloatCC