Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 159 for alignof (0.12 sec)

  1. src/runtime/syscall_windows.go

    		// caller reserved spill space.
    		p.dstSpill = alignUp(p.dstSpill, uintptr(t.Align_))
    		p.dstSpill += t.Size_
    	} else {
    		// Register assignment failed.
    		// Undo the work and stack assign.
    		p.parts = oldParts
    
    		// The Go ABI aligns arguments.
    		p.dstStackSize = alignUp(p.dstStackSize, uintptr(t.Align_))
    
    		// Copy just the size of the argument. Note that this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/runtime/checkptr.go

    	// 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?
    	if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 {
    		throw("checkptr: misaligned pointer conversion")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. doc/next/5-toolchain.md

    For 386 and amd64, the compiler will use information from PGO to align certain
    hot blocks in loops.  This improves performance an additional 1-1.5% at
    a cost of an additional 0.1% text and binary size.  This is currently only implemented
    on 386 and amd64 because it has not shown an improvement on other platforms.
    Hot block alignment can be disabled with `-gcflags=[<packages>=]-d=alignhot=0`
    
    ## Assembler {#assembler}
    
    ## Linker {#linker}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/runtime/traceregion.go

    	off  atomic.Uintptr
    }
    
    const traceRegionAllocBlockData = 64<<10 - unsafe.Sizeof(traceRegionAllocBlockHeader{})
    
    // alloc allocates n-byte block. The block is always aligned to 8 bytes, regardless of platform.
    func (a *traceRegionAlloc) alloc(n uintptr) *notInHeap {
    	n = alignUp(n, 8)
    	if n > traceRegionAllocBlockData {
    		throw("traceRegion: alloc too large")
    	}
    	if a.dropping.Load() {
    		throw("traceRegion: alloc with concurrent drop")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    				wantParens = true
    			case op.Name == `operator"" `:
    				wantParens = false
    			case op.Name == "&":
    				wantParens = false
    			case isDelete:
    				wantParens = false
    			case op.Name == "alignof ":
    				wantParens = true
    			case op.Name == "sizeof ":
    				wantParens = true
    			case op.Name == "typeid ":
    				wantParens = true
    			default:
    				wantParens = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  6. src/sync/atomic/type.go

    // Lock is a no-op used by -copylocks checker from `go vet`.
    func (*noCopy) Lock()   {}
    func (*noCopy) Unlock() {}
    
    // align64 may be added to structs that must be 64-bit aligned.
    // This struct is recognized by a special case in the compiler
    // and will not work if copied to any other package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/atomic_mipsx.s

    TEXT ·Or8(SB),NOSPLIT,$0-5
    	MOVW	ptr+0(FP), R1
    	MOVBU	val+4(FP), R2
    	MOVW	$~3, R3	// Align ptr down to 4 bytes so we can use 32-bit load/store.
    	AND	R1, R3
    #ifdef GOARCH_mips
    	// Big endian.  ptr = ptr ^ 3
    	XOR	$3, R1
    #endif
    	AND	$3, R1, R4	// R4 = ((ptr & 3) * 8)
    	SLL	$3, R4
    	SLL	R4, R2, R2	// Shift val for aligned ptr. R2 = val << R4
    	SYNC
    try_or8:
    	LL	(R3), R4	// R4 = *R3
    	OR	R2, R4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 21:29:34 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. src/runtime/mgcscavenge.go

    	} else if minimum > maxPagesPerPhysPage {
    		print("runtime: min = ", minimum, "\n")
    		throw("min too large")
    	}
    	// max may not be min-aligned, so we might accidentally truncate to
    	// a max value which causes us to return a non-min-aligned value.
    	// To prevent this, align max up to a multiple of min (which is always
    	// a power of 2). This also prevents max from ever being less than
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  9. maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir);
    
            assertEquals(basedir.getAbsolutePath(), aligned);
        }
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/reflect/abi.go

    		// at the top.
    		a.stackBytes = align(a.stackBytes, uintptr(t.Align()))
    		return nil
    	}
    	// Hold a copy of "a" so that we can roll back if
    	// register assignment fails.
    	aOld := *a
    	if !a.regAssign(t, 0) {
    		// Register assignment failed. Roll back any changes
    		// and stack-assign.
    		*a = aOld
    		a.stackAssign(t.Size(), uintptr(t.Align()))
    		return &a.steps[len(a.steps)-1]
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top