- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 415 for SWAP (0.28 sec)
-
src/runtime/mem_bsd.go
} // Indicates not to reserve swap space for the mapping. const _sunosMAP_NORESERVE = 0x40 func sysReserveOS(v unsafe.Pointer, n uintptr) unsafe.Pointer { flags := int32(_MAP_ANON | _MAP_PRIVATE) if GOOS == "solaris" || GOOS == "illumos" { // Be explicit that we don't want to reserve swap space // for PROT_NONE anonymous mappings. This avoids an issue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 2.2K bytes - Viewed (0) -
src/sort/example_keys_test.go
by func(p1, p2 *Planet) bool // Closure used in the Less method. } // Len is part of sort.Interface. func (s *planetSorter) Len() int { return len(s.planets) } // Swap is part of sort.Interface. func (s *planetSorter) Swap(i, j int) { s.planets[i], s.planets[j] = s.planets[j], s.planets[i] } // Less is part of sort.Interface. It is implemented by calling the "by" closure in the sorter.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:48:39 UTC 2017 - 2.7K bytes - Viewed (0) -
pkg/api/v1/endpoints/util.go
func (sl addrsByIPAndUID) Len() int { return len(sl) } func (sl addrsByIPAndUID) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } func (sl addrsByIPAndUID) Less(i, j int) bool { return LessEndpointAddress(&sl[i], &sl[j]) } type portsByHash []v1.EndpointPort func (sl portsByHash) Len() int { return len(sl) } func (sl portsByHash) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } func (sl portsByHash) Less(i, j int) bool {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 07 07:01:25 UTC 2018 - 8K bytes - Viewed (0) -
src/net/rpc/debug.go
func (s serviceArray) Less(i, j int) bool { return s[i].Name < s[j].Name } func (s serviceArray) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (m methodArray) Len() int { return len(m) } func (m methodArray) Less(i, j int) bool { return m[i].Name < m[j].Name } func (m methodArray) Swap(i, j int) { m[i], m[j] = m[j], m[i] } type debugHTTP struct { *Server } // Runs at /debug/rpc
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/test/loadbalancersim/loadbalancer/edf.go
// Flip logic to make this a min queue. if pq[i].deadline == pq[j].deadline { return pq[i].index < pq[j].index } return pq[i].deadline < pq[j].deadline } // Swap implements heap.Interface/sort.Interface func (pq priorityQueue) Swap(i, j int) { pq[i], pq[j] = pq[j], pq[i] } // Push implements heap.Interface for pushing an item into the heap func (pq *priorityQueue) Push(x any) { entry := x.(*Entry)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/test/framework/components/echo/services.go
func (d Services) Less(i, j int) bool { return strings.Compare(d[i].Config().ClusterLocalFQDN(), d[j].Config().ClusterLocalFQDN()) < 0 } // Swap switches the positions of elements at i and j (used for sorting). func (d Services) Swap(i, j int) { d[i], d[j] = d[j], d[i] } // Copy this services array. func (d Services) Copy() Services { return append(Services{}, d...) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 21 16:42:24 UTC 2022 - 3.1K bytes - Viewed (0) -
pkg/apis/policy/v1beta1/conversion.go
out.Spec.Selector = policy.NonV1beta1MatchNoneSelector.DeepCopy() case apiequality.Semantic.DeepEqual(in.Spec.Selector, policy.V1beta1MatchAllSelector): // If the v1beta1 version has our v1beta1-specific "match-all" selector, // swap that out for a simpler empty "match-all" selector for v1 out.Spec.Selector = policy.NonV1beta1MatchAllSelector.DeepCopy() default: // otherwise, make sure the label intended to be used in a match-all or match-none selector
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 09 15:29:11 UTC 2021 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc
if (dims_a < 2 || dims_b < 2) { return failure(); } // einsum equation for batchmatmul std::string equation("...mk,...kn->...mn"); if (op.getAdjX()) std::swap(equation[3], equation[4]); if (op.getAdjY()) std::swap(equation[6 + 3], equation[6 + 4]); rewriter.replaceOpWithNewOp<TF::EinsumOp>( op, op.getType(), /*inputs=*/ValueRange({input_lhs, input_rhs}), /*equation=*/equation);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
src/internal/runtime/atomic/sys_linux_arm.s
// Because there is so much variation in ARM devices, // the Linux kernel provides an appropriate compare-and-swap // implementation at address 0xffff0fc0. Caller sets: // R0 = old value // R1 = new value // R2 = addr // LR = return address // The function returns with CS true if the swap happened. // http://lxr.linux.no/linux+v2.6.37.2/arch/arm/kernel/entry-armv.S#L850 //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 2.8K bytes - Viewed (0) -
api/go1.19.txt
pkg sync/atomic, method (*Bool) Store(bool) #50860 pkg sync/atomic, method (*Bool) Swap(bool) bool #50860 pkg sync/atomic, method (*Int32) Add(int32) int32 #50860 pkg sync/atomic, method (*Int32) CompareAndSwap(int32, int32) bool #50860 pkg sync/atomic, method (*Int32) Load() int32 #50860 pkg sync/atomic, method (*Int32) Store(int32) #50860 pkg sync/atomic, method (*Int32) Swap(int32) int32 #50860 pkg sync/atomic, method (*Int64) Add(int64) int64 #50860
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 02 16:29:41 UTC 2022 - 17.9K bytes - Viewed (0)