Class FastMath.Split

  • Enclosing class:
    FastMath

    private static class FastMath.Split
    extends java.lang.Object
    Class operator on double numbers split into one 26 bits number and one 27 bits number.
    • Field Detail

      • POSITIVE_INFINITY

        public static final FastMath.Split POSITIVE_INFINITY
        Split version of positive infinity.
      • NEGATIVE_INFINITY

        public static final FastMath.Split NEGATIVE_INFINITY
        Split version of negative infinity.
      • full

        private final double full
        Full number.
      • high

        private final double high
        High order bits.
      • low

        private final double low
        Low order bits.
    • Constructor Detail

      • Split

        Split​(double x)
        Simple constructor.
        Parameters:
        x - number to split
      • Split

        Split​(double high,
              double low)
        Simple constructor.
        Parameters:
        high - high order bits
        low - low order bits
      • Split

        Split​(double full,
              double high,
              double low)
        Simple constructor.
        Parameters:
        full - full number
        high - high order bits
        low - low order bits
    • Method Detail

      • multiply

        public FastMath.Split multiply​(FastMath.Split b)
        Multiply the instance by another one.
        Parameters:
        b - other instance to multiply by
        Returns:
        product
      • reciprocal

        public FastMath.Split reciprocal()
        Compute the reciprocal of the instance.
        Returns:
        reciprocal of the instance
      • pow

        private FastMath.Split pow​(long e)
        Computes this^e.
        Parameters:
        e - exponent (beware, here it MUST be > 0; the only exclusion is Long.MIN_VALUE)
        Returns:
        d^e, split in high and low bits
        Since:
        3.6