Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 321 for Alignment (0.24 sec)

  1. test/fixedbugs/bug260.go

    		fmt.Println("FAIL")
    		if report {
    			fmt.Println("alignment should be 1, is", a1-a0)
    		}
    		status = 1
    	}
    	var b2 [10]T2
    	a0, _ = strconv.ParseUint(fmt.Sprintf("%p", &b2[0])[2:], 16, 64)
    	a1, _ = strconv.ParseUint(fmt.Sprintf("%p", &b2[1])[2:], 16, 64)
    	if a1 != a0+2 {
    		if status == 0 {
    			fmt.Println("FAIL")
    			status = 1
    		}
    		if report {
    			fmt.Println("alignment should be 2, is", a1-a0)
    		}
    	}
    	var b4 [10]T4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 1.3K bytes
    - Viewed (0)
  2. src/go/types/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: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/NativeAlignmentWithJavaPlatformResolveIntegrationTest.groovy

                    id 'java-platform'
                }
    
                dependencies {
                    constraints {
                        api(project(":core")) { because "platform alignment" }
                        api(project(":lib")) { because "platform alignment" }
                    }
                }
    
                publishing {
                    publications {
                        maven(MavenPublication) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/LOONG64.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: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/pgen.go

    	// them altogether.
    	ap = a.Needzero()
    	bp = b.Needzero()
    	if ap != bp {
    		return ap
    	}
    
    	// Sort variables in descending alignment order, so we can optimally
    	// pack variables into the frame.
    	if a.Type().Alignment() != b.Type().Alignment() {
    		return a.Type().Alignment() > b.Type().Alignment()
    	}
    
    	// Sort normal variables before open-coded-defer slots, so that the
    	// latter are grouped together and near the top of the frame (to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. src/go/types/sizes.go

    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    //     types are naturally aligned with a maximum alignment MaxAlign.
    //
    // *StdSizes implements Sizes.
    type StdSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testgodefs/testdata/bitfields.go

        unsigned int B6     :  1;
        unsigned int B7     :  1;
        unsigned int B8     :  1;
        unsigned int B9     :  1;
        unsigned int B10    :  3;
        unsigned int Short2 : 16; // alignment is OK
        unsigned int Short3 : 16; // alignment is OK
    };
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 838 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top