Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 461 for spdelta (0.26 sec)

  1. src/time/tick_test.go

    			t.Log(e)
    		}
    	}
    
    	for _, test := range []struct {
    		count int
    		delta Duration
    	}{{
    		count: baseCount,
    		delta: baseDelta,
    	}, {
    		count: 8,
    		delta: 1 * Second,
    	}} {
    		count, delta := test.count, test.delta
    		ticker := NewTicker(delta)
    		t0 := Now()
    		for range count / 2 {
    			<-ticker.C
    		}
    		ticker.Reset(delta * 2)
    		for range count - count/2 {
    			<-ticker.C
    		}
    		ticker.Stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/internal/runtime/atomic/atomic_mipsx.go

    	_ = *addr
    
    	spinLock(&lock.state)
    }
    
    //go:nosplit
    func unlock() {
    	spinUnlock(&lock.state)
    }
    
    //go:nosplit
    func Xadd64(addr *uint64, delta int64) (new uint64) {
    	lockAndCheck(addr)
    
    	new = *addr + uint64(delta)
    	*addr = new
    
    	unlock()
    	return
    }
    
    //go:nosplit
    func Xchg64(addr *uint64, new uint64) (old uint64) {
    	lockAndCheck(addr)
    
    	old = *addr
    	*addr = new
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/sync/atomic/doc.go

    func AddUint32(addr *uint32, delta uint32) (new uint32)
    
    // AddInt64 atomically adds delta to *addr and returns the new value.
    // Consider using the more ergonomic and less error-prone [Int64.Add] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func AddInt64(addr *int64, delta int64) (new int64)
    
    // AddUint64 atomically adds delta to *addr and returns the new value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_arm.go

    }
    
    // Atomic add and return new value.
    //
    //go:nosplit
    func Xadd(val *uint32, delta int32) uint32 {
    	for {
    		oval := *val
    		nval := oval + uint32(delta)
    		if Cas(val, oval, nval) {
    			return nval
    		}
    	}
    }
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:nosplit
    func Xchg(addr *uint32, v uint32) uint32 {
    	for {
    		old := *addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/prove.go

    				//    if delta < 0 and x+delta cannot underflow, then x > w
    				// This is useful for loops with bounds "len(slice)-K" (delta = -K)
    				if delta < 0 && !underflow {
    					ft.update(parent, x, w, signed, r)
    				}
    			} else {
    				// With w,delta constants, we want to derive: x+delta > w  ⇒  x > w-delta
    				//
    				// We compute (using integers of the correct size):
    				//    min = w - delta
    				//    max = MaxInt - delta
    				//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/metrics.go

    // AddRequestsInQueues adds the given delta to the gauge of the # of requests in the queues of the specified flowSchema and priorityLevel
    func AddRequestsInQueues(ctx context.Context, priorityLevel, flowSchema string, delta int) {
    	apiserverCurrentInqueueRequests.WithLabelValues(priorityLevel, flowSchema).Add(float64(delta))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 19:40:05 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    			},
    			1})
    	registry := compbasemetrics.NewKubeRegistry()
    	registry.MustRegister(th)
    	var x int
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		delta := (i % 6) + 1
    		now = now.Add(time.Duration(delta) * time.Millisecond)
    		clk.SetTime(now)
    		th.Set(float64(x))
    		x = (x + i) % 60
    	}
    }
    
    func BenchmarkTimingRatioHistogramVecElementSimple(b *testing.B) {
    	b.StopTimer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_ppc64x.go

    //go:build ppc64 || ppc64le
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchg64(ptr *uint64, new uint64) uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_riscv64.go

    // license that can be found in the LICENSE file.
    
    package atomic
    
    import "unsafe"
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    func Xadduintptr(ptr *uintptr, delta uintptr) uintptr
    
    //go:noescape
    func Xchg(ptr *uint32, new uint32) uint32
    
    //go:noescape
    func Xchg64(ptr *uint64, new uint64) uint64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. test/fixedbugs/bug247.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	const (
    		Delta = 100 * 1e6
    		Count = 10
    	)
    	_ = int64(Delta * Count)
    	var i interface{} = Count
    	j := i.(int)
    	if j != Count {
    		println("j=", j)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 365 bytes
    - Viewed (0)
Back to top