Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 160 for Flip (0.04 sec)

  1. pkg/test/loadbalancersim/loadbalancer/edf.go

    // Len implements heap.Interface/sort.Interface
    func (pq priorityQueue) Len() int { return len(pq) }
    
    // Less implements heap.Interface/sort.Interface
    func (pq priorityQueue) Less(i, j int) bool {
    	// Flip logic to make this a min queue.
    	if pq[i].deadline == pq[j].deadline {
    		return pq[i].index < pq[j].index
    	}
    	return pq[i].deadline < pq[j].deadline
    }
    
    // Swap implements heap.Interface/sort.Interface
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

          @Override
          long copy(Readable from, Appendable to) throws IOException {
            CharBuffer buf = CharStreams.createBuffer();
            long total = 0;
            while (from.read(buf) != -1) {
              ((Buffer) buf).flip();
              to.append(buf);
              total += buf.remaining();
              ((Buffer) buf).clear();
            }
            return total;
          }
        },
        NEW {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 18:59:54 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/UnsignedBytes.java

        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
      }
    
      /**
       * Sorts the elements of {@code array} in descending order, interpreting them as unsigned 8-bit
       * integers.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(mapping.f, mapping.getFromType());
        assertEquals(mapping.t, mapping.getToType());
        assertEquals(mapping.f, mapping.flip().getFromType());
        assertEquals(mapping.t, mapping.flip().getToType());
        assertEquals(mapping.f, mapping.selfMapping().getFromType());
        assertEquals(mapping.t, mapping.selfMapping().getToType());
      }
    
      private static class ParameterizedOuter<T> {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

        assertEquals(mapping.f, mapping.getFromType());
        assertEquals(mapping.t, mapping.getToType());
        assertEquals(mapping.f, mapping.flip().getFromType());
        assertEquals(mapping.t, mapping.flip().getToType());
        assertEquals(mapping.f, mapping.selfMapping().getFromType());
        assertEquals(mapping.t, mapping.selfMapping().getToType());
      }
    
      private static class ParameterizedOuter<T> {
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/io/src/main/java/org/gradle/internal/io/StreamByteBuffer.java

                    // copy one by one until the underflow has been resolved
                    buf = ByteBuffer.allocate(buf.remaining() + 1).put(buf);
                    buf.put(nextBuf.get());
                    BufferCaster.cast(buf).flip();
                } else {
                    if (hasRemaining(nextBuf)) {
                        buf = nextBuf;
                    } else if (prepareRead() != -1) {
                        buf = currentReadChunk.readToNioBuffer();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  7. pkg/webhooks/validation/controller/controller_test.go

    	)
    
    	// If we start having issues, we should not flip back to Ignore
    	gatewayError.Store(ptr.Of[error](kerrors.NewInternalError(errors.New("unknown error"))))
    	c.syncAll()
    	assert.EventuallyEqual(
    		t,
    		fetch(unpatchedWebhookConfig.Name),
    		webhookConfigWithCABundleFail,
    		retry.Message("should not go from Fail -> Ignore"),
    		LongRetry,
    	)
    
    	// We also should not flip back to Ignore in a new instance
    	close(controllerStop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 03:21:04 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/BloomFilterStrategies.java

          int hash1 = (int) hash64;
          int hash2 = (int) (hash64 >>> 32);
    
          boolean bitsChanged = false;
          for (int i = 1; i <= numHashFunctions; i++) {
            int combinedHash = hash1 + (i * hash2);
            // Flip all the bits if it's negative (guaranteed positive number)
            if (combinedHash < 0) {
              combinedHash = ~combinedHash;
            }
            bitsChanged |= bits.set(combinedHash % bitSize);
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedBytes.java

        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
        Arrays.sort(array, fromIndex, toIndex);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
      }
    
      /**
       * Sorts the elements of {@code array} in descending order, interpreting them as unsigned 8-bit
       * integers.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  10. src/runtime/hash_test.go

    	for z := 0; z < REP; z++ {
    		// pick a random key, hash it
    		k.random(r)
    		h := k.hash()
    
    		// flip each bit, hash & compare the results
    		for i := 0; i < n; i++ {
    			k.flipBit(i)
    			d := h ^ k.hash()
    			k.flipBit(i)
    
    			// record the effects of that bit flip
    			g := &grid[i]
    			for j := 0; j < hashSize; j++ {
    				g[j] += int(d & 1)
    				d >>= 1
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top