Interface RealConstant<R extends RealConstant<R>>

All Superinterfaces:
Acceptor<ConstantVisitor>, ComparableConstant<R>, Constant, EquivTo, Immediate, NumericConstant<R>, Value
All Known Implementing Classes:
DoubleConstant, FloatConstant

public interface RealConstant<R extends RealConstant<R>> extends NumericConstant<R>
Base type for floating point constants.
See Also:
  • Method Details

    • cmpl

      @Nonnull IntConstant cmpl(@Nonnull R constant)
      Performs the indicated floating point comparison. For NaN comparisons -1 is returned.
      Parameters:
      constant - the value to compare with
      Returns:
      0 if values are equal, 1 if passed value less, or -1 if passed value greater. When any of the values is NaN returns -1.
    • cmpg

      @Nonnull IntConstant cmpg(@Nonnull R constant)
      Performs the indicated floating point comparison. For NaN comparisons 1 is returned.
      Parameters:
      constant - the value to compare with
      Returns:
      0 if values are equal, 1 if passed value less, or -1 if passed value greater. When any of the values is NaN returns 1.