Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for swapsub (0.67 sec)

  1. src/runtime/netpoll_wasip1.go

    	}
    	j := len(subs) - 1
    
    	pdi := (*pollDesc)(unsafe.Pointer(uintptr(subs[i].userdata)))
    	pdj := (*pollDesc)(unsafe.Pointer(uintptr(subs[j].userdata)))
    
    	swapsub(pdi, i, disarmed)
    	swapsub(pdj, j, i)
    
    	subs = subs[:j]
    }
    
    func swapsub(pd *pollDesc, from, to int) {
    	if from == to {
    		return
    	}
    	ridx := int(pd.user >> 16)
    	widx := int(pd.user & 0xFFFF)
    	if ridx == from {
    		ridx = to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pkg/kubelet/util/swap/swap_util.go

    }
    
    // gets /proc/swaps's content as an input, returns true if swap is enabled.
    func isSwapOnAccordingToProcSwaps(procSwapsContent []byte) bool {
    	procSwapsContent = bytes.TrimSpace(procSwapsContent) // extra trailing \n
    	procSwapsStr := string(procSwapsContent)
    	procSwapsLines := strings.Split(procSwapsStr, "\n")
    
    	// If there is more than one line (table headers) in /proc/swaps then swap is enabled
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 10:07:06 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. test/ken/embed.go

    }
    func (p *SubpSubp) testx() { println("SubpSubp", p, p.a7) }
    
    /******
     ******
     ******/
    
    type SubpSub struct {
    	a6 int
    	SubpSubp
    	a int
    }
    
    func (p *SubpSub) test6() int {
    	if p.a != p.a6 {
    		println("SubpSub", p, p.a6)
    		panic("fail")
    	}
    	return p.a
    }
    func (p *SubpSub) testx() { println("SubpSub", p, p.a6) }
    
    /******
     ******
     ******/
    
    type SubSubp struct {
    	a5 int
    	a  int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  4. src/sort/zsortfunc.go

    func median_func(data lessSwap, a, b, c int, swaps *int) int {
    	a, b = order2_func(data, a, b, swaps)
    	b, c = order2_func(data, b, c, swaps)
    	a, b = order2_func(data, a, b, swaps)
    	return b
    }
    
    // medianAdjacent_func finds the median of data[a - 1], data[a], data[a + 1] and stores the index into a.
    func medianAdjacent_func(data lessSwap, a int, swaps *int) int {
    	return median_func(data, a-1, a, a+1, swaps)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  5. src/sort/zsortinterface.go

    func median(data Interface, a, b, c int, swaps *int) int {
    	a, b = order2(data, a, b, swaps)
    	b, c = order2(data, b, c, swaps)
    	a, b = order2(data, a, b, swaps)
    	return b
    }
    
    // medianAdjacent finds the median of data[a - 1], data[a], data[a + 1] and stores the index into a.
    func medianAdjacent(data Interface, a int, swaps *int) int {
    	return median(data, a-1, a, a+1, swaps)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  6. src/sort/gen_sort_variants.go

    		*swaps++
    		return b, a
    	}
    	return a, b
    }
    
    // median{{.FuncSuffix}} returns x where data[x] is the median of data[a],data[b],data[c], where x is a, b, or c.
    func median{{.FuncSuffix}}{{.TypeParam}}(data {{.DataType}}, a, b, c int, swaps *int {{.ExtraParam}}) int {
    	a, b = order2{{.FuncSuffix}}(data, a, b, swaps {{.ExtraArg}})
    	b, c = order2{{.FuncSuffix}}(data, b, c, swaps {{.ExtraArg}})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/slices/zsortanyfunc.go

    		return b, a
    	}
    	return a, b
    }
    
    // medianCmpFunc returns x where data[x] is the median of data[a],data[b],data[c], where x is a, b, or c.
    func medianCmpFunc[E any](data []E, a, b, c int, swaps *int, cmp func(a, b E) int) int {
    	a, b = order2CmpFunc(data, a, b, swaps, cmp)
    	b, c = order2CmpFunc(data, b, c, swaps, cmp)
    	a, b = order2CmpFunc(data, a, b, swaps, cmp)
    	return b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  8. src/slices/zsortordered.go

    func medianOrdered[E cmp.Ordered](data []E, a, b, c int, swaps *int) int {
    	a, b = order2Ordered(data, a, b, swaps)
    	b, c = order2Ordered(data, b, c, swaps)
    	a, b = order2Ordered(data, a, b, swaps)
    	return b
    }
    
    // medianAdjacentOrdered finds the median of data[a - 1], data[a], data[a + 1] and stores the index into a.
    func medianAdjacentOrdered[E cmp.Ordered](data []E, a int, swaps *int) int {
    	return medianOrdered(data, a-1, a, a+1, swaps)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  9. internal/logger/targets.go

    	for _, target := range targets {
    		go target.Cancel()
    	}
    }
    
    // UpdateHTTPWebhooks swaps system webhook targets with newly loaded ones from the cfg
    func UpdateHTTPWebhooks(ctx context.Context, cfgs map[string]http.Config) (errs []error) {
    	return updateHTTPTargets(ctx, cfgs, systemTargets)
    }
    
    // UpdateAuditWebhooks swaps audit webhook targets with newly loaded ones from the cfg
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. src/internal/runtime/atomic/types.go

    // Store updates the value atomically.
    //
    //go:nosplit
    func (i *Int32) Store(value int32) {
    	Storeint32(&i.value, value)
    }
    
    // CompareAndSwap atomically compares i's value with old,
    // and if they're equal, swaps i's value with new.
    // It reports whether the swap ran.
    //
    //go:nosplit
    func (i *Int32) CompareAndSwap(old, new int32) bool {
    	return Casint32(&i.value, old, new)
    }
    
    // Swap replaces i's value with new, returning
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top