Class FloorNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class FloorNode extends MathOperation
Math.floor(x). Returns the greatest (closest to +Infinity) Number value that is not greater than x and is an integer. If x is already an integer, the result is x. The value of Math.floor(x) is the same as the value of -Math.ceil(-x).
  • Constructor Details

  • Method Details

    • floorInt

      protected static int floorInt(int a)
    • floorSafeInt

      protected static SafeInteger floorSafeInt(SafeInteger a)
    • floorDouble

      protected final Object floorDouble(double d, com.oracle.truffle.api.profiles.InlinedConditionProfile isZero, com.oracle.truffle.api.profiles.InlinedConditionProfile fitsInt, com.oracle.truffle.api.profiles.InlinedConditionProfile fitsSafeLong, com.oracle.truffle.api.profiles.InlinedConditionProfile smaller)
    • floorToDouble

      protected final Object floorToDouble(Object a, com.oracle.truffle.api.profiles.InlinedConditionProfile isZero, com.oracle.truffle.api.profiles.InlinedConditionProfile fitsInt, com.oracle.truffle.api.profiles.InlinedConditionProfile fitsSafeLong, com.oracle.truffle.api.profiles.InlinedConditionProfile smaller)