Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for SWAP (0.03 sec)

  1. src/sort/gen_sort_variants.go

    	{{Swap "data" "a" "pivot"}}
    	i, j := a+1, b-1 // i and j are inclusive of the elements remaining to be partitioned
    
    	for i <= j && {{Less "data" "i" "a"}} {
    		i++
    	}
    	for i <= j && !{{Less "data" "j" "a"}} {
    		j--
    	}
    	if i > j {
    		{{Swap "data" "j" "a"}}
    		return j, true
    	}
    	{{Swap "data" "i" "j"}}
    	i++
    	j--
    
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  2. src/sort/zsortfunc.go

    	data.Swap(a, pivot)
    	i, j := a+1, b-1 // i and j are inclusive of the elements remaining to be partitioned
    
    	for i <= j && data.Less(i, a) {
    		i++
    	}
    	for i <= j && !data.Less(j, a) {
    		j--
    	}
    	if i > j {
    		data.Swap(j, a)
    		return j, true
    	}
    	data.Swap(i, j)
    	i++
    	j--
    
    	for {
    		for i <= j && data.Less(i, a) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  3. src/sort/zsortinterface.go

    	data.Swap(a, pivot)
    	i, j := a+1, b-1 // i and j are inclusive of the elements remaining to be partitioned
    
    	for i <= j && data.Less(i, a) {
    		i++
    	}
    	for i <= j && !data.Less(j, a) {
    		j--
    	}
    	if i > j {
    		data.Swap(j, a)
    		return j, true
    	}
    	data.Swap(i, j)
    	i++
    	j--
    
    	for {
    		for i <= j && data.Less(i, a) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  4. pkg/kubelet/server/stats/summary_test.go

    	assert.Equal(summary.Node.StartTime, systemBootTime)
    	assert.Equal(summary.Node.CPU, cgroupStatsMap["/"].cs.CPU)
    	assert.Equal(summary.Node.Memory, cgroupStatsMap["/"].cs.Memory)
    	assert.Equal(summary.Node.Swap, cgroupStatsMap["/"].cs.Swap)
    	assert.Equal(summary.Node.Network, cgroupStatsMap["/"].ns)
    	assert.Equal(summary.Node.Fs, rootFsStats)
    	assert.Equal(summary.Node.Runtime, &statsapi.RuntimeStats{ContainerFs: imageFsStats, ImageFs: imageFsStats})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/sort/sort.go

    	// See Float64Slice.Less for a correct implementation for floating-point values.
    	Less(i, j int) bool
    
    	// Swap swaps the elements with indexes i and j.
    	Swap(i, j int)
    }
    
    // Sort sorts data in ascending order as determined by the Less method.
    // It makes one call to data.Len to determine n and O(n*log(n)) calls to
    // data.Less and data.Swap. The sort is not guaranteed to be stable.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		}
    	}
    
    	return lcr
    }
    
    // configureContainerSwapResources configures the swap resources for a specified (linux) container.
    // Swap is only configured if a swap cgroup controller is available and the NodeSwap feature gate is enabled.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/types.go

    // 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
    // i's value before the replacement.
    //
    //go:nosplit
    func (i *Int32) Swap(new int32) int32 {
    	return Xchgint32(&i.value, new)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/inl_test.go

    			"(*Uint32).Swap",
    			"(*Uint64).Add",
    			"(*Uint64).CompareAndSwap",
    			"(*Uint64).Load",
    			"(*Uint64).Store",
    			"(*Uint64).Swap",
    			"(*Uintptr).Add",
    			"(*Uintptr).CompareAndSwap",
    			"(*Uintptr).Load",
    			"(*Uintptr).Store",
    			"(*Uintptr).Swap",
    			"(*Pointer[go.shape.int]).CompareAndSwap",
    			"(*Pointer[go.shape.int]).Load",
    			"(*Pointer[go.shape.int]).Store",
    			"(*Pointer[go.shape.int]).Swap",
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. src/sync/atomic/doc.go

    // Share memory by communicating;
    // don't communicate by sharing memory.
    //
    // The swap operation, implemented by the SwapT functions, is the atomic
    // equivalent of:
    //
    //	old = *addr
    //	*addr = new
    //	return old
    //
    // The compare-and-swap operation, implemented by the CompareAndSwapT
    // functions, is the atomic equivalent of:
    //
    //	if *addr == old {
    //		*addr = new
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. pkg/kubelet/stats/cri_stats_provider.go

    	}
    	if stats.Swap != nil {
    		result.Swap.Time = metav1.NewTime(time.Unix(0, stats.Swap.Timestamp))
    		if stats.Swap.SwapUsageBytes != nil {
    			result.Swap.SwapUsageBytes = &stats.Swap.SwapUsageBytes.Value
    		}
    		if stats.Swap.SwapAvailableBytes != nil {
    			result.Swap.SwapAvailableBytes = &stats.Swap.SwapAvailableBytes.Value
    		}
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top