Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for noff (0.08 sec)

  1. src/internal/trace/internal/oldtrace/parser.go

    	lastGs map[int32]uint64
    	lastP  int32
    }
    
    func (p *parser) discard(n uint64) bool {
    	if n > math.MaxInt {
    		return false
    	}
    	if noff := p.off + int(n); noff < p.off || noff > len(p.data) {
    		return false
    	} else {
    		p.off = noff
    	}
    	return true
    }
    
    func newParser(r io.Reader, ver version.Version) (*parser, error) {
    	var buf []byte
    	if seeker, ok := r.(io.Seeker); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticinit/sched.go

    }
    
    // like staticassign but we are copying an already
    // initialized value r.
    func (s *Schedule) staticcopy(l *ir.Name, loff int64, rn *ir.Name, typ *types.Type) bool {
    	if rn.Class == ir.PFUNC {
    		// TODO if roff != 0 { panic }
    		staticdata.InitAddr(l, loff, staticdata.FuncLinksym(rn))
    		return true
    	}
    	if rn.Class != ir.PEXTERN || rn.Sym().Pkg != types.LocalPkg {
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. src/runtime/cgocheck.go

    		cgoCheckBits(src, typ.GCData, off, size)
    		return
    	}
    
    	// The type has a GC program. Try to find GC bits somewhere else.
    	for _, datap := range activeModules() {
    		if cgoInRange(src, datap.data, datap.edata) {
    			doff := uintptr(src) - datap.data
    			cgoCheckBits(add(src, -doff), datap.gcdatamask.bytedata, off+doff, size)
    			return
    		}
    		if cgoInRange(src, datap.bss, datap.ebss) {
    			boff := uintptr(src) - datap.bss
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/lib.go

    }
    
    /*
     * look for the next file in an archive.
     * adapted from libmach.
     */
    func nextar(bp *bio.Reader, off int64, a *ArHdr) int64 {
    	if off&1 != 0 {
    		off++
    	}
    	bp.MustSeek(off, 0)
    	var buf [SAR_HDR]byte
    	if n, err := io.ReadFull(bp, buf[:]); err != nil {
    		if n == 0 && err != io.EOF {
    			return -1
    		}
    		return 0
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  5. src/cmd/internal/bio/buf_mmap.go

    		return nil, false
    	}
    
    	// Page-align the offset.
    	off := r.Offset()
    	align := syscall.Getpagesize()
    	aoff := off &^ int64(align-1)
    
    	data, err := syscall.Mmap(int(r.f.Fd()), aoff, int(length+uint64(off-aoff)), syscall.PROT_READ, syscall.MAP_SHARED|syscall.MAP_FILE)
    	if err != nil {
    		return nil, false
    	}
    
    	data = data[off-aoff:]
    	r.MustSeek(int64(length), 1)
    	return data, true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/liveness/plive.go

    	off := objw.Uint32(lsym, 0, uint32(nbitmap))
    	off = objw.Uint32(lsym, off, uint32(bv.N))
    	off = objw.BitVec(lsym, off, bv)
    
    	if fn.Type().NumResults() > 0 {
    		for _, p := range abiInfo.OutParams() {
    			if len(p.Registers) == 0 {
    				typebits.SetNoCheck(p.Type, p.FrameOffset(abiInfo), bv)
    			}
    		}
    		off = objw.BitVec(lsym, off, bv)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  7. src/internal/coverage/encodemeta/encode.go

    	nFuncs := len(b.funcs)
    	var foff int64 = coverage.CovMetaHeaderSize + int64(b.stab.Size()) + int64(nFuncs)*4
    	for idx := 0; idx < nFuncs; idx++ {
    		b.wrUint32(w, uint32(foff))
    		foff += int64(len(b.funcs[idx].encoded))
    	}
    	return off + (int64(len(b.funcs)) * 4)
    }
    
    func (b *CoverageMetaDataBuilder) emitFunc(w io.WriteSeeker, off int64, f funcDesc) (int64, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 17:16:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/dwarf_test.go

    	}
    
    	if off := typedieof(ptrastructTypeDIE); off != astructTypeDIE.Offset {
    		t.Errorf("type attribute of *main.astruct references %#x, not main.astruct DIE at %#x\n", off, astructTypeDIE.Offset)
    	}
    
    	if off := typedieof(globalptrDIE); off != ptrastructTypeDIE.Offset {
    		t.Errorf("type attribute of main.globalptr references %#x, not *main.astruct DIE at %#x\n", off, ptrastructTypeDIE.Offset)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  9. src/debug/gosym/pclntab.go

    	return v
    }
    
    // funcName returns the name of the function found at off.
    func (t *LineTable) funcName(off uint32) string {
    	if s, ok := t.funcNames[off]; ok {
    		return s
    	}
    	i := bytes.IndexByte(t.funcnametab[off:], 0)
    	s := string(t.funcnametab[off : off+uint32(i)])
    	t.funcNames[off] = s
    	return s
    }
    
    // stringFrom returns a Go string found at off from a position.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 19:43:24 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  10. src/net/tcpsockopt_windows.go

    	// millisecond.
    	tcpKeepAliveIdle := uint32(roundDurationUp(idle, time.Millisecond))
    	tcpKeepAliveInterval := uint32(roundDurationUp(interval, time.Millisecond))
    	ka := syscall.TCPKeepalive{
    		OnOff:    1,
    		Time:     tcpKeepAliveIdle,
    		Interval: tcpKeepAliveInterval,
    	}
    	ret := uint32(0)
    	size := uint32(unsafe.Sizeof(ka))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top