Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 71 for MIN_VALUE (0.59 sec)

  1. android/guava/src/com/google/common/primitives/Chars.java

       *     {@link Character#MAX_VALUE} if it is too large, or {@link Character#MIN_VALUE} if it is too
       *     small
       */
      public static char saturatedCast(long value) {
        if (value > Character.MAX_VALUE) {
          return Character.MAX_VALUE;
        }
        if (value < Character.MIN_VALUE) {
          return Character.MIN_VALUE;
        }
        return (char) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/DoubleMath.java

       *     <ul>
       *       <li>{@code x} is infinite or NaN
       *       <li>{@code x}, after being rounded to a mathematical integer using the specified rounding
       *           mode, is either less than {@code Integer.MIN_VALUE} or greater than {@code
       *           Integer.MAX_VALUE}
       *       <li>{@code x} is not a mathematical integer and {@code mode} is {@link
       *           RoundingMode#UNNECESSARY}
       *     </ul>
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/DoubleMath.java

       *     <ul>
       *       <li>{@code x} is infinite or NaN
       *       <li>{@code x}, after being rounded to a mathematical integer using the specified rounding
       *           mode, is either less than {@code Integer.MIN_VALUE} or greater than {@code
       *           Integer.MAX_VALUE}
       *       <li>{@code x} is not a mathematical integer and {@code mode} is {@link
       *           RoundingMode#UNNECESSARY}
       *     </ul>
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          assertThat(UnsignedBytes.checkedCast(UnsignedBytes.toInt(value))).isEqualTo(value);
        }
        assertCastFails(256L);
        assertCastFails(-1L);
        assertCastFails(Long.MAX_VALUE);
        assertCastFails(Long.MIN_VALUE);
      }
    
      public void testSaturatedCast() {
        for (byte value : VALUES) {
          assertThat(UnsignedBytes.saturatedCast(UnsignedBytes.toInt(value))).isEqualTo(value);
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      SmallVector<double, 4> min_value, max_value;
      const auto mins = dyn_cast<DenseFPElementsAttr>(min);
      const auto maxs = dyn_cast<DenseFPElementsAttr>(max);
      if (mins && maxs) {
        min_value.reserve(mins.getNumElements());
        max_value.reserve(maxs.getNumElements());
        for (auto it = mins.begin(); it != mins.end(); ++it) {
          min_value.push_back(FloatAttr::getValueAsDouble(*it));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

            0.1,
            0.5,
            1.0,
            Double.MAX_VALUE,
            GREATEST,
            Double.MIN_NORMAL,
            -Double.MIN_NORMAL,
            Double.MIN_VALUE,
            -Double.MIN_VALUE,
            Integer.MIN_VALUE,
            Integer.MAX_VALUE,
            Long.MIN_VALUE,
            Long.MAX_VALUE
          };
    
      private static final double[] VALUES = Doubles.concat(NUMBERS, new double[] {NaN});
    
      public void testHashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Shorts.java

       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/IntsTest.java

      private static final int[] EMPTY = {};
      private static final int[] ARRAY1 = {(int) 1};
      private static final int[] ARRAY234 = {(int) 2, (int) 3, (int) 4};
    
      private static final int LEAST = Integer.MIN_VALUE;
      private static final int GREATEST = Integer.MAX_VALUE;
    
      private static final int[] VALUES = {LEAST, (int) -1, (int) 0, (int) 1, GREATEST};
    
      public void testHashCode() {
        for (int value : VALUES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Shorts.java

       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Ints.java

       *     {@link Integer#MAX_VALUE} if it is too large, or {@link Integer#MIN_VALUE} if it is too
       *     small
       */
      public static int saturatedCast(long value) {
        if (value > Integer.MAX_VALUE) {
          return Integer.MAX_VALUE;
        }
        if (value < Integer.MIN_VALUE) {
          return Integer.MIN_VALUE;
        }
        return (int) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 29.9K bytes
    - Viewed (0)
Back to top