Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 132 for bit_count (0.23 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
          while (left == 0) {
            source.skip(padding.toLong())
            padding = 0
            if (flags and FLAG_END_HEADERS != 0) return -1L
            readContinuationHeader()
            // TODO: test case for empty continuation header?
          }
    
          val read = source.read(sink, minOf(byteCount, left.toLong()))
          if (read == -1L) return -1L
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      // Constants.
    
      // # of bits in a number.
      static const size_t kBitCount = 8*sizeof(RawType);
    
      // # of fraction bits in a number.
      static const size_t kFractionBitCount =
        std::numeric_limits<RawType>::digits - 1;
    
      // # of exponent bits in a number.
      static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount;
    
      // The mask for the sign bit.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 43.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/IntMath.java

        checkPositive("x", x);
        return Integer.highestOneBit(x);
      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
       *
       * <p>This differs from {@code Integer.bitCount(x) == 1}, because {@code
       * Integer.bitCount(Integer.MIN_VALUE) == 1}, but {@link Integer#MIN_VALUE} is not a power of two.
       */
      public static boolean isPowerOfTwo(int x) {
        return x > 0 & (x & (x - 1)) == 0;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/es/log/bsbhv/BsSearchLogBhv.java

                result.setAccessType(DfTypeUtil.toString(source.get("accessType")));
                result.setClientIp(DfTypeUtil.toString(source.get("clientIp")));
                result.setHitCount(DfTypeUtil.toLong(source.get("hitCount")));
                result.setHitCountRelation(DfTypeUtil.toString(source.get("hitCountRelation")));
                result.setLanguages(DfTypeUtil.toString(source.get("languages")));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      // Constants.
    
      // # of bits in a number.
      static const size_t kBitCount = 8*sizeof(RawType);
    
      // # of fraction bits in a number.
      static const size_t kFractionBitCount =
        std::numeric_limits<RawType>::digits - 1;
    
      // # of exponent bits in a number.
      static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount;
    
      // The mask for the sign bit.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java

                this.parameterOffset = this.primarySetupOffset;
    
                // 2* setupCount
                this.parameterOffset += this.setupCount * 2;
                this.parameterOffset += 2; // ByteCount
    
                if ( this.getCommand() == SMB_COM_TRANSACTION && isResponse() == false ) {
                    this.parameterOffset += stringWireLength(this.name, this.parameterOffset);
                }
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun May 17 13:43:42 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. pilot/pkg/networking/util/util.go

    	return hcm.HttpConnectionManager_ForwardClientCertDetails(c - 1)
    }
    
    // ByteCount returns a human readable byte format
    // Inspired by https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
    func ByteCount(b int) string {
    	const unit = 1000
    	if b < unit {
    		return fmt.Sprintf("%dB", b)
    	}
    	div, exp := int64(unit), 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

            .build()
        connection.start(sendConnectionPreface = false)
        val queues = taskRunner.activeQueues()
        assertThat(queues).hasSize(1)
      }
    
      private fun data(byteCount: Int): Buffer = Buffer().write(ByteArray(byteCount))
    
      private fun assertStreamData(
        expected: String?,
        source: Source?,
      ) {
        val actual = source!!.buffer().readUtf8()
        assertThat(actual).isEqualTo(expected)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/LongMath.java

        return 1L << ((Long.SIZE - 1) - Long.numberOfLeadingZeros(x));
      }
    
      /**
       * Returns {@code true} if {@code x} represents a power of two.
       *
       * <p>This differs from {@code Long.bitCount(x) == 1}, because {@code
       * Long.bitCount(Long.MIN_VALUE) == 1}, but {@link Long#MIN_VALUE} is not a power of two.
       */
      @SuppressWarnings("ShortCircuitBoolean")
      public static boolean isPowerOfTwo(long x) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Headers.kt

       * approximate size of HTTP/2 headers before they are compressed with HPACK. This value is
       * intended to be used as a metric: smaller headers are more efficient to encode and transmit.
       */
      fun byteCount(): Long {
        // Each header name has 2 bytes of overhead for ': ' and every header value has 2 bytes of
        // overhead for '\r\n'.
        var result = (namesAndValues.size * 2).toLong()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top