Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,103 for NCases (0.17 sec)

  1. src/internal/abi/switch.go

    // license that can be found in the LICENSE file.
    
    package abi
    
    type InterfaceSwitch struct {
    	Cache  *InterfaceSwitchCache
    	NCases int
    
    	// Array of NCases elements.
    	// Each case must be a non-empty interface type.
    	Cases [1]*InterfaceType
    }
    
    type InterfaceSwitchCache struct {
    	Mask    uintptr                      // mask for index. Must be a power of 2 minus 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. src/runtime/select.go

    	selectDefault           // default
    )
    
    //go:linkname reflect_rselect reflect.rselect
    func reflect_rselect(cases []runtimeSelect) (int, bool) {
    	if len(cases) == 0 {
    		block()
    	}
    	sel := make([]scase, len(cases))
    	orig := make([]int, len(cases))
    	nsends, nrecvs := 0, 0
    	dflt := -1
    	for i, rc := range cases {
    		var j int
    		switch rc.dir {
    		case selectDefault:
    			dflt = i
    			continue
    		case selectSend:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 13 21:36:04 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/cfg/builder.go

    	var defaultFallthrough *Block
    	var fallthru, defaultBlock *Block
    	ncases := len(s.Body.List)
    	for i, clause := range s.Body.List {
    		body := fallthru
    		if body == nil {
    			body = b.newBlock(KindSwitchCaseBody, clause) // first case only
    		}
    
    		// Preallocate body block for the next case.
    		fallthru = done
    		if i+1 < ncases {
    			fallthru = b.newBlock(KindSwitchCaseBody, s.Body.List[i+1])
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. src/runtime/iface.go

    // interfaceSwitch compares t against the list of cases in s.
    // If t matches case i, interfaceSwitch returns the case index i and
    // an itab for the pair <t, s.Cases[i]>.
    // If there is no match, return N,nil, where N is the number
    // of cases.
    func interfaceSwitch(s *abi.InterfaceSwitch, t *_type) (int, *itab) {
    	cases := unsafe.Slice(&s.Cases[0], s.NCases)
    
    	// Results if we don't find a match.
    	case_ := len(cases)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/switch.go

    	labels := make([]*types.Sym, len(sw.Cases))
    	for i := range sw.Cases {
    		labels[i] = typecheck.AutoLabel(".s")
    	}
    
    	// "jump" to execute if no case matches.
    	br := ir.NewBranchStmt(base.Pos, ir.OBREAK, nil)
    
    	// Assemble a list of all the types we're looking for.
    	// This pass flattens the case lists, as well as handles
    	// some unusual cases, like default and nil cases.
    	type oneCase struct {
    		pos src.XPos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/cases/cases.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:generate go run gen.go gen_trieval.go
    
    // Package cases provides general and language-specific case mappers.
    package cases // import "golang.org/x/text/cases"
    
    import (
    	"golang.org/x/text/language"
    	"golang.org/x/text/transform"
    )
    
    // References:
    // - Unicode Reference Manual Chapter 3.13, 4.2, and 5.18.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

        public Lifecycle(String id, List<String> phases, Map<String, LifecyclePhase> defaultPhases) {
            this.id = id;
            this.phases = phases;
            this.defaultPhases = defaultPhases;
        }
    
        public Lifecycle(org.apache.maven.api.Lifecycle lifecycle) {
            this.lifecycle = lifecycle;
            this.id = lifecycle.id();
            this.phases = lifecycle.phases().stream()
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/topologymanager/policy_best_effort_test.go

    	numaInfo := commonNUMAInfoFourNodes()
    	policy := &bestEffortPolicy{numaInfo: numaInfo}
    
    	tcases := commonPolicyMergeTestCases(numaInfo.Nodes)
    	tcases = append(tcases, policy.mergeTestCases(numaInfo.Nodes)...)
    	tcases = append(tcases, policy.mergeTestCasesNoPolicies(numaInfo.Nodes)...)
    
    	testPolicyMerge(policy, tcases, t)
    }
    
    func TestPolicyBestEffortMergeClosestNUMA(t *testing.T) {
    	numaInfo := commonNUMAInfoEightNodes()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/phases/workflow/doc.go

    		...
    	...
    
    Phases are designed to be reusable across different kubeadm workflows thus allowing
    e.g. reuse of phase certs in both kubeadm init and kubeadm join --control-plane workflows.
    
    Each workflow can be defined and managed using a Runner, that will run all
    the phases according to the given order; nested phases will be executed immediately
    after their parent phase.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 14 23:49:31 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/topologymanager/policy_single_numa_node_test.go

    	numaInfo := commonNUMAInfoFourNodes()
    	policy := singleNumaNodePolicy{numaInfo: numaInfo, opts: PolicyOptions{}}
    
    	tcases := commonPolicyMergeTestCases(numaInfo.Nodes)
    	tcases = append(tcases, policy.mergeTestCases(numaInfo.Nodes)...)
    
    	testPolicyMerge(&policy, tcases, t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 4.6K bytes
    - Viewed (0)
Back to top