Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 74 for cmap (0.07 sec)

  1. 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)
  2. docs/vi/docs/python-types.md

    Trong Python 3.6 hoặc lớn hơn (bao gồm Python 3.10) bạn có thể sử dụng kiểu `Union` từ `typing` và đặt trong dấu ngoặc vuông những giá trị được chấp nhận.
    
    In Python 3.10 there's also a **new syntax** where you can put the possible types separated by a <abbr title='also called "bitwise or operator", but that meaning is not relevant here'>vertical bar (`|`)</abbr>.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/go/internal/cache/cache.go

    func GetMmap(c Cache, id ActionID) ([]byte, Entry, error) {
    	entry, err := c.Get(id)
    	if err != nil {
    		return nil, entry, err
    	}
    	md, err := mmap.Mmap(c.OutputFile(entry.OutputID))
    	if err != nil {
    		return nil, Entry{}, err
    	}
    	if int64(len(md.Data)) != entry.Size {
    		return nil, Entry{}, &entryNotFoundError{Err: errors.New("file incomplete")}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/runtime/sys_linux_s390x.s

    	// initialize essential registers
    	XOR	R0, R0
    	MOVD	-32(R15), R7
    	CMP	R7, $1234
    	BEQ	2(PC)
    	MOVD	R0, 0(R0)
    
    	// Initialize m->procid to Linux tid
    	SYSCALL $SYS_gettid
    
    	MOVD	-24(R15), R9        // fn
    	MOVD	-16(R15), R8        // g
    	MOVD	-8(R15), R7         // m
    
    	CMPBEQ	R7, $0, nog
    	CMP	R8, $0
    	BEQ	nog
    
    	MOVD	R2, m_procid(R7)
    
    	// In child, set up new stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/declarative/dsl/tooling/builders/r89/DeclarativeDslToolingModelsCrossVersionTest.groovy

            file("settings.gradle.dcl") << """
                rootProject.name = "test"
                include(":a")
                include(":b")
            """
    
            file("a/build.gradle.dcl") << " !%@ unpassable crappy crap"
    
            file("b/build.gradle.dcl") << ""
    
            when:
            DeclarativeSchemaModel model = fetchSchemaModel(DeclarativeSchemaModel.class)
    
            then:
            model != null
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:32:11 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/builtin.go

    	t := n.Type()
    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    		// Allocate one bucket pointed to by hmap.buckets on stack if hint
    		// is not larger than BUCKETSIZE. In case hint is larger than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        return;
      }
    
      struct stat st;
      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
      } else {
        const void* address =
            mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
        if (address == MAP_FAILED) {
          TF_SetStatusFromIOError(status, errno, path);
        } else {
          region->plugin_memory_region =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/syntax/scanner_test.go

    	{_For, "for", 0, 0},
    	{_Func, "func", 0, 0},
    	{_Go, "go", 0, 0},
    	{_Goto, "goto", 0, 0},
    	{_If, "if", 0, 0},
    	{_Import, "import", 0, 0},
    	{_Interface, "interface", 0, 0},
    	{_Map, "map", 0, 0},
    	{_Package, "package", 0, 0},
    	{_Range, "range", 0, 0},
    	{_Return, "return", 0, 0},
    	{_Select, "select", 0, 0},
    	{_Struct, "struct", 0, 0},
    	{_Switch, "switch", 0, 0},
    	{_Type, "type", 0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
Back to top