Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for MaxAlign (0.14 sec)

  1. src/cmd/link/internal/arm/obj.go

    import (
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"cmd/link/internal/ld"
    )
    
    func Init() (*sys.Arch, ld.Arch) {
    	arch := sys.ArchARM
    
    	theArch := ld.Arch{
    		Funcalign:  funcAlign,
    		Maxalign:   maxAlign,
    		Minalign:   minAlign,
    		Dwarfregsp: dwarfRegSP,
    		Dwarfreglr: dwarfRegLR,
    		TrampLimit: 0x1c00000, // 24-bit signed offset * 4, leave room for PLT etc.
    
    		Plan9Magic: 0x647,
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/loong64/l.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // 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. src/cmd/compile/internal/types2/gcsizes.go

    	// spec: "For a variable x of any type: unsafe.Alignof(x) is at least 1."
    	if a < 1 {
    		return 1
    	}
    	// complex{64,128} are aligned like [2]float{32,64}.
    	if isComplex(T) {
    		a /= 2
    	}
    	if a > s.MaxAlign {
    		return s.MaxAlign
    	}
    	return a
    }
    
    func (s *gcSizes) Offsetsof(fields []*Var) []int64 {
    	offsets := make([]int64, len(fields))
    	var offs int64
    	for i, f := range fields {
    		if offs < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/size.go

    		// field types.
    		if align := typ.align; align > maxAlign {
    			maxAlign = align
    		}
    
    		// Each field needs its own registers.
    		// We sum in uint64 to avoid possible overflows.
    		intRegs += uint64(typ.intRegs)
    		floatRegs += uint64(typ.floatRegs)
    	}
    
    	// Final size includes trailing padding.
    	size = RoundUp(size, int64(maxAlign))
    
    	if intRegs > math.MaxUint8 || floatRegs > math.MaxUint8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizes.go

    //   - 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
    }
    
    func (s *StdSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  6. src/cmd/link/internal/wasm/obj.go

    // license that can be found in the LICENSE file.
    
    package wasm
    
    import (
    	"cmd/internal/sys"
    	"cmd/link/internal/ld"
    )
    
    func Init() (*sys.Arch, ld.Arch) {
    	theArch := ld.Arch{
    		Funcalign: 16,
    		Maxalign:  32,
    		Minalign:  1,
    
    		Archinit:      archinit,
    		AssignAddress: assignAddress,
    		Asmb:          asmb,
    		Asmb2:         asmb2,
    		Gentext:       gentext,
    	}
    
    	return sys.ArchWasm, theArch
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 18 15:14:38 UTC 2020
    - 646 bytes
    - Viewed (0)
  7. src/cmd/link/internal/mips64/obj.go

    	musl := "/lib/ld-musl-mips64.so.1"
    	if buildcfg.GOARCH == "mips64le" {
    		arch = sys.ArchMIPS64LE
    		musl = "/lib/ld-musl-mips64el.so.1"
    	}
    
    	theArch := ld.Arch{
    		Funcalign:        funcAlign,
    		Maxalign:         maxAlign,
    		Minalign:         minAlign,
    		Dwarfregsp:       dwarfRegSP,
    		Dwarfreglr:       dwarfRegLR,
    		Adddynrel:        adddynrel,
    		Archinit:         archinit,
    		Archreloc:        archreloc,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/cmd/link/internal/amd64/obj.go

    import (
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"cmd/link/internal/ld"
    )
    
    func Init() (*sys.Arch, ld.Arch) {
    	arch := sys.ArchAMD64
    
    	theArch := ld.Arch{
    		Funcalign:  funcAlign,
    		Maxalign:   maxAlign,
    		Minalign:   minAlign,
    		Dwarfregsp: dwarfRegSP,
    		Dwarfreglr: dwarfRegLR,
    		// 0xCC is INT $3 - breakpoint instruction
    		CodePad: []byte{0xCC},
    
    		Plan9Magic:  uint32(4*26*26 + 7),
    		Plan9_64Bit: true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. src/cmd/link/internal/arm64/obj.go

    import (
    	"cmd/internal/objabi"
    	"cmd/internal/sys"
    	"cmd/link/internal/ld"
    )
    
    func Init() (*sys.Arch, ld.Arch) {
    	arch := sys.ArchARM64
    
    	theArch := ld.Arch{
    		Funcalign:  funcAlign,
    		Maxalign:   maxAlign,
    		Minalign:   minAlign,
    		Dwarfregsp: dwarfRegSP,
    		Dwarfreglr: dwarfRegLR,
    		TrampLimit: 0x7c00000, // 26-bit signed offset * 4, leave room for PLT etc.
    
    		Adddynrel:        adddynrel,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:32:19 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/go/types/sizes.go

    //   - 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
    }
    
    func (s *StdSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 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)
Back to top