Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 917 for rounding (0.08 seconds)

  1. src/cmd/asm/internal/asm/testdata/amd64error.s

    	// Usage of rounding with invalid operands.
    	VADDPD.RU_SAE X3, X2, K1, X1     // ERROR "unsupported rounding"
    	VADDPD.RD_SAE X3, X2, K1, X1     // ERROR "unsupported rounding"
    	VADDPD.RZ_SAE X3, X2, K1, X1     // ERROR "unsupported rounding"
    	VADDPD.RN_SAE X3, X2, K1, X1     // ERROR "unsupported rounding"
    	VADDPD.RU_SAE Y3, Y2, K1, Y1     // ERROR "unsupported rounding"
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Jun 14 00:03:57 GMT 2023
    - 8.9K bytes
    - Click Count (0)
  2. benchmarks/src/main/java/org/elasticsearch/common/RoundingBenchmark.java

            switch (rounder) {
                case "java time":
                    rounderBuilder = rounding::prepareJavaTime;
                    break;
                case "es":
                    rounderBuilder = () -> rounding.prepare(min, max);
                    break;
                default:
                    throw new IllegalArgumentException("Expectd rounder to be [java time] or [es]");
            }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 16:53:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  3. src/cmd/asm/internal/asm/line_test.go

    		{"VADDPD.Z.Z X0, X1, X2", `Z suffix should be the last; duplicate suffix "Z"`},
    		{"VADDPD.SAE.BCST X0, X1, X2", `can't combine rounding/SAE and broadcast`},
    		{"VADDPD.BCST.SAE X0, X1, X2", `can't combine rounding/SAE and broadcast`},
    		{"VADDPD.BCST.Z.SAE X0, X1, X2", `Z suffix should be the last; can't combine rounding/SAE and broadcast`},
    		{"VADDPD.SAE.SAE X0, X1, X2", `duplicate suffix "SAE"`},
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/math/BigDecimalMath.java

    @GwtIncompatible
    public class BigDecimalMath {
      private BigDecimalMath() {}
    
      /**
       * Returns {@code x}, rounded to a {@code double} with the specified rounding mode. If {@code x}
       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/math/DoubleMath.java

     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible
    public final class DoubleMath {
      /*
       * This method returns a value y such that rounding y DOWN (towards zero) gives the same result as
       * rounding x according to the specified mode.
       */
      @GwtIncompatible // #isMathematicalInteger, com.google.common.math.DoubleUtils
      static double roundIntermediate(double x, RoundingMode mode) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/math/MathPreconditions.java

        if (!condition) {
          throw new ArithmeticException("mode was UNNECESSARY, but rounding was necessary");
        }
      }
    
      static void checkInRangeForRoundingInputs(boolean condition, double input, RoundingMode mode) {
        if (!condition) {
          throw new ArithmeticException(
              "rounded value is out of range for input " + input + " and rounding mode " + mode);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      /**
       * Returns {@code x}, rounded to a {@code double} with the specified rounding mode. If {@code x}
       * is precisely representable as a {@code double}, its {@code double} value will be returned;
       * otherwise, the rounding will choose between the two nearest representable values with {@code
       * mode}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/primitives/UnsignedLong.java

        // So we can ignore the bottom 11, except for rounding. We can unsigned-shift right 1, aka
        // unsigned-divide by 2, and convert that. Then we'll get exactly half of the desired double
        // value. But in the specific case where the bottom two bits of the original number are 01, we
        // want to replace that with 1 in the shifted value for correct rounding.
        return (double) ((value >>> 1) | (value & 1)) * 2.0;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 8.8K bytes
    - Click Count (0)
  9. guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.math.BigInteger;
    import java.math.RoundingMode;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmarks for the rounding methods of {@code BigIntegerMath}.
     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class BigIntegerMathRoundingBenchmark {
      private static final BigInteger[] nonzero1 = new BigInteger[ARRAY_SIZE];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/math/DoubleMathBenchmark.java

    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests for the non-rounding methods of {@code DoubleMath}.
     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class DoubleMathBenchmark {
      private static final double[] positiveDoubles = new double[ARRAY_SIZE];
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
Back to Top