Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,369 for long (0.19 sec)

  1. android/guava/src/com/google/common/hash/Murmur3_128HashFunction.java

        protected void process(ByteBuffer bb) {
          long k1 = bb.getLong();
          long k2 = bb.getLong();
          bmix64(k1, k2);
          length += CHUNK_SIZE;
        }
    
        private void bmix64(long k1, long k2) {
          h1 ^= mixK1(k1);
    
          h1 = Long.rotateLeft(h1, 27);
          h1 += h2;
          h1 = h1 * 5 + 0x52dce729;
    
          h2 ^= mixK2(k2);
    
          h2 = Long.rotateLeft(h2, 31);
          h2 += h1;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(LONG_MANY_VALUES_STATS_ITERATOR.sum())
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN * LONG_MANY_VALUES_COUNT);
        assertThat(LONG_MANY_VALUES_STATS_SNAPSHOT.sum())
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN * LONG_MANY_VALUES_COUNT);
      }
    
      public void testPopulationVariance() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 32.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

          }
        };
    
        static boolean test(long base, long n) {
          // Since base will be considered % n, it's okay if base > FLOOR_SQRT_MAX_LONG,
          // so long as n <= FLOOR_SQRT_MAX_LONG.
          return ((n <= FLOOR_SQRT_MAX_LONG) ? SMALL : LARGE).testWitness(base, n);
        }
    
        /** Returns a * b mod m. */
        abstract long mulMod(long a, long b, long m);
    
        /** Returns a^2 mod m. */
    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)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        @Override
        protected List<Long> create(Long[] elements) {
          Long[] prefix = {Long.MIN_VALUE, Long.MAX_VALUE};
          Long[] suffix = {86L, 99L};
          Long[] all = concat(concat(prefix, elements), suffix);
          return makeArray(all).subArray(2, elements.length + 2).asList();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // used only from suite
      private static Long[] concat(Long[] a, Long[] b) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 19K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ByteStreams.java

       * happens first. Returns the total number of bytes skipped.
       */
      static long skipUpTo(InputStream in, long n) throws IOException {
        long totalSkipped = 0;
        // A buffer is allocated if skipSafely does not skip any bytes.
        byte[] buf = null;
    
        while (totalSkipped < n) {
          long remaining = n - totalSkipped;
          long skipped = skipSafely(in, remaining);
    
          if (skipped == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/MathTesting.java

      /* Helper function to make a Long value from an Integer. */
      private static final Function<Integer, Long> TO_LONG =
          new Function<Integer, Long>() {
            @Override
            public Long apply(Integer n) {
              return Long.valueOf(n);
            }
          };
    
      /* Helper function to make a BigInteger value from a Long. */
      private static final Function<Long, BigInteger> TO_BIGINTEGER =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

      /** Invokes {@code unit.}{@link TimeUnit#sleep(long) sleep(sleepFor)} uninterruptibly. */
      @J2ktIncompatible
      @GwtIncompatible // concurrency
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static void sleepUninterruptibly(long sleepFor, TimeUnit unit) {
        boolean interrupted = false;
        try {
          long remainingNanos = unit.toNanos(sleepFor);
          long end = System.nanoTime() + remainingNanos;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

                _src.align(4);
                int _pathp = _src.dec_ndr_long();
                int _commentp = _src.dec_ndr_long();
                this.state = _src.dec_ndr_long();
                this.num_stores = _src.dec_ndr_long();
                int _storesp = _src.dec_ndr_long();
    
                if ( _pathp != 0 ) {
                    _src = _src.deferred;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:40:13 GMT 2019
    - 16.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/StatsTest.java

        assertThat(LONG_MANY_VALUES_STATS_ITERATOR.sum())
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN * LONG_MANY_VALUES_COUNT);
        assertThat(LONG_MANY_VALUES_STATS_SNAPSHOT.sum())
            .isWithin(ALLOWED_ERROR * LONG_MANY_VALUES_MEAN)
            .of(LONG_MANY_VALUES_MEAN * LONG_MANY_VALUES_COUNT);
      }
    
      public void testPopulationVariance() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Transport.java

                log.warn("Session was not properly released");
            }
        }
    
    
        /**
         * @return the number of known usages
         */
        protected long getUsageCount () {
            return this.usageCount.get();
        }
    
    
        protected abstract long makeKey ( Request request ) throws IOException;
    
    
        protected abstract Long peekKey () throws IOException;
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Nov 01 18:12:21 GMT 2020
    - 24.1K bytes
    - Viewed (0)
Back to top