Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for pmap (0.08 sec)

  1. src/go/types/named.go

    	// code.
    	if origSig.RecvTypeParams().Len() == t.inst.targs.Len() {
    		smap := makeSubstMap(origSig.RecvTypeParams().list(), t.inst.targs.list())
    		var ctxt *Context
    		if check != nil {
    			ctxt = check.context()
    		}
    		sig = check.subst(origm.pos, origSig, smap, t, ctxt).(*Signature)
    	}
    
    	if sig == origSig {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    	rw.rw.lock()
    }
    
    func (rw *RWMutex) Unlock() {
    	rw.rw.unlock()
    }
    
    const RuntimeHmapSize = unsafe.Sizeof(hmap{})
    
    func MapBucketsCount(m map[int]int) int {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return 1 << h.B
    }
    
    func MapBucketsPointerIsNil(m map[int]int) bool {
    	h := *(**hmap)(unsafe.Pointer(&m))
    	return h.buckets == nil
    }
    
    func OverLoadFactor(count int, B uint8) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/instantiate.go

    		return false
    	}
    
    	panic(fmt.Sprintf("%v: %s", pos, msg))
    }
    
    func (check *Checker) verify(pos syntax.Pos, tparams []*TypeParam, targs []Type, ctxt *Context) (int, error) {
    	smap := makeSubstMap(tparams, targs)
    	for i, tpar := range tparams {
    		// Ensure that we have a (possibly implicit) interface as type bound (go.dev/issue/51048).
    		tpar.iface()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/runtime/map_test.go

    	type T [4000]byte
    	m := map[int]T{}
    	x := m[0]
    	if x != (T{}) {
    		t.Errorf("map value not zero")
    	}
    	y, ok := m[0]
    	if ok {
    		t.Errorf("map value should be missing")
    	}
    	if y != (T{}) {
    		t.Errorf("map value not zero")
    	}
    }
    
    type empty struct {
    }
    
    func TestEmptyKeyAndValue(t *testing.T) {
    	a := make(map[int]empty, 4)
    	b := make(map[empty]int, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux.go

    // mmap varies by architecture; see syscall_linux_*.go.
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/objfile.go

    		o.SetSym(symref)
    		o.SetName(rs.Name, w.Writer)
    		o.Write(w.Writer)
    	})
    	// TODO: output in sorted order?
    	// Currently tools (cmd/internal/goobj package) doesn't use mmap,
    	// and it just read it into a map in memory upfront. If it uses
    	// mmap, if the output is sorted, it probably could avoid reading
    	// into memory and just do lookups in the mmap'd object file.
    }
    
    // return the number of aux symbols s have.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. src/syscall/syscall_darwin.go

    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (cnt uintptr, err error)
    //sys   mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys   munmap(addr uintptr, length uintptr) (err error)
    //sysnb fork() (pid int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_openbsd_arm.go

    	}
    	return
    }
    
    func libc_writev_trampoline()
    
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_openbsd_riscv64.go

    	}
    	return
    }
    
    func libc_writev_trampoline()
    
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_openbsd_amd64.go

    	}
    	return
    }
    
    func libc_writev_trampoline()
    
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.4K bytes
    - Viewed (0)
Back to top