Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for MIN_VALUE (9.75 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

      private static final double[] VALUES = {
        Double.NEGATIVE_INFINITY,
        -Double.MAX_VALUE,
        (double) Long.MIN_VALUE,
        (double) Integer.MIN_VALUE,
        -Math.PI,
        -1.0,
        -Double.MIN_VALUE,
        -0.0,
        +0.0,
        Double.MIN_VALUE,
        1.0,
        Math.PI,
        (double) Integer.MAX_VALUE,
        (double) Long.MAX_VALUE,
        Double.MAX_VALUE,
        Double.POSITIVE_INFINITY,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td

      (TF_CastOp:$root_cast
        (TF_CastOp:$i8_cast
          (TF_ClipByValueOp:$clip $input, $min_value, $max_value),
          ConstBoolAttrFalse:$truncate2),
        ConstBoolAttrFalse:$truncate1),
      (TF_CastOp $clip, ConstBoolAttrFalse),
      [(TensorOf<[I8]> $i8_cast),
       (TensorOf<[I32]> $clip),
       (IsIntSplatValueEqual<"int32_t", "-128"> $min_value),
       (IsIntSplatValueEqual<"int32_t", "127"> $max_value)]>;
    
    // This pattern optimizes:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/SignedBytes.java

       *     {@link Byte#MAX_VALUE} if it is too large, or {@link Byte#MIN_VALUE} if it is too small
       */
      public static byte saturatedCast(long value) {
        if (value > Byte.MAX_VALUE) {
          return Byte.MAX_VALUE;
        }
        if (value < Byte.MIN_VALUE) {
          return Byte.MIN_VALUE;
        }
        return (byte) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Internal.java

       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      static long toNanosSaturated(Duration duration) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Internal.java

       *
       * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either
       * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing
       * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair.
       */
      @SuppressWarnings({
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 11 14:30:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/SignedBytes.java

       *     {@link Byte#MAX_VALUE} if it is too large, or {@link Byte#MIN_VALUE} if it is too small
       */
      public static byte saturatedCast(long value) {
        if (value > Byte.MAX_VALUE) {
          return Byte.MAX_VALUE;
        }
        if (value < Byte.MIN_VALUE) {
          return Byte.MIN_VALUE;
        }
        return (byte) value;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy

            integer(Integer.MAX_VALUE)              | _
            integer(Integer.MIN_VALUE)              | _
            new LongValueSnapshot(123L)             | _
            new LongValueSnapshot(0L)               | _
            new LongValueSnapshot(Long.MAX_VALUE)   | _
            new LongValueSnapshot(Long.MIN_VALUE)   | _
            new ShortValueSnapshot(123 as short)    | _
            new ShortValueSnapshot(0 as short)      | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java

    @GwtCompatible(emulated = true)
    public class SignedBytesTest extends TestCase {
      private static final byte[] EMPTY = {};
      private static final byte[] ARRAY1 = {(byte) 1};
    
      private static final byte LEAST = Byte.MIN_VALUE;
      private static final byte GREATEST = Byte.MAX_VALUE;
    
      private static final byte[] VALUES = {LEAST, -1, 0, 1, GREATEST};
    
      public void testCheckedCast() {
        for (byte value : VALUES) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java

        }
      }
    
      public static final class LongsAsListHeadSubListGenerator extends TestLongListGenerator {
        @Override
        protected List<Long> create(Long[] elements) {
          Long[] suffix = {Long.MIN_VALUE, Long.MAX_VALUE};
          Long[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
        }
      }
    
      public static final class LongsAsListTailSubListGenerator extends TestLongListGenerator {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ShortArrayAsListTest.java

        }
      }
    
      public static final class ShortsAsListHeadSubListGenerator extends TestShortListGenerator {
        @Override
        protected List<Short> create(Short[] elements) {
          Short[] suffix = {Short.MIN_VALUE, Short.MAX_VALUE};
          Short[] all = concat(elements, suffix);
          return asList(all).subList(0, elements.length);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top