Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 321 for Alignment (0.3 sec)

  1. pkg/kubelet/cm/topologymanager/topology_manager.go

    	maxAllowableNUMANodes = 8
    	// ErrorTopologyAffinity represents the type for a TopologyAffinityError
    	ErrorTopologyAffinity = "TopologyAffinityError"
    )
    
    // TopologyAffinityError represents an resource alignment error
    type TopologyAffinityError struct{}
    
    func (e TopologyAffinityError) Error() string {
    	return "Resources cannot be allocated with Topology locality"
    }
    
    func (e TopologyAffinityError) Type() string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 12:43:16 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. src/reflect/abi.go

    		a.fregs++
    	}
    	return true
    }
    
    // stackAssign reserves space for one value that is "size" bytes
    // large with alignment "alignment" to the stack.
    //
    // Should not be called directly; use addArg instead.
    func (a *abiSeq) stackAssign(size, alignment uintptr) {
    	a.stackBytes = align(a.stackBytes, alignment)
    	a.steps = append(a.steps, abiStep{
    		kind:   abiStepStack,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:08:32 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/ssa/rewriteMIPS64.go

    	// cond: s > 24 && logLargeCopy(v, s) || t.Alignment()%8 != 0
    	// result: (LoweredMove [t.Alignment()] dst src (ADDVconst <src.Type> src [s-moveSize(t.Alignment(), config)]) mem)
    	for {
    		s := auxIntToInt64(v.AuxInt)
    		t := auxToType(v.Aux)
    		dst := v_0
    		src := v_1
    		mem := v_2
    		if !(s > 24 && logLargeCopy(v, s) || t.Alignment()%8 != 0) {
    			break
    		}
    		v.reset(OpMIPS64LoweredMove)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	// result: (LoweredMove [t.Alignment()] dst src (ADDI <src.Type> [s-moveSize(t.Alignment(), config)] src) mem)
    	for {
    		s := auxIntToInt64(v.AuxInt)
    		t := auxToType(v.Aux)
    		dst := v_0
    		src := v_1
    		mem := v_2
    		if !(s <= 16 || logLargeCopy(v, s)) {
    			break
    		}
    		v.reset(OpRISCV64LoweredMove)
    		v.AuxInt = int64ToAuxInt(t.Alignment())
    		v0 := b.NewValue0(v.Pos, OpRISCV64ADDI, src.Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/memmove_arm64.s

    backward_check:
    	// Use backward copy if there is an overlap.
    	SUB	R1, R0, R14
    	CBZ	R14, copy0
    	CMP	R2, R14
    	BCC	copy_long_backward
    
    	// Copy 16 bytes and then align src (R1) or dst (R0) to 16-byte alignment.
    	LDP	(R1), (R12, R13)     // Load  A
    	AND	$15, R7, R14         // Calculate the realignment offset
    	SUB	R14, R1, R1
    	SUB	R14, R0, R3          // move dst back same amount as src
    	ADD	R14, R2, R2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/runtime/asan_amd64.s

    	MOVQ	g_m(R14), R13
    	// Switch to g0 stack.
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 02:20:04 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top