Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 121 for Xaddint32 (0.17 sec)

  1. src/cmd/cover/cover.go

    		if n.Name.Name == "_" || n.Body == nil {
    			return nil
    		}
    		fname := n.Name.Name
    		// Skip AddUint32 and StoreUint32 if we're instrumenting
    		// sync/atomic itself in atomic mode (out of an abundance of
    		// caution), since as part of the instrumentation process we
    		// add calls to AddUint32/StoreUint32, and we don't want to
    		// somehow create an infinite loop.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/amd64/asm.go

    		// add to got: pointer to current pos in plt
    		got.AddAddrPlus(target.Arch, plt.Sym(), plt.Size())
    
    		// pushq $x
    		plt.AddUint8(0x68)
    
    		plt.AddUint32(target.Arch, uint32((got.Size()-24-8)/8))
    
    		// jmpq .plt
    		plt.AddUint8(0xe9)
    
    		plt.AddUint32(target.Arch, uint32(-(plt.Size() + 4)))
    
    		// rela
    		rela.AddAddrPlus(target.Arch, got.Sym(), got.Size()-8)
    
    		sDynid := ldr.SymDynid(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 21K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/caching_object_test.go

    	return &mockEncoder{
    		identifier:     runtime.Identifier(id),
    		expectedResult: result,
    		expectedError:  err,
    	}
    }
    
    func (e *mockEncoder) encode(_ runtime.Object, w io.Writer) error {
    	atomic.AddInt32(&e.callsNumber, 1)
    	if e.expectedError != nil {
    		return e.expectedError
    	}
    	_, err := w.Write([]byte(e.expectedResult))
    	return err
    }
    
    func TestCachingObject(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 23 15:26:38 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. src/net/http/pprof/pprof_test.go

    				t.Errorf("response: got %q; want %q", body, tc.resp)
    			}
    		})
    	}
    }
    
    var Sink uint32
    
    func mutexHog1(mu1, mu2 *sync.Mutex, start time.Time, dt time.Duration) {
    	atomic.AddUint32(&Sink, 1)
    	for time.Since(start) < dt {
    		// When using gccgo the loop of mutex operations is
    		// not preemptible. This can cause the loop to block a GC,
    		// causing the time limits in TestDeltaContentionz to fail.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. src/runtime/chan_test.go

    	procs := 2
    	N := int32(b.N / CallsPerSched / procs * procs)
    	c := make(chan bool, procs)
    	myc := make(chan int)
    	for p := 0; p < procs; p++ {
    		go func() {
    			for {
    				i := atomic.AddInt32(&N, -1)
    				if i < 0 {
    					break
    				}
    				for g := 0; g < CallsPerSched; g++ {
    					if i%2 == 0 {
    						<-myc
    						localWork(work)
    						myc <- 0
    						localWork(work)
    					} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  6. src/testing/benchmark_test.go

    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	testing.Benchmark(func(b *testing.B) {
    		procs := uint32(0)
    		iters := uint64(0)
    		b.SetParallelism(3)
    		b.RunParallel(func(pb *testing.PB) {
    			atomic.AddUint32(&procs, 1)
    			for pb.Next() {
    				atomic.AddUint64(&iters, 1)
    			}
    		})
    		if want := uint32(3 * runtime.GOMAXPROCS(0)); procs != want {
    			t.Errorf("got %v procs, want %v", procs, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/cryptobyte/builder.go

    // byte of the 32-bit input value is silently truncated.
    func (b *Builder) AddUint24(v uint32) {
    	b.add(byte(v>>16), byte(v>>8), byte(v))
    }
    
    // AddUint32 appends a big-endian, 32-bit value to the byte string.
    func (b *Builder) AddUint32(v uint32) {
    	b.add(byte(v>>24), byte(v>>16), byte(v>>8), byte(v))
    }
    
    // AddUint48 appends a big-endian, 48-bit value to the byte string.
    func (b *Builder) AddUint48(v uint64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_messages.go

    		}
    		b.AddBytes(v)
    		return nil
    	}))
    }
    
    // addUint64 appends a big-endian, 64-bit value to the cryptobyte.Builder.
    func addUint64(b *cryptobyte.Builder, v uint64) {
    	b.AddUint32(uint32(v >> 32))
    	b.AddUint32(uint32(v))
    }
    
    // readUint64 decodes a big-endian, 64-bit value into out and advances over it.
    // It reports whether the read was successful.
    func readUint64(s *cryptobyte.String, out *uint64) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. src/sync/rwmutex.go

    // - RUnlock -> Lock:  writerSem
    //
    // The methods below temporarily disable handling of race synchronization
    // events in order to provide the more precise model above to the race
    // detector.
    //
    // For example, atomic.AddInt32 in RLock should not appear to provide
    // acquire-release semantics, which would incorrectly synchronize racing
    // readers, thus potentially missing races.
    
    // RLock locks rw for reading.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. src/net/rpc/server_test.go

    	var wg sync.WaitGroup
    	wg.Add(procs)
    	gate := make(chan bool, MaxConcurrentCalls)
    	res := make(chan *Call, MaxConcurrentCalls)
    	b.ResetTimer()
    
    	for p := 0; p < procs; p++ {
    		go func() {
    			for atomic.AddInt32(&send, -1) >= 0 {
    				gate <- true
    				reply := new(Reply)
    				client.Go("Arith.Add", args, reply, res)
    			}
    		}()
    		go func() {
    			for call := range res {
    				A := call.Args.(*Args).A
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 05:23:29 UTC 2023
    - 19K bytes
    - Viewed (0)
Back to top