Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for addUint32 (0.15 sec)

  1. src/sync/atomic/asm.s

    TEXT ·CompareAndSwapInt64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Cas64(SB)
    
    TEXT ·CompareAndSwapUint64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Cas64(SB)
    
    TEXT ·AddInt32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Xadd(SB)
    
    TEXT ·AddUint32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Xadd(SB)
    
    TEXT ·AddUintptr(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Xadduintptr(SB)
    
    TEXT ·AddInt64(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go

    		for i, right := range n.Rhs {
    			call, ok := right.(*ast.CallExpr)
    			if !ok {
    				continue
    			}
    			fn := typeutil.StaticCallee(pass.TypesInfo, call)
    			if analysisutil.IsFunctionNamed(fn, "sync/atomic", "AddInt32", "AddInt64", "AddUint32", "AddUint64", "AddUintptr") {
    				checkAtomicAddAssignment(pass, n.Lhs[i], call)
    			}
    		}
    	})
    	return nil, nil
    }
    
    // checkAtomicAddAssignment walks the atomic.Add* method calls checking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. src/runtime/race/race_linux_test.go

    	}
    
    	// This should not fault.
    	a := (*uint32)(unsafe.Pointer(&b[pagesize-4]))
    	atomic.StoreUint32(a, 1)
    	if x := atomic.LoadUint32(a); x != 1 {
    		t.Fatalf("bad atomic value: %v, want 1", x)
    	}
    	if x := atomic.AddUint32(a, 1); x != 2 {
    		t.Fatalf("bad atomic value: %v, want 2", x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 16 14:09:02 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/link/internal/arm64/asm.go

    		plt.SetUint32(ctxt.Arch, plt.Size()-4, 0x91000210)
    
    		// br      x17
    		plt.AddUint32(ctxt.Arch, 0xd61f0220)
    
    		// 3 nop for place holder
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    		plt.AddUint32(ctxt.Arch, 0xd503201f)
    
    		// check gotplt.size == 0
    		if gotplt.Size() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 20:09:45 UTC 2024
    - 47K bytes
    - Viewed (0)
  5. src/net/dnsconfig.go

    // indices of servers in c.servers when making queries.
    // When the rotate option is enabled, this offset increases.
    // Otherwise it is always 0.
    func (c *dnsConfig) serverOffset() uint32 {
    	if c.rotate {
    		return atomic.AddUint32(&c.soffset, 1) - 1 // return 0 to start
    	}
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. pkg/util/iptables/monitor_test.go

    	tables := []Table{TableMangle, TableFilter, TableNAT}
    	go ipt.Monitor(canary, tables, func() {
    		if !ensureNoChains(mfe) {
    			t.Errorf("reload called while canaries still exist")
    		}
    		atomic.AddUint32(&reloads, 1)
    	}, 100*time.Millisecond, stopCh)
    
    	// Monitor should create canary chains quickly
    	if err := waitForChains(mfe, canary, tables); err != nil {
    		t.Errorf("failed to create iptables canaries: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:21:59 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/link/internal/s390x/asm.go

    		plt.AddUint8(0x10)
    		plt.AddUint8(0x0c)
    		plt.AddUint8(0x00)
    		plt.AddUint8(0x14)
    		// jg .plt
    		plt.AddUint8(0xc0)
    		plt.AddUint8(0xf4)
    
    		plt.AddUint32(target.Arch, uint32(-((plt.Size() - 2) >> 1))) // roll-your-own relocation
    		//.plt index
    		plt.AddUint32(target.Arch, uint32(rela.Size())) // rela size before current entry
    
    		// rela
    		rela.AddAddrPlus(target.Arch, got.Sym(), got.Size()-8)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top