Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 121 for addUint32 (0.16 sec)

  1. 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)
  2. src/runtime/race/race_unix_test.go

    	if err != nil {
    		t.Fatalf("failed to mmap memory: %v", err)
    	}
    	defer syscall.Munmap(data)
    	p := (*uint32)(unsafe.Pointer(&data[0]))
    	atomic.AddUint32(p, 1)
    	(*p)++
    	if *p != 2 {
    		t.Fatalf("data[0] = %v, expect 2", *p)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:36:26 UTC 2022
    - 762 bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top