Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 388 for alignment (0.21 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/go/printer/testdata/expressions.golden

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  7. src/go/printer/testdata/expressions.raw

    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top