Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 316 for offsetsof (0.11 sec)

  1. src/internal/runtime/atomic/atomic_arm64.go

    // license that can be found in the LICENSE file.
    
    //go:build arm64
    
    package atomic
    
    import (
    	"internal/cpu"
    	"unsafe"
    )
    
    const (
    	offsetARM64HasATOMICS = unsafe.Offsetof(cpu.ARM64.HasATOMICS)
    )
    
    //go:noescape
    func Xadd(ptr *uint32, delta int32) uint32
    
    //go:noescape
    func Xadd64(ptr *uint64, delta int64) uint64
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    		throw("bad k")
    	}
    	if unsafe.Sizeof(l) != goarch.PtrSize {
    		throw("bad l")
    	}
    	if unsafe.Sizeof(x1) != 1 {
    		throw("bad unsafe.Sizeof x1")
    	}
    	if unsafe.Offsetof(y1.y) != 1 {
    		throw("bad offsetof y1.y")
    	}
    	if unsafe.Sizeof(y1) != 2 {
    		throw("bad unsafe.Sizeof y1")
    	}
    
    	if timediv(12345*1000000000+54321, 1000000000, &e) != 12345 || e != 54321 {
    		throw("bad timediv")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    				if (unsafe.Sizeof(finalizer{}) != 5*goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.fn) != 0 ||
    					unsafe.Offsetof(finalizer{}.arg) != goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.nret) != 2*goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.fint) != 3*goarch.PtrSize ||
    					unsafe.Offsetof(finalizer{}.ot) != 4*goarch.PtrSize) {
    					throw("finalizer out of sync")
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/debug/dwarf/type_test.go

    	d := elfData(t, "testdata/cycle.elf")
    	r := d.Reader()
    	offsets := []Offset{}
    	for {
    		e, err := r.Next()
    		if err != nil {
    			t.Fatal("r.Next:", err)
    		}
    		if e == nil {
    			break
    		}
    		switch e.Tag {
    		case TagBaseType, TagTypedef, TagPointerType, TagStructType:
    			offsets = append(offsets, e.Offset)
    		}
    	}
    
    	// Parse each type with a fresh type cache.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 8.8K bytes
    - Viewed (0)
  5. src/syscall/syscall_darwin.go

    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/macho_combine_dwarf.go

    	// updated later with new offsets and lengths as necessary.
    	if _, err := outf.Seek(int64(dwarfCmdOffset), 0); err != nil {
    		return err
    	}
    	if _, err := io.CopyN(outf, bytes.NewReader(realdwarf.Raw()), int64(realdwarf.Len)); err != nil {
    		return err
    	}
    	if _, err := outf.Seek(int64(unsafe.Offsetof(exem.FileHeader.Ncmd)), 0); err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testshared/testdata/globallib/global.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package globallib
    
    // Data is large enough to that offsets into it do not fit into
    // 16-bit or 20-bit immediates. Ideally we'd also try and overrun
    // 32-bit immediates, but that requires the test machine to have
    // too much memory.
    var Data [1<<20 + 10]int64
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 485 bytes
    - Viewed (0)
  8. src/syscall/dirent.go

    		}
    		// See src/os/dir_unix.go for the reason why this condition is
    		// excluded on wasip1.
    		if ino == 0 && runtime.GOOS != "wasip1" { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    		namlen, ok := direntNamlen(rec)
    		if !ok || namoff+namlen > uint64(len(rec)) {
    			break
    		}
    		name := rec[namoff : namoff+namlen]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go

    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. src/internal/poll/fd_wasip1.go

    	return sizeOfDirent + namelen, ok
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntNext(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Next), unsafe.Sizeof(syscall.Dirent{}.Next))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:14:02 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top