- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 1,614 for qsort (0.07 sec)
-
src/cmd/internal/objfile/pe.go
} case ch&bss != 0: sym.Code = 'B' } sym.Addr += imageBase + uint64(sect.VirtualAddress) } syms = append(syms, sym) addrs = append(addrs, sym.Addr) } sort.Sort(uint64s(addrs)) for i := range syms { j := sort.Search(len(addrs), func(x int) bool { return addrs[x] > syms[i].Addr }) if j < len(addrs) { syms[i].Size = int64(addrs[j] - syms[i].Addr) } } return syms, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 20 00:56:30 UTC 2022 - 4.9K bytes - Viewed (0) -
pkg/config/schema/codegen/collections.go
} if r.StatusProtoPackage != "" { e.StatusType = statName } entries = append(entries, e) } sort.Slice(entries, func(i, j int) bool { return strings.Compare(entries[i].Resource.Identifier, entries[j].Resource.Identifier) < 0 }) // Single instance and sort names names := sets.New[string]() for _, r := range m.Resources { if r.ProtoPackage != "" { names.Insert(r.ProtoPackage)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 07:19:43 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/kubelet/pod_container_deletor.go
candidates = append(candidates, containerStatus) } } if len(candidates) <= containersToKeep { return containerStatusbyCreatedList{} } sort.Sort(candidates) return candidates[containersToKeep:] } // deleteContainersInPod issues container deletion requests for containers selected by getContainersToDeleteInPod.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Nov 05 13:02:13 UTC 2022 - 4K bytes - Viewed (0) -
pkg/scheduler/internal/cache/debugger/comparer.go
} return compareStrings(actual, cached) } func compareStrings(actual, cached []string) (missed, redundant []string) { missed, redundant = []string{}, []string{} sort.Strings(actual) sort.Strings(cached) compare := func(i, j int) int { if i == len(actual) { return 1 } else if j == len(cached) { return -1 } return strings.Compare(actual[i], cached[j]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 05:26:32 UTC 2023 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go
di.Groups = make([]string, len(groups)) copy(di.Groups, groups) sort.Strings(di.Groups) } if extra := u.GetExtra(); len(extra) > 0 { di.Extra = make(map[string][]string, len(extra)) for k, vs := range extra { vdupe := make([]string, len(vs)) copy(vdupe, vs) sort.Strings(vdupe) di.Extra[k] = vdupe } } serializableAttributes.User = di }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/internal/edit/edit.go
// Bytes returns a new byte slice containing the original data // with the queued edits applied. func (b *Buffer) Bytes() []byte { // Sort edits by starting position and then by ending position. // Breaking ties by ending position allows insertions at point x // to be applied before a replacement of the text at [x, y). sort.Stable(b.q) var new []byte offset := 0 for i, e := range b.q { if e.start < offset { e0 := b.q[i-1]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 13 14:59:26 UTC 2017 - 2.5K bytes - Viewed (0) -
pilot/pkg/networking/grpcgen/lds_test.go
t.Run(name, func(t *testing.T) { got := newListenerNameFilter(tt.in, node) if diff := cmp.Diff(got, tt.want); diff != "" { t.Fatal(diff) } gotInbound := got.inboundNames() sort.Strings(gotInbound) sort.Strings(tt.wantInbound) if diff := cmp.Diff(gotInbound, tt.wantInbound); diff != "" { t.Fatalf(diff) } }) } } func TestTryFindFQDN(t *testing.T) { cases := []struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 30 20:07:58 UTC 2022 - 4.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/ConstructorComparatorTest.groovy
rhs.parameterTypes >> [String, Number] expect: comparator.compare(lhs, rhs) == -1 comparator.compare(rhs, lhs) == 1 } def "can sort a list of constructors"() { def first = Stub(ClassGenerator.GeneratedConstructor) first.parameterTypes >> [String] def second = Stub(ClassGenerator.GeneratedConstructor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
pkg/test/framework/tools/featuresgen/cmd/root_test.go
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package cmd import ( "sort" "strings" "testing" "gopkg.in/yaml.v2" ) func TestCreateConstantString(t *testing.T) { s1 := createConstantString([]string{"lab-el1", "label2"})
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 1.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
s.acc.sort(numas, s.acc.details.CPUsInNUMANodes) result = append(result, numas...) } return result } // If sockets are higher in the memory hierarchy than NUMA nodes, then just // sort the sockets directly, and return them. func (s *socketsFirst) sortAvailableSockets() []int { sockets := s.acc.details.Sockets().UnsortedList() s.acc.sort(sockets, s.acc.details.CPUsInSockets)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0)