Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for newPoset (0.42 sec)

  1. src/cmd/compile/internal/ssa/func.go

    	f.Cache.freeSparseMapPos(ss)
    }
    
    // newPoset returns a new poset from the internal cache
    func (f *Func) newPoset() *poset {
    	if len(f.Cache.scrPoset) > 0 {
    		po := f.Cache.scrPoset[len(f.Cache.scrPoset)-1]
    		f.Cache.scrPoset = f.Cache.scrPoset[:len(f.Cache.scrPoset)-1]
    		return po
    	}
    	return newPoset()
    }
    
    // retPoset returns a poset to the internal cache
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/poset_test.go

    		if i >= 1000 && i < 1256 {
    			v[i].Op = OpConst64
    			v[i].AuxInt = int64(i - 1000 - 128)
    		}
    		if i >= 1256 && i < 1512 {
    			v[i].Op = OpConst64
    			v[i].AuxInt = int64(i - 1000 - 256)
    		}
    	}
    
    	po := newPoset()
    	po.SetUnsigned(unsigned)
    	for idx, op := range ops {
    		t.Logf("op%d%v", idx, op)
    		switch op.typ {
    		case SetOrder:
    			if !po.SetOrder(v[op.a], v[op.b]) {
    				t.Errorf("FAILED: op%d%v failed", idx, op)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 26 07:52:35 UTC 2019
    - 18.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/prove.go

    // and restoring factsTable.
    var checkpointFact = fact{}
    var checkpointBound = limitFact{}
    
    func newFactsTable(f *Func) *factsTable {
    	ft := &factsTable{}
    	ft.orderS = f.newPoset()
    	ft.orderU = f.newPoset()
    	ft.orderS.SetUnsigned(false)
    	ft.orderU.SetUnsigned(true)
    	ft.facts = make(map[pair]relation)
    	ft.stack = make([]fact, 4)
    	ft.limits = make(map[ID]limit)
    	ft.limitStack = make([]limitFact, 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/poset.go

    	nodes     []posetNode       // nodes (in all DAGs)
    	roots     []uint32          // list of root nodes (forest)
    	noneq     map[uint32]bitset // non-equal relations
    	undo      []posetUndo       // undo chain
    }
    
    func newPoset() *poset {
    	return &poset{
    		values:    make(map[ID]uint32),
    		constants: make(map[int64]uint32, 8),
    		nodes:     make([]posetNode, 1, 16),
    		roots:     make([]uint32, 0, 4),
    		noneq:     make(map[uint32]bitset),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  5. cni/pkg/install/testdata/kubeconfig-newhost

    Ben Leggett <******@****.***> 1691716743 -0400
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Aug 11 01:19:03 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. tests/embedded_struct_test.go

    	}
    
    	if hnPost.Title != NewPost.Title {
    		t.Errorf("Should find correct value for embedded pointer type")
    	}
    
    	if hnPost.Author.Name != NewPost.Author.Name {
    		t.Errorf("Expected to get Author name %v but got: %v", NewPost.Author.Name, hnPost.Author.Name)
    	}
    
    	if !reflect.DeepEqual(NewPost.Author.Content, hnPost.Author.Content) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. subprojects/core/src/testFixtures/groovy/org/gradle/util/BinaryDiffUtils.groovy

                    int costInsert = cost[i] + 1;
                    int costDelete = newcost[i - 1] + 1;
    
                    // keep minimum cost
                    newcost[i] = Math.min(Math.min(costInsert, costDelete), costReplace);
                }
    
                // swap cost/newcost arrays
                int[] swap = cost; cost = newcost; newcost = swap;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 14 11:47:34 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue60460.go

    func (R1) m(R[int]) {}
    
    // Test case from issue.
    
    func _() {
    	r := newTestRules()
    	NewSet(r)
    	r2 := newTestRules2()
    	NewSet(r2)
    }
    
    type Set[T any] struct {
    	rules Rules[T]
    }
    
    func NewSet[T any](rules Rules[T]) Set[T] {
    	return Set[T]{
    		rules: rules,
    	}
    }
    
    func (s Set[T]) Copy() Set[T] {
    	return NewSet(s.rules)
    }
    
    type Rules[T any] interface {
    	Hash(T) int
    	Equivalent(T, T) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. pkg/test/framework/label/labels_test.go

    		{filter: "", labels: NewSet(Postsubmit), expected: true},
    		{filter: "", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "$requires.kube", labels: NewSet(Postsubmit, CustomSetup), err: true},
    		{filter: "zoo", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "postsubmit", labels: NewSet(Postsubmit), expected: true},
    		{filter: "postsubmit", labels: NewSet(CustomSetup), expected: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 18 17:08:05 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go

    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"autoscaling/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2beta1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    		"autoscaling/v2beta2": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 04:51:00 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top