Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 128 for Decrement (0.21 sec)

  1. src/cmd/link/internal/ld/inittask.go

    		}
    
    		// Find all incoming edges into s.
    		a := sort.Search(len(edges), func(i int) bool { return edges[i].to >= s })
    		b := sort.Search(len(edges), func(i int) bool { return edges[i].to > s })
    
    		// Decrement the import count for all packages that import s.
    		// If the count reaches 0, that package is now ready to schedule.
    		for _, e := range edges[a:b] {
    			m[e.from]--
    			if m[e.from] == 0 {
    				h.push(ldr, e.from)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s

    	SHUFFLE(X12, X13, X14, X15, M0, M1, M2, M3)
    	ADDV(NONCE, X12, X13, X14, X15)
    
    	// increment counters
    	VAF INC, CTR, CTR
    
    	// xor keystream with plaintext
    	XORV(0*64, R2, R3, X0, X4,  X8, X12)
    	XORV(1*64, R2, R3, X1, X5,  X9, X13)
    	XORV(2*64, R2, R3, X2, X6, X10, X14)
    	XORV(3*64, R2, R3, X3, X7, X11, X15)
    
    	// increment pointers
    	MOVD $256(R2), R2
    	MOVD $256(R3), R3
    
    	CMPBNE  R4, $0, chacha
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        abstract void compareAndSetSeenExceptions(
            AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update);
    
        /** Atomic decrement-and-get of the {@link AggregateFutureState#remaining} field. */
        abstract int decrementAndGetRemainingCount(AggregateFutureState<?> state);
      }
    
      private static final class SafeAtomicHelper extends AtomicHelper {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. pkg/monitoring/monitoring_test.go

    		for n := 0; n < b.N; n++ {
    			testSum.Increment()
    		}
    	})
    	b.Run("dynamic labels", func(b *testing.B) {
    		for n := 0; n < b.N; n++ {
    			testSum.With(name.Value("test")).Increment()
    		}
    	})
    	b.Run("static labels", func(b *testing.B) {
    		testSum := testSum.With(name.Value("test"))
    		for n := 0; n < b.N; n++ {
    			testSum.Increment()
    		}
    	})
    }
    
    func BenchmarkGauge(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/internal/gover/gover.go

    // if the decimal is all zeroes.
    // (Copied from golang.org/x/mod/module's decDecimal.)
    func DecInt(decimal string) string {
    	// Scan right to left turning 0s to 9s until you find a digit to decrement.
    	digits := []byte(decimal)
    	i := len(digits) - 1
    	for ; i >= 0 && digits[i] == '0'; i-- {
    		digits[i] = '9'
    	}
    	if i < 0 {
    		// decimal is all zeros
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source1 = relay.newSource()
        val source2 = relay.newSource()
        source1!!.close()
        source1.close() // Unnecessary. Shouldn't decrement the reference count.
        assertThat(relay.isClosed).isFalse()
        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/module/pseudo.go

    // decDecimal returns the decimal string decremented by 1, or the empty string
    // if the decimal is all zeroes.
    func decDecimal(decimal string) string {
    	// Scan right to left turning 0s to 9s until you find a digit to decrement.
    	digits := []byte(decimal)
    	i := len(digits) - 1
    	for ; i >= 0 && digits[i] == '0'; i-- {
    		digits[i] = '9'
    	}
    	if i < 0 {
    		// decimal is all zeros
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 12 20:38:21 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. src/sync/poolqueue.go

    	var slot *eface
    	for {
    		ptrs := d.headTail.Load()
    		head, tail := d.unpack(ptrs)
    		if tail == head {
    			// Queue is empty.
    			return nil, false
    		}
    
    		// Confirm tail and decrement head. We do this before
    		// reading the value to take back ownership of this
    		// slot.
    		head--
    		ptrs2 := d.pack(head, tail)
    		if d.headTail.CompareAndSwap(ptrs, ptrs2) {
    			// We successfully took back slot.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/util/version.go

    	// including the offset e.g. `alpha.0.206`. This is done to comply with GCR image tags.
    	pre := v.PreRelease()
    	patch := v.Patch()
    	if len(pre) > 0 {
    		if patch > 0 {
    			// If the patch version is more than zero, decrement it and remove the label.
    			// this is done to comply with the latest stable patch release.
    			patch = patch - 1
    			pre = ""
    		} else {
    			split := strings.Split(pre, ".")
    			if len(split) > 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 10:50:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. cmd/namespace-lock.go

    	if readLock {
    		locked = nsLk.GetRLock(ctx, opsID, lockSource, timeout)
    	} else {
    		locked = nsLk.GetLock(ctx, opsID, lockSource, timeout)
    	}
    
    	if !locked { // We failed to get the lock
    		// Decrement ref count since we failed to get the lock
    		n.lockMapMutex.Lock()
    		n.lockMap[resource].ref--
    		if n.lockMap[resource].ref < 0 {
    			logger.CriticalIf(GlobalContext, errors.New("resource reference count was lower than 0"))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top