Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 121 for Xaddint32 (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/eventclock/real_event_clock_test.go

    	var numDone int32
    	now := ec.Now()
    	const batchSize = 100
    	times := make(chan time.Time, batchSize+1)
    	try := func(abs bool, d time.Duration) {
    		f := func(u time.Time) {
    			realD := ec.Since(now)
    			atomic.AddInt32(&numDone, 1)
    			times <- u
    			if realD < d {
    				t.Errorf("Asked for %v, got %v", d, realD)
    			}
    		}
    		if abs {
    			ec.EventAfterTime(f, now.Add(d))
    		} else {
    			ec.EventAfterDuration(f, d)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 07 04:07:31 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue16985.go

    // issue 16985: intrinsified AMD64 atomic ops should clobber flags
    
    package main
    
    import "sync/atomic"
    
    var count uint32
    
    func main() {
    	buffer := []byte("T")
    	for i := 0; i < len(buffer); {
    		atomic.AddUint32(&count, 1)
    		_ = buffer[i]
    		i++
    		i++
    	}
    
    	for i := 0; i < len(buffer); {
    		atomic.CompareAndSwapUint32(&count, 0, 1)
    		_ = buffer[i]
    		i++
    		i++
    	}
    
    	for i := 0; i < len(buffer); {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 14:26:18 UTC 2016
    - 625 bytes
    - Viewed (0)
  3. internal/dsync/drwmutex_test.go

    	for i := 0; i < numIterations; i++ {
    		if rwm.GetRLock(context.Background(), nil, id, source, Options{Timeout: time.Second}) {
    			n := atomic.AddInt32(activity, 1)
    			if n < 1 || n >= 10000 {
    				panic(fmt.Sprintf("wlock(%d)\n", n))
    			}
    			for i := 0; i < 100; i++ {
    			}
    			atomic.AddInt32(activity, -1)
    			rwm.RUnlock(context.Background())
    		}
    	}
    	cdone <- true
    }
    
    // Borrowed from rwmutex_test.go
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  4. src/cmd/link/internal/riscv64/asm.go

    	plt.SetUint32(ctxt.Arch, plt.Size()-4, 0x00038293) // addi    t0,t2,0
    
    	plt.AddUint32(ctxt.Arch, 0x00135313) // srli    t1,t1,0x1
    	plt.AddUint32(ctxt.Arch, 0x0082b283) // ld      t0,8(t0)
    	plt.AddUint32(ctxt.Arch, 0x00008e02) // jr      t3
    
    	gotplt.AddAddrPlus(ctxt.Arch, dynamic, 0) // got.plt[0] = _dl_runtime_resolve
    	gotplt.AddUint64(ctxt.Arch, 0)            // got.plt[1] = link map
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 01 08:06:08 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/libgo4/libgo4.go

    )
    
    var sigioCount int32
    
    // Catch SIGIO.
    //
    //export GoCatchSIGIO
    func GoCatchSIGIO() {
    	c := make(chan os.Signal, 1)
    	signal.Notify(c, syscall.SIGIO)
    	go func() {
    		for range c {
    			atomic.AddInt32(&sigioCount, 1)
    		}
    	}()
    }
    
    // Raise SIGIO.
    //
    //export GoRaiseSIGIO
    func GoRaiseSIGIO(p *C.pthread_t) {
    	C.CRaiseSIGIO(p)
    }
    
    // Return the number of SIGIO signals seen.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 854 bytes
    - Viewed (0)
  6. src/cmd/link/internal/ppc64/asm.go

    	glink.AddUint32(ctxt.Arch, OP_MFLR_R0) // mflr r0
    	glink.AddUint32(ctxt.Arch, OP_BCL_NIA) // bcl 20,31,1f
    	glink.AddUint32(ctxt.Arch, 0x7d6802a6) // 1: mflr r11
    	glink.AddUint32(ctxt.Arch, OP_MTLR_R0) // mtlr r0
    
    	// Compute the .plt array index from the entry point address
    	// into r0. This is computed relative to label 1 above.
    	glink.AddUint32(ctxt.Arch, 0x38000000) // li r0,-(res_0-1b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/elf.go

    		}
    		for i := 0; i < nsym; i++ {
    			s.AddUint64(ctxt.Arch, uint64(chain[i]))
    		}
    	} else {
    		s.AddUint32(ctxt.Arch, uint32(nbucket))
    		s.AddUint32(ctxt.Arch, uint32(nsym))
    		for i := 0; i < nbucket; i++ {
    			s.AddUint32(ctxt.Arch, buckets[i])
    		}
    		for i := 0; i < nsym; i++ {
    			s.AddUint32(ctxt.Arch, chain[i])
    		}
    	}
    
    	dynstr := ldr.CreateSymForUpdate(".dynstr", 0)
    
    	// version symbols
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go

    		// we expect CollectionDeleter to be executed once
    		atomic.AddInt32(&invokedGot, 1)
    
    		// we don't expect any context deadline to be set
    		if _, hasDeadline := ctx.Deadline(); hasDeadline {
    			atomic.AddInt32(&hasDeadlineGot, 1)
    		}
    		return nil, nil
    	}
    
    	// do the minimum setup to ensure that it gets as far as CollectionDeleter
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. src/testing/sub_test.go

    	raceDetector := func(b []byte) (int, error) {
    		// Check if some other goroutine is concurrently calling Write.
    		if atomic.LoadInt32(&runs) > 0 {
    			atomic.AddInt32(&races, 1) // Race detected!
    		}
    		atomic.AddInt32(&runs, 1)
    		defer atomic.AddInt32(&runs, -1)
    		runtime.Gosched() // Increase probability of a race
    		return len(b), nil
    	}
    
    	root := &T{
    		common:  common{w: &funcWriter{raceDetector}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness.go

    			watermark.recordMutating(int(atomic.AddInt32(&atomicMutatingExecuting, delta)))
    		} else {
    			watermark.recordReadOnly(int(atomic.AddInt32(&atomicReadOnlyExecuting, delta)))
    		}
    	}
    	noteWaitingDelta := func(delta int32) {
    		if isMutatingRequest {
    			waitingMark.recordMutating(int(atomic.AddInt32(&atomicMutatingWaiting, delta)))
    		} else {
    			waitingMark.recordReadOnly(int(atomic.AddInt32(&atomicReadOnlyWaiting, delta)))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top