Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 218 for aligned2 (0.32 sec)

  1. src/cmd/cgo/internal/testgodefs/testdata/bitfields.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    // This file tests that we don't generate an incorrect field location
    // for a bitfield that appears aligned.
    
    /*
    struct bitfields {
        unsigned int B1     :  5;
        unsigned int B2     :  1;
        unsigned int B3     :  1;
        unsigned int B4     :  1;
        unsigned int Short1 : 16; // misaligned on 8 bit boundary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 838 bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/alignment/AbstractAlignmentSpec.groovy

                def moduleName = name
                def alignedTo = alignsTo
                def otherVersions = seenVersions
                otherVersions.remove(alignedTo)
                def missedVersions = misses
                spec.group(group) {
                    module(moduleName) {
                        if (alignedTo) {
                            version(alignedTo) {
                                expectResolve()
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. src/runtime/cgo/abi_ppc64x.h

    //
    //	R14-R31
    //	CR2-4
    //	VR20-31
    //	F14-F31
    //
    // xcoff(aix) and ELFv1 are similar, but may only require a
    // subset of these.
    //
    // These macros assume a 16 byte aligned stack pointer. This
    // is required by ELFv1, ELFv2, and AIX PPC64.
    
    #define SAVE_GPR_SIZE (18*8)
    #define SAVE_GPR(offset)               \
    	MOVD	R14, (offset+8*0)(R1)  \
    	MOVD	R15, (offset+8*1)(R1)  \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 03 20:17:02 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. src/runtime/mem.go

    // returns memory unconditionally. It is used if an out-of-memory error has been
    // detected midway through an allocation or to carve out an aligned section of
    // the address space. It is okay if sysFree is a no-op only if sysReserve always
    // returns a memory region aligned to the heap allocator's alignment
    // restrictions.
    //
    // sysStat must be non-nil.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. src/runtime/checkptr.go

    package runtime
    
    import "unsafe"
    
    func checkptrAlignment(p unsafe.Pointer, elem *_type, n uintptr) {
    	// nil pointer is always suitably aligned (#47430).
    	if p == nil {
    		return
    	}
    
    	// Check that (*[n]elem)(p) is appropriately aligned.
    	// Note that we allow unaligned pointers if the types they point to contain
    	// no pointers themselves. See issue 37298.
    	// TODO(mdempsky): What about fieldAlign?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/runtime/memclr_loong64.s

    TEXT runtime·memclrNoHeapPointers<ABIInternal>(SB),NOSPLIT,$0-16
    	ADDV	R4, R5, R6
    
    	// if less than 8 bytes, do one byte at a time
    	SGTU	$8, R5, R8
    	BNE	R8, out
    
    	// do one byte at a time until 8-aligned
    	AND	$7, R4, R8
    	BEQ	R8, words
    	MOVB	R0, (R4)
    	ADDV	$1, R4
    	JMP	-4(PC)
    
    words:
    	// do 8 bytes at a time if there is room
    	ADDV	$-7, R6, R5
    
    	PCALIGN	$16
    	SGTU	R5, R4, R8
    	BEQ	R8, out
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 766 bytes
    - Viewed (0)
  7. src/runtime/malloc_test.go

    	// nothing else allocates from it.
    	runtime.Acquirem()
    
    	// Make 1-byte allocations until we get a fresh tiny slot.
    	aligned := false
    	for i := 0; i < 16; i++ {
    		x := runtime.Escape(new(byte))
    		if uintptr(unsafe.Pointer(x))&0xf == 0xf {
    			aligned = true
    			break
    		}
    	}
    	if !aligned {
    		runtime.Releasem()
    		t.Fatal("unable to get a fresh tiny slot")
    	}
    
    	// Create a 4-byte object so that the current
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go

    	case "aix":
    		// There is no alignment on AIX.
    		salign = 1
    	case "darwin", "ios", "illumos", "solaris":
    		// NOTE: It seems like 64-bit Darwin, Illumos and Solaris
    		// kernels still require 32-bit aligned access to network
    		// subsystem.
    		if SizeofPtr == 8 {
    			salign = 4
    		}
    	case "netbsd", "openbsd":
    		// NetBSD and OpenBSD armv7 require 64-bit alignment.
    		if runtime.GOARCH == "arm" {
    			salign = 8
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/go/types/gcsizes.go

    	case *Struct:
    		if len(t.fields) == 0 && _IsSyncAtomicAlign64(T) {
    			// Special case: sync/atomic.align64 is an
    			// empty struct we recognize as a signal that
    			// the struct it contains must be
    			// 64-bit-aligned.
    			//
    			// This logic is equivalent to the logic in
    			// cmd/compile/internal/types/size.go:calcStructOffset
    			return 8
    		}
    
    		// spec: "For a variable x of struct type: unsafe.Alignof(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/runtime/mem_linux.go

    		// The Linux implementation requires that the address
    		// addr be page-aligned, and allows length to be zero.
    		throw("unaligned sysNoHugePageOS")
    	}
    	madvise(v, n, _MADV_NOHUGEPAGE)
    }
    
    func sysHugePageCollapseOS(v unsafe.Pointer, n uintptr) {
    	if uintptr(v)&(physPageSize-1) != 0 {
    		// The Linux implementation requires that the address
    		// addr be page-aligned, and allows length to be zero.
    		throw("unaligned sysHugePageCollapseOS")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top