Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 171 for overflow (0.22 sec)

  1. android/guava/src/com/google/common/math/IntMath.java

       *
       * <p>{@link #pow} may be faster, but does not check for overflow.
       *
       * @throws ArithmeticException if {@code b} to the {@code k}th power overflows in signed {@code
       *     int} arithmetic
       */
      public static int checkedPow(int b, int k) {
        checkNonNegative("exponent", k);
        switch (b) {
          case 0:
            return (k == 0) ? 1 : 0;
          case 1:
            return 1;
          case (-1):
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

          // overflow, return.
          return naiveSum;
        }
        // we did over/under flow, if the sign is negative we should return MAX otherwise MIN
        return Long.MAX_VALUE + ((naiveSum >>> (Long.SIZE - 1)) ^ 1);
      }
    
      /**
       * Returns the difference of {@code a} and {@code b} unless it would overflow or underflow in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ReaderInputStream.java

       * drain because there was overflow, and there aren't actually any characters to drain, then the
       * overflow must be due to a small output buffer.
       */
      private void startDraining(boolean overflow) {
        Java8Compatibility.flip(byteBuffer);
        if (overflow && byteBuffer.remaining() == 0) {
          byteBuffer = ByteBuffer.allocate(byteBuffer.capacity() * 2);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
        // 13 elements overflow an int
        assertEquals(
            Integer.MAX_VALUE,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetSizeOverflow() {
        // 12 elements won't overflow
        assertEquals(
            479001600 /*12!*/,
            Collections2.orderedPermutations(newArrayList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))
                .size());
        // 13 elements overflow an int
        assertEquals(
            Integer.MAX_VALUE,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  6. ISSUES.md

    **Here's why we have this policy:** We want to focus on the work that benefits
    the whole community, e.g., fixing bugs and adding features. Individual support
    should be sought on Stack Overflow or other non-GitHub channels. It helps us to
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 11 22:37:27 GMT 2021
    - 606 bytes
    - Viewed (0)
  7. src/main/webapp/css/style.css

    		width: 200px;
    	}
    	.searchFormBox {
    		margin-top: 4em;
    	}
    	#result .info {
    		display: none;
    	}
    	#result .more {
    		display: block;
    	}
    	#result .description {
    		overflow: hidden;
    		text-overflow: ellipsis;
    		white-space: nowrap;
    	}
    CSS
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Jun 02 11:39:35 GMT 2022
    - 2K bytes
    - Viewed (2)
  8. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

      /**
       * Attempts to enqueue `text` to be UTF-8 encoded and sent as a the data of a text (type `0x1`)
       * message.
       *
       * This method returns true if the message was enqueued. Messages that would overflow the outgoing
       * message buffer will be rejected and trigger a [graceful shutdown][close] of this web socket.
       * This method returns false in that case, and in any other case where this web socket is closing,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/question.md

    ---
    name: Question
    about: Use Stack Overflow instead
    title: "\U0001F649"
    labels: ''
    assignees: ''
    
    ---
    
    🛑 𝙎𝙏𝙊𝙋
    
    This issue tracker is not the place for questions!
    
    If you want to ask how to do something, or to understand why something isn't working the way you expect it to, use Stack Overflow. https://stackoverflow.com/questions/tagged/okhttp
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 30 18:42:51 GMT 2018
    - 406 bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

          val increment = (m - n) * (h + 1)
          if (delta > Int.MAX_VALUE - increment) return false // Prevent overflow.
          delta += increment
    
          n = m
    
          for (c in input) {
            if (c < n) {
              if (delta == Int.MAX_VALUE) return false // Prevent overflow.
              delta++
            } else if (c == n) {
              var q = delta
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top