- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 388 for alignment (0.21 sec)
-
src/cmd/compile/internal/walk/order.go
default: // Unsafe cast through memory. // We'll need to do a load with type kt. Create a temporary of type kt to // ensure sufficient alignment. nt may be under-aligned. if uint8(kt.Alignment()) < uint8(nt.Alignment()) { base.Fatalf("mapKeyTemp: key type is not sufficiently aligned, kt=%v nt=%v", kt, nt) } tmp := o.newTemp(kt, true) // *(*nt)(&tmp) = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/runtime/runtime_test.go
} type T3 struct { n byte z [4]struct{} } if unsafe.Sizeof(T3{}) != 2 { t.Errorf("sizeof(%#v)==%d, want 2", T3{}, unsafe.Sizeof(T3{})) } // make sure padding can double for both zerosize and alignment type T4 struct { a int32 b int16 c int8 z struct{} } if unsafe.Sizeof(T4{}) != 8 { t.Errorf("sizeof(%#v)==%d, want 8", T4{}, unsafe.Sizeof(T4{})) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/runtime/asm_arm.s
// Called on a system stack, and there may be no g yet (during needm). TEXT ·asmcgocall_no_g(SB),NOSPLIT,$0-8 MOVW fn+0(FP), R1 MOVW arg+4(FP), R0 MOVW R13, R2 SUB $32, R13 BIC $0x7, R13 // alignment for gcc ABI MOVW R2, 8(R13) BL (R1) MOVW 8(R13), R2 MOVW R2, R13 RET // func asmcgocall(fn, arg unsafe.Pointer) int32 // Call fn(arg) on the scheduler stack,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:00:52 UTC 2024 - 32.1K bytes - Viewed (0) -
src/runtime/race_amd64.s
// Switch to g0 stack. MOVQ SP, R12 // callee-saved, preserved across the CALL MOVQ m_g0(R13), R10 CMPQ R10, R14 JE call // already on g0 MOVQ (g_sched+gobuf_sp)(R10), SP call: ANDQ $~15, SP // alignment for gcc ABI CALL AX MOVQ R12, SP // Back to Go world, set special registers. // The g register (R14) is preserved in C. XORPS X15, X15 RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 15.1K bytes - Viewed (0) -
internal/rest/client.go
func (n *NetworkError) Unwrap() error { return n.Err } // Client - http based RPC client. type Client struct { connected int32 // ref: https://golang.org/pkg/sync/atomic/#pkg-note-BUG _ int32 // For 64 bits alignment lastConn int64 // HealthCheckFn is the function set to test for health. // If not set the client will not keep track of health. // Calling this returns true or false if the target // is online or offline.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 14.4K bytes - Viewed (0) -
src/go/printer/testdata/expressions.golden
"638952175999932299156089414639761565182862536979208272237582" + "51185210916864000000000000000000000000" // 100! _ = "170141183460469231731687303715884105727" // prime } // Alignment after overlong lines const ( _ = "991" _ = "2432902008176640000" // 20! _ = "933262154439441526816992388562667004907159682643816214685929" + "638952175999932299156089414639761565182862536979208272237582" +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 16:41:54 UTC 2017 - 12.4K bytes - Viewed (0) -
src/go/printer/testdata/expressions.raw
"638952175999932299156089414639761565182862536979208272237582" + "51185210916864000000000000000000000000" // 100! _ = "170141183460469231731687303715884105727" // prime } // Alignment after overlong lines const ( _ = "991" _ = "2432902008176640000" // 20! _ = "933262154439441526816992388562667004907159682643816214685929" + "638952175999932299156089414639761565182862536979208272237582" +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 16:41:54 UTC 2017 - 12.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/block.go
BranchLikely = BranchPrediction(+1) ) type Hotness int8 // Could use negative numbers for specifically non-hot blocks, but don't, yet. const ( // These values are arranged in what seems to be order of increasing alignment importance. // Currently only a few are relevant. Implicitly, they are all in a loop. HotNotFlowIn Hotness = 1 << iota // This block is only reached by branches
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 12.2K bytes - Viewed (0) -
src/runtime/asm_386.s
// Called on a system stack, and there may be no g yet (during needm). TEXT ·asmcgocall_no_g(SB),NOSPLIT,$0-8 MOVL fn+0(FP), AX MOVL arg+4(FP), BX MOVL SP, DX SUBL $32, SP ANDL $~15, SP // alignment, perhaps unnecessary MOVL DX, 8(SP) // save old SP MOVL BX, 0(SP) // first argument in x86-32 ABI CALL AX MOVL 8(SP), DX MOVL DX, SP RET // func asmcgocall(fn, arg unsafe.Pointer) int32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 15:45:13 UTC 2024 - 43.1K bytes - Viewed (0) -
src/hash/maphash/smhasher_test.go
// currently disabled in -race mode. var fixedSeed = MakeSeed() // Sanity checks. // hash should not depend on values outside key. // hash should not depend on alignment. func TestSmhasherSanity(t *testing.T) { t.Parallel() r := rand.New(rand.NewSource(1234)) const REP = 10 const KEYMAX = 128 const PAD = 16 const OFFMAX = 16 for k := 0; k < REP; k++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 11K bytes - Viewed (0)