- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for maxAlign (0.39 sec)
-
src/cmd/link/internal/loong64/obj.go
import ( "cmd/internal/objabi" "cmd/internal/sys" "cmd/link/internal/ld" ) func Init() (*sys.Arch, ld.Arch) { arch := sys.ArchLoong64 theArch := ld.Arch{ Funcalign: funcAlign, Maxalign: maxAlign, Minalign: minAlign, Dwarfregsp: dwarfRegSP, Dwarfreglr: dwarfRegLR, CodePad: []byte{0x00, 0x00, 0x2a, 0x00}, // BREAK 0 Adddynrel: adddynrel,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 13:49:14 UTC 2024 - 1.5K bytes - Viewed (0) -
src/go/types/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: Wed Apr 03 18:48:38 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
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) -
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) -
src/runtime/chan.go
// c.qcount < c.dataqsiz implies that c.sendq is empty. import ( "internal/abi" "internal/runtime/atomic" "runtime/internal/math" "unsafe" ) const ( maxAlign = 8 hchanSize = unsafe.Sizeof(hchan{}) + uintptr(-int(unsafe.Sizeof(hchan{}))&(maxAlign-1)) debugChan = false ) type hchan struct { qcount uint // total data in the queue dataqsiz uint // size of the circular queue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 25.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go
// any of them counts as writing to result. retRegs []string // calculated during initialization sizes types.Sizes intSize int ptrSize int maxAlign int } // An asmFunc describes the expected variables for a function on a given architecture. type asmFunc struct { arch *asmArch size int // size of all arguments vars map[string]*asmVar
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 22.8K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
syms = syms[:0] for k := range sl { s := sl[k].sym if s != head && s != tail { align := symalign(ldr, s) if maxAlign < align { maxAlign = align } } syms = append(syms, s) } return syms, maxAlign } // Add buildid to beginning of text segment, on non-ELF systems. // Non-ELF binary formats are not always flexible enough to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (1) -
src/cmd/link/internal/ld/lib.go
} if ctxt.IsDarwin() { ctxt.mkArchSym(".linkedit.got", 0, &ctxt.LinkEditGOT) ctxt.mkArchSym(".linkedit.plt", 0, &ctxt.LinkEditPLT) } } type Arch struct { Funcalign int Maxalign int Minalign int Dwarfregsp int Dwarfreglr int // Threshold of total text size, used for trampoline insertion. If the total // text size is smaller than TrampLimit, we won't need to insert trampolines.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 88.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"SendOnly", Const, 5}, {"SendRecv", Const, 5}, {"Signature", Type, 5}, {"Sizes", Type, 5}, {"SizesFor", Func, 9}, {"Slice", Type, 5}, {"StdSizes", Type, 5}, {"StdSizes.MaxAlign", Field, 5}, {"StdSizes.WordSize", Field, 5}, {"String", Const, 5}, {"Struct", Type, 5}, {"Term", Type, 18}, {"Tuple", Type, 5}, {"Typ", Var, 5}, {"Type", Type, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)