Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 388 for alignment (0.16 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	}
    	switch {
    	case from.Size() == 2 && uint8(from.Alignment()) == 2:
    		return "convT16", types.Types[types.TUINT16], false
    	case from.Size() == 4 && uint8(from.Alignment()) == 4 && !from.HasPointers():
    		return "convT32", types.Types[types.TUINT32], false
    	case from.Size() == 8 && uint8(from.Alignment()) == uint8(types.Types[types.TUINT64].Alignment()) && !from.HasPointers():
    		return "convT64", types.Types[types.TUINT64], false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/unsafe/unsafe.go

    //	e := unsafe.Pointer(uintptr(unsafe.Pointer(&x[0])) + i*unsafe.Sizeof(x[0]))
    //
    // It is valid both to add and to subtract offsets from a pointer in this way.
    // It is also valid to use &^ to round pointers, usually for alignment.
    // In all cases, the result must continue to point into the original allocated object.
    //
    // Unlike in C, it is not valid to advance a pointer just beyond the end of
    // its original allocation:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cpumanager/policy_static.go

    	ErrorSMTAlignment = "SMTAlignmentError"
    )
    
    // SMTAlignmentError represents an error due to SMT alignment
    type SMTAlignmentError struct {
    	RequestedCPUs         int
    	CpusPerCore           int
    	AvailablePhysicalCPUs int
    }
    
    func (e SMTAlignmentError) Error() string {
    	if e.AvailablePhysicalCPUs > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  4. src/go/printer/testdata/comments.golden

    // This is a package for testing comment placement by go/printer.
    package main
    
    import "fmt"	// fmt
    
    const c0 = 0	// zero
    const (
    	c1	= iota	// c1
    	c2		// c2
    )
    
    // Alignment of comments in declarations>
    const (
    	_	T	= iota	// comment
    	_			// comment
    	_			// comment
    	_	= iota + 10
    	_	// comments
    
    	_		= 10	// comment
    	_	T	= 20	// comment
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  5. src/hash/crc32/crc32_test.go

    						benchmark(b, h, int64(size), int64(align))
    					})
    				}
    			})
    		}
    	}
    }
    
    func benchmark(b *testing.B, h hash.Hash32, n, alignment int64) {
    	b.SetBytes(n)
    	data := make([]byte, n+alignment)
    	data = data[alignment:]
    	for i := range data {
    		data[i] = byte(i)
    	}
    	in := make([]byte, 0, h.Size())
    
    	// Warm up
    	h.Reset()
    	h.Write(data)
    	h.Sum(in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/pe.go

    	// that this will need to grow in the future.
    	var size int
    	var alignment uint32
    	switch buildcfg.GOARCH {
    	default:
    		Exitf("peFile.addInitArray: unsupported GOARCH=%q\n", buildcfg.GOARCH)
    	case "386", "arm":
    		size = 4
    		alignment = IMAGE_SCN_ALIGN_4BYTES
    	case "amd64", "arm64":
    		size = 8
    		alignment = IMAGE_SCN_ALIGN_8BYTES
    	}
    	sect := f.addSection(".ctors", size, size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  7. src/runtime/sys_freebsd_amd64.s

    	MOVQ	_cgo_sigaction(SB), AX
    	MOVQ	SP, BX			// callee-saved
    	ANDQ	$~15, SP		// alignment as per amd64 psABI
    	CALL	AX
    	MOVQ	BX, SP
    	MOVL	AX, ret+24(FP)
    	RET
    
    TEXT runtime·sigfwd(SB),NOSPLIT,$0-32
    	MOVQ	fn+0(FP),    AX
    	MOVL	sig+8(FP),   DI
    	MOVQ	info+16(FP), SI
    	MOVQ	ctx+24(FP),  DX
    	MOVQ	SP, BX		// callee-saved
    	ANDQ	$~15, SP	// alignment for x86_64 ABI
    	CALL	AX
    	MOVQ	BX, SP
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. src/go/printer/testdata/comments.input

    // This is a package for testing comment placement by go/printer.
    //
    package main
    
    import "fmt"  // fmt
    
    const c0 = 0  // zero
    const (
    	c1 = iota  // c1
    	c2  // c2
    )
    
    // Alignment of comments in declarations>
    const (
    	_ T = iota  // comment
    	_  // comment
    	_  // comment
    	_ = iota+10
    	_  // comments
    
    	_ = 10  // comment
    	_ T = 20  // comment
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  9. src/crypto/cipher/gcm_test.go

    	type pair struct{ align, length int }
    	lengths := []int{0, 156, 8192, 8193, 8208}
    	keySizes := []int{16, 24, 32}
    	alignments := []int{0, 1, 2, 3}
    	if testing.Short() {
    		keySizes = []int{16}
    		alignments = []int{1}
    	}
    	perms := make([]pair, 0)
    	for _, l := range lengths {
    		for _, a := range alignments {
    			if a != 0 && l == 0 {
    				continue
    			}
    			perms = append(perms, pair{align: a, length: l})
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  10. src/runtime/sys_linux_amd64.s

    	MOVQ	_cgo_sigaction(SB), AX
    	MOVQ	SP, BX	// callee-saved
    	ANDQ	$~15, SP	// alignment as per amd64 psABI
    	CALL	AX
    	MOVQ	BX, SP
    	MOVL	AX, ret+24(FP)
    	RET
    
    TEXT runtime·sigfwd(SB),NOSPLIT,$0-32
    	MOVQ	fn+0(FP),    AX
    	MOVL	sig+8(FP),   DI
    	MOVQ	info+16(FP), SI
    	MOVQ	ctx+24(FP),  DX
    	MOVQ	SP, BX		// callee-saved
    	ANDQ	$~15, SP     // alignment for x86_64 ABI
    	CALL	AX
    	MOVQ	BX, SP
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 15.7K bytes
    - Viewed (0)
Back to top