Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 316 for offsetsof (0.2 sec)

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

    // license that can be found in the LICENSE file.
    
    //go:build arm
    
    package atomic
    
    import (
    	"internal/cpu"
    	"unsafe"
    )
    
    const (
    	offsetARMHasV7Atomics = unsafe.Offsetof(cpu.ARM.HasV7Atomics)
    )
    
    // Export some functions via linkname to assembly in sync/atomic.
    //
    //go:linkname Xchg
    //go:linkname Xchguintptr
    //go:linkname Xadd
    
    type spinlock struct {
    	v uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/os/dir_unix.go

    		// of inodes. Therefore, we cannot make the assumption that it is safe
    		// to skip entries with zero inodes.
    		if ino == 0 && runtime.GOOS != "wasip1" {
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(syscall.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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_android.c

    	// If thread local slots are laid out as we expect, our magic word will
    	// be located at some low offset from tlsbase. However, just in case something went
    	// wrong, the search is limited to sensible offsets. PTHREAD_KEYS_MAX was the
    	// original limit, but issue 19472 made a higher limit necessary.
    	for (i=0; i<384; i++) {
    		if (*(tlsbase+i) == (void*)magic1) {
    			*tlsg = (void*)(i*sizeof(void *));
    			pthread_setspecific(k, 0);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 09 23:17:17 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  4. src/syscall/syscall_aix.go

    		a[i] = _Gid_t(v)
    	}
    	return setgroups(len(a), &a[0])
    }
    
    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) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/DataStructuralEquality.kt

    
    /**
     * Checks the data in the content of the documents for equality structurally, ignoring:
     * * the [DeclarativeDocument] implementations,
     * * the differences in the source information, like source identifiers or the offsets in the source data,
     * * the source representations of the literal values (thus taking into account only the values),
     * * the error causes, thus considering all error nodes equal to each other but not to any other node.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. cmd/copy-part-range.go

    	}
    }
    
    // Parses x-amz-copy-source-range for CopyObjectPart API. Its behavior
    // is different from regular HTTP range header. It only supports the
    // form `bytes=first-last` where first and last are zero-based byte
    // offsets. See
    // http://docs.aws.amazon.com/AmazonS3/latest/API/mpUploadUploadPartCopy.html
    // for full details. This function treats an empty rangeString as
    // referring to the whole resource.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 18 03:27:04 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  7. src/reflect/asm_amd64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    #include "funcdata.h"
    #include "go_asm.h"
    
    // The frames of each of the two functions below contain two locals, at offsets
    // that are known to the runtime.
    //
    // The first local is a bool called retValid with a whole pointer-word reserved
    // for it on the stack. The purpose of this word is so that the runtime knows
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 01 22:33:29 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  8. src/internal/fuzz/sys_windows.go

    	access := uint32(syscall.FILE_MAP_READ | syscall.FILE_MAP_WRITE)
    	addr, err := syscall.MapViewOfFile(
    		mapObj,        // handle
    		access,        // access
    		0,             // offsetHigh
    		0,             // offsetLow
    		uintptr(size), // length
    	)
    	if err != nil {
    		syscall.CloseHandle(mapObj)
    		return nil, err
    	}
    
    	region := unsafe.Slice((*byte)(unsafe.Pointer(addr)), size)
    	return &sharedMem{
    		f:             f,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:35:25 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/reflect/asm_loong64.s

    // license that can be found in the LICENSE file.
    
    #include "textflag.h"
    #include "funcdata.h"
    
    #define	REGCTXT	R29
    
    // The frames of each of the two functions below contain two locals, at offsets
    // that are known to the runtime.
    //
    // The first local is a bool called retValid with a whole pointer-word reserved
    // for it on the stack. The purpose of this word is so that the runtime knows
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/test.go

    typedef struct {
    	innerUnpacked g1;
    	uint64_t g2;
    } outerUnpacked;
    
    size_t offset(int x) {
    	switch (x) {
    	case 0:
    		return offsetof(innerPacked, f2);
    	case 1:
    		return offsetof(outerPacked, g2);
    	case 2:
    		return offsetof(innerUnpacked, f2);
    	case 3:
    		return offsetof(outerUnpacked, g2);
    	default:
    		abort();
    	}
    }
    
    // issue 29748
    
    typedef struct { char **p; } S29748;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
Back to top