Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 265 for recursion (0.75 sec)

  1. src/sort/zsortfunc.go

    //
    // symMerge assumes non-degenerate arguments: a < m && m < b.
    // Having the caller check this condition eliminates many leaf recursion calls,
    // which improves performance.
    func symMerge_func(data lessSwap, a, m, b int) {
    	// Avoid unnecessary recursions of symMerge
    	// by direct insertion of data[a] into data[m:b]
    	// if data[a:m] only contains one element.
    	if m-a == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  2. src/slices/zsortanyfunc.go

    //
    // symMerge assumes non-degenerate arguments: a < m && m < b.
    // Having the caller check this condition eliminates many leaf recursion calls,
    // which improves performance.
    func symMergeCmpFunc[E any](data []E, a, m, b int, cmp func(a, b E) int) {
    	// Avoid unnecessary recursions of symMerge
    	// by direct insertion of data[a] into data[m:b]
    	// if data[a:m] only contains one element.
    	if m-a == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  3. test/nosplit.go

    start 0 call big
    big 10000
    
    # But not if the frame is nosplit.
    start 0 call big
    big 10000 nosplit
    REJECT
    
    # Recursion is okay.
    start 0 call start
    
    # Recursive nosplit runs out of space.
    start 0 nosplit call start
    REJECT
    
    # Non-trivial recursion runs out of space.
    start 0 call f1
    f1 0 nosplit call f2
    f2 0 nosplit call f1
    REJECT
    # Same but cycle starts below nosplit entry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. src/slices/zsortordered.go

    //
    // symMerge assumes non-degenerate arguments: a < m && m < b.
    // Having the caller check this condition eliminates many leaf recursion calls,
    // which improves performance.
    func symMergeOrdered[E cmp.Ordered](data []E, a, m, b int) {
    	// Avoid unnecessary recursions of symMerge
    	// by direct insertion of data[a] into data[m:b]
    	// if data[a:m] only contains one element.
    	if m-a == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typeset.go

    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    	var unionSets map[*Union]*_TypeSet
    	if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/debug/dwarf/type.go

    	}
    	addressSize := r.AddressSize()
    	if e == nil || e.Offset != off {
    		return nil, DecodeError{name, off, "no type at offset"}
    	}
    
    	// If this is the root of the recursion, prepare to resolve
    	// typedef sizes and perform other fixups once the recursion is
    	// done. This must be done after the type graph is constructed
    	// because it may need to resolve cycles in a different order than
    	// readType encounters them.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    		f.NumElements(0, max(0, maxDepth-depth))
    	}
    	updateFuzzer(depth)
    	enter := func(o interface{}, recursive bool, c fuzz.Continue) {
    		if recursive {
    			depth++
    			updateFuzzer(depth)
    		}
    
    		invisible++
    		c.FuzzNoCustom(o)
    		invisible--
    	}
    	leave := func(recursive bool) {
    		if recursive {
    			depth--
    			updateFuzzer(depth)
    		}
    	}
    	f.Funcs(
    		func(ref *spec.Ref, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  8. src/go/types/typeset.go

    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    	var unionSets map[*Union]*_TypeSet
    	if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/iimport.go

    	}
    
    	// SetConstraint can't be called if the constraint type is not yet complete.
    	// When type params are created in the 'P' case of (*importReader).obj(),
    	// the associated constraint type may not be complete due to recursion.
    	// Therefore, we defer calling SetConstraint there, and call it here instead
    	// after all types are complete.
    	for _, d := range p.later {
    		d.t.SetConstraint(d.constraint)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. src/sort/gen_sort_variants.go

    //
    // symMerge assumes non-degenerate arguments: a < m && m < b.
    // Having the caller check this condition eliminates many leaf recursion calls,
    // which improves performance.
    func symMerge{{.FuncSuffix}}{{.TypeParam}}(data {{.DataType}}, a, m, b int {{.ExtraParam}}) {
    	// Avoid unnecessary recursions of symMerge
    	// by direct insertion of data[a] into data[m:b]
    	// if data[a:m] only contains one element.
    	if m-a == 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top