Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 281 for Alignment (0.14 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    	&& isSamePtr(p1, p2) && isSamePtr(p2, p3) && isSamePtr(p3, p4) && isSamePtr(p4, p5) && isSamePtr(p5, p6)
    	&& t2.Alignment() <= t1.Alignment()
    	&& t3.Alignment() <= t1.Alignment()
    	&& t4.Alignment() <= t1.Alignment()
    	&& t5.Alignment() <= t1.Alignment()
    	&& t6.Alignment() <= t1.Alignment()
    	&& registerizable(b, t2)
    	&& registerizable(b, t3)
    	&& registerizable(b, t4)
    	&& registerizable(b, t5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loong64/l.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package loong64
    
    const (
    	maxAlign  = 32 // max data alignment
    	minAlign  = 1  // min data alignment
    	funcAlign = 16
    )
    
    /* Used by ../../internal/ld/dwarf.go */
    const (
    	dwarfRegSP = 3
    	dwarfRegLR = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 20:21:44 UTC 2023
    - 363 bytes
    - Viewed (0)
  3. test/fixedbugs/issue67160.go

    // T is "special" because of the unnamed field, so it needs a generated equality function.
    // T is an odd number of bytes in size and has alignment 1.
    type T struct {
    	src [8]byte
    	_   byte
    }
    
    // U contains 8 copies of T, each at a different %8 alignment.
    type U [8]T
    
    //go:noinline
    func f(x, y *U) bool {
    	return *x == *y
    }
    
    func main() {
    	var a U
    	_ = f(&a, &a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:34:04 UTC 2024
    - 767 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Zero [1] ptr mem) => (MOVBstore ptr (MOVDconst [0]) mem)
    (Zero [2] {t} ptr mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore ptr (MOVDconst [0]) mem)
    (Zero [2] ptr mem) =>
    	(MOVBstore [1] ptr (MOVDconst [0])
    		(MOVBstore ptr (MOVDconst [0]) mem))
    (Zero [4] {t} ptr mem) && t.Alignment()%4 == 0 =>
    	(MOVWstore ptr (MOVDconst [0]) mem)
    (Zero [4] {t} ptr mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore [2] ptr (MOVDconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  5. src/runtime/internal/sys/consts.go

    // PCQuantum is the minimal unit for a program counter (1 on x86, 4 on most other systems).
    // The various PC tables record PC deltas pre-divided by PCQuantum.
    const PCQuantum = goarch.PCQuantum
    
    // Int64Align is the required alignment for a 64-bit integer (4 on 32-bit systems, 8 on 64-bit).
    const Int64Align = goarch.PtrSize
    
    // MinFrameSize is the size of the system-reserved words at the bottom
    // of a frame (just above the architectural stack pointer).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:26:25 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (Zero [s] {t} ptr mem)
    	&& (s > 8*128 || config.noDuffDevice) || t.Alignment()%8 != 0 =>
    	(LoweredZero [t.Alignment()]
    		ptr
    		(ADDVconst <ptr.Type> ptr [s-moveSize(t.Alignment(), config)])
    		mem)
    
    // moves
    (Move [0] _ _ mem) => mem
    (Move [1] dst src mem) => (MOVBstore dst (MOVBload src mem) mem)
    (Move [2] {t} dst src mem) && t.Alignment()%2 == 0 =>
    	(MOVHstore dst (MOVHload src mem) mem)
    (Move [2] dst src mem) =>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  7. src/runtime/mksizeclasses.go

    		if powerOfTwo(size) { // bump alignment once in a while
    			if size >= 2048 {
    				align = 256
    			} else if size >= 128 {
    				align = size / 8
    			} else if size >= 32 {
    				align = 16 // heap bitmaps assume 16 byte alignment for allocations >= 32 bytes.
    			}
    		}
    		if !powerOfTwo(align) {
    			panic("incorrect alignment")
    		}
    
    		// Make the allocnpages big enough that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. src/runtime/memmove_riscv64.s

    	// If less than 8 bytes, do single byte copies.
    	MOV	$8, X9
    	BLT	X12, X9, f_loop4_check
    
    	// Check alignment - if alignment differs we have to do one byte at a time.
    	AND	$7, X10, X5
    	AND	$7, X11, X6
    	BNE	X5, X6, f_loop8_unaligned_check
    	BEQZ	X5, f_loop_check
    
    	// Move one byte at a time until we reach 8 byte alignment.
    	SUB	X5, X9, X5
    	SUB	X5, X12, X12
    f_align:
    	SUB	$1, X5
    	MOVB	0(X11), X14
    	MOVB	X14, 0(X10)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 13:57:06 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. src/runtime/memclr_arm64.s

    	BNE	no_zva
    
    zero_by_line:
    	CMP	R5, R1
    	// Not enough memory to reach alignment
    	BLO	no_zva
    	SUB	$1, R5, R6
    	NEG	R0, R4
    	ANDS	R6, R4, R4
    	// Already aligned
    	BEQ	aligned
    
    	// check there is enough to copy after alignment
    	SUB	R4, R1, R3
    
    	// Check that the remaining length to ZVA after alignment
    	// is greater than 64.
    	CMP	$64, R3
    	CCMP	GE, R3, R5, $10  // condition code GE, NZCV=0b1010
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/gcsizes.go

    type gcSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    func (s *gcSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 1)
    	}()
    
    	// For arrays and structs, alignment is defined in terms
    	// of alignment of the elements and fields, respectively.
    	switch t := under(T).(type) {
    	case *Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top