Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for getLong (0.18 sec)

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

      static {
        LittleEndianBytes theGetter = JavaLittleEndianBytes.INSTANCE;
        try {
          /*
           * UnsafeByteArray uses Unsafe.getLong() in an unsupported way, which is known to cause
           * crashes on Android when running in 32-bit mode. For maximum safety, we shouldn't use
           * Unsafe.getLong() at all, but the performance benefit on x86_64 is too great to ignore, so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/UnsignedBytes.java

             */
            for (i = 0; i < strideLimit; i += stride) {
              long lw = theUnsafe.getLong(left, BYTE_ARRAY_BASE_OFFSET + (long) i);
              long rw = theUnsafe.getLong(right, BYTE_ARRAY_BASE_OFFSET + (long) i);
              if (lw != rw) {
                if (BIG_ENDIAN) {
                  return UnsignedLongs.compare(lw, rw);
                }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * The number of milliseconds that tests are permitted for execution without being reported, when
       * profileTests is set.
       */
      private static final long profileThreshold = Long.getLong("jsr166.profileThreshold", 100);
    
      @Override
      protected void runTest() throws Throwable {
        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      /**
       * The number of milliseconds that tests are permitted for execution without being reported, when
       * profileTests is set.
       */
      private static final long profileThreshold = Long.getLong("jsr166.profileThreshold", 100);
    
      protected void runTest() throws Throwable {
        if (profileTests) runTestProfiled();
        else super.runTest();
      }
    
      protected void runTestProfiled() throws Throwable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Stats.java

        checkArgument(
            buffer.remaining() >= BYTES,
            "Expected at least Stats.BYTES = %s remaining , got %s",
            BYTES,
            buffer.remaining());
        return new Stats(
            buffer.getLong(),
            buffer.getDouble(),
            buffer.getDouble(),
            buffer.getDouble(),
            buffer.getDouble());
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

          addressAsLong = getEmbeddedIPv4ClientAddress(ip6).hashCode();
        } else {
          // Just extract the high 64 bits (assuming the rest is user-modifiable).
          addressAsLong = ByteBuffer.wrap(ip6.getAddress(), 0, 8).getLong();
        }
    
        // Many strategies for hashing are possible. This might suffice for now.
        int coercedHash = Hashing.murmur3_32_fixed().hashLong(addressAsLong).asInt();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesGetDoneTest.java

    /** Unit tests for {@link Futures#getDone}. */
    @GwtCompatible
    public class FuturesGetDoneTest extends TestCase {
      public void testSuccessful() throws ExecutionException {
        assertThat(getDone(immediateFuture("a"))).isEqualTo("a");
      }
    
      public void testSuccessfulNull() throws ExecutionException {
        assertThat(getDone(Futures.<@Nullable String>immediateFuture(null))).isEqualTo(null);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Callables.returning;
    import static com.google.common.util.concurrent.Futures.getDone;
    import static com.google.common.util.concurrent.TestPlatform.verifyThreadWasNotInterrupted;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

     * limitations under the License.
     */
    
    package com.google.common.util.concurrent;
    
    import static com.google.common.truth.Truth.assertThat;
    import static com.google.common.util.concurrent.Futures.getDone;
    import static com.google.common.util.concurrent.Futures.immediateFuture;
    import static com.google.common.util.concurrent.MoreExecutors.directExecutor;
    import static com.google.common.util.concurrent.Runnables.doNothing;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TableCollectors.java

        /*
         * No mutable Table exactly matches the insertion order behavior of ImmutableTable.Builder, but
         * the Builder can't efficiently support merging of duplicate values.  Getting around this
         * requires some work.
         */
    
        return Collector.of(
            ImmutableTableCollectorState<R, C, V>::new,
            (state, input) ->
                state.put(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top