- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Alignment (0.19 sec)
-
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) -
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) -
doc/next/5-toolchain.md
a cost of an additional 0.1% text and binary size. This is currently only implemented on 386 and amd64 because it has not shown an improvement on other platforms. Hot block alignment can be disabled with `-gcflags=[<packages>=]-d=alignhot=0` ## Assembler {#assembler} ## Linker {#linker} <!-- go.dev/issue/67401, CL 585556, CL 587220, and many more -->
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:18:10 UTC 2024 - 1.8K bytes - Viewed (0) -
src/runtime/sizeclasses.go
// 65 27264 81920 3 128 10.00% 128 // 66 28672 57344 2 0 4.91% 4096 // 67 32768 32768 1 0 12.50% 8192 // alignment bits min obj size // 8 3 8 // 16 4 32 // 32 5 256 // 64 6 512 // 128 7 768 // 4096 12 28672
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 9.2K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_mipsx.go
pad [cpu.CacheLinePadSize - 4]byte } //go:noescape func spinLock(state *uint32) //go:noescape func spinUnlock(state *uint32) //go:nosplit func lockAndCheck(addr *uint64) { // ensure 8-byte alignment if uintptr(unsafe.Pointer(addr))&7 != 0 { panicUnaligned() } // force dereference before taking lock _ = *addr spinLock(&lock.state) } //go:nosplit func unlock() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 20:08:37 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/export_test.go
func init() { // TODO(mdempsky): Push into types.InitUniverse or typecheck.InitUniverse. types.PtrSize = 8 types.RegSize = 8 types.MaxWidth = 1 << 50 base.Ctxt = &obj.Link{Arch: &obj.LinkArch{Arch: &sys.Arch{Alignment: 1, CanMergeLoads: true}}} typecheck.InitUniverse() testTypes.SetTypPtrs()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 21:19:39 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_tidy_compat_incompatible.txt
# There are two ways for the module author to bring the two into alignment. # One is to *explicitly* 'exclude' the version that is already *implicitly* # pruned out under 1.17. go mod edit -exclude=example.com/retract/incompatible@v2.0.0+incompatible go list -f $MODFMT -deps ./...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 5.5K bytes - Viewed (0) -
src/runtime/memmove_loong64.s
TEXT runtime·memmove<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-24 BNE R6, check RET check: SGTU R4, R5, R7 BNE R7, backward ADDV R4, R6, R9 // end pointer // if the two pointers are not of same alignments, do byte copying SUBVU R5, R4, R7 AND $7, R7 BNE R7, out // if less than 8 bytes, do byte copying SGTU $8, R6, R7 BNE R7, out // do one byte at a time until 8-aligned AND $7, R4, R8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 1.8K bytes - Viewed (0) -
src/crypto/des/block.go
// By doing so, we can have the input blocks (four bits each), and the key blocks (six bits each) well-aligned without // extra shifts/rotations for alignments. func unpack(x uint64) uint64 { return ((x>>(6*1))&0xff)<<(8*0) | ((x>>(6*3))&0xff)<<(8*1) | ((x>>(6*5))&0xff)<<(8*2) | ((x>>(6*7))&0xff)<<(8*3) | ((x>>(6*0))&0xff)<<(8*4) |
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 6.5K bytes - Viewed (0)