pub enum FloatCC {
Show 14 variants Ordered, Unordered, Equal, NotEqual, OrderedNotEqual, UnorderedOrEqual, LessThan, LessThanOrEqual, GreaterThan, GreaterThanOrEqual, UnorderedOrLessThan, UnorderedOrLessThanOrEqual, UnorderedOrGreaterThan, UnorderedOrGreaterThanOrEqual,
}
Expand description

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:

  1. UN - unordered when either value is NaN.
  2. EQ - equal numerical value.
  3. LT - x is less than y.
  4. GT - x is greater than y.

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§

§

Ordered

EQ | LT | GT

§

Unordered

UN

§

Equal

EQ

§

NotEqual

The C ‘!=’ operator is the inverse of ‘==’: NotEqual. UN | LT | GT

§

OrderedNotEqual

LT | GT

§

UnorderedOrEqual

UN | EQ

§

LessThan

LT

§

LessThanOrEqual

LT | EQ

§

GreaterThan

GT

§

GreaterThanOrEqual

GT | EQ

§

UnorderedOrLessThan

UN | LT

§

UnorderedOrLessThanOrEqual

UN | LT | EQ

§

UnorderedOrGreaterThan

UN | GT

§

UnorderedOrGreaterThanOrEqual

UN | GT | EQ

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Get the inverse condition code of self. Read more
Get the reversed condition code for self. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.