- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 139 for Alignment (0.22 sec)
-
src/cmd/compile/internal/typebits/typebits.go
// SetNoCheck is like Set, but do not check for alignment. func SetNoCheck(t *types.Type, off int64, bv bitvec.BitVec) { set(t, off, bv, true) } func set(t *types.Type, off int64, bv bitvec.BitVec, skip bool) { if !skip && uint8(t.Alignment()) > 0 && off&int64(uint8(t.Alignment())-1) != 0 { base.Fatalf("typebits.Set: invalid initial alignment: type %v has alignment %d, but offset is %v", t, uint8(t.Alignment()), off) } if !t.HasPointers() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 3.2K bytes - Viewed (0) -
test/fixedbugs/issue24799.go
// is generated for the instruction. A fix was made to avoid // generating an instruction with DS relocation for go.strings // since their alignment is not known until link time. // This problem only affects go.string since other types have // correct alignment. const ( LevelBad Level = "badvals" LevelNone Level = "No" LevelMetadata Level = "Metadata" LevelRequest Level = "Request"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 20 16:16:47 UTC 2018 - 1.4K bytes - Viewed (0) -
src/syscall/sockcmsg_unix_other.go
switch runtime.GOOS { case "aix": // There is no alignment on AIX. salign = 1 case "darwin", "ios", "illumos", "solaris": // NOTE: It seems like 64-bit Darwin, Illumos and Solaris // kernels still require 32-bit aligned access to network // subsystem. if sizeofPtr == 8 { salign = 4 } case "netbsd", "openbsd": // NetBSD and OpenBSD armv7 require 64-bit alignment. if runtime.GOARCH == "arm" { salign = 8 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/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: Mon Mar 25 19:53:03 UTC 2024 - 8.8K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/img/commandLineTutorialTasks.graphml
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 6.3K bytes - Viewed (0) -
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) -
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) -
platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/NativeAlignmentWithJavaPlatformResolveIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 13 19:52:38 UTC 2024 - 8.9K bytes - Viewed (0) -
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) -
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)