- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ptrsort (0.12 sec)
-
src/cmd/compile/internal/test/testdata/ptrsort.go
Bryan C. Mills <******@****.***> 1645032797 -0500
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 16 19:10:58 UTC 2022 - 633 bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/ptrsort.out
Dan Scales <******@****.***> 1628632317 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 12 20:53:52 UTC 2021 - 77 bytes - Viewed (0) -
src/cmd/compile/internal/test/inst_test.go
func TestInst(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveGoRun(t) // Build ptrsort.go, which uses package mysort. var output []byte var err error filename := "ptrsort.go" exename := "ptrsort" outname := "ptrsort.out" gotool := testenv.GoToolPath(t) dest := filepath.Join(t.TempDir(), exename)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 06 18:07:35 UTC 2023 - 1.9K bytes - Viewed (0) -
src/slices/sort_benchmark_test.go
n: i * 11 % size, } } cmpFunc := func(a, b *myStruct) int { if n := strings.Compare(a.a, b.a); n != 0 { return n } return cmp.Compare(a.n, b.n) } // Presort the slice so all benchmark iterations are identical. slices.SortFunc(structs, cmpFunc) b.ResetTimer() for i := 0; i < b.N; i++ { // Sort the slice twice because slices.SortFunc modifies the slice in place.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 2.1K bytes - Viewed (0) -
src/slices/sort.go
} } // i == j, cmp(x[i-1], target) < 0, and cmp(x[j], target) (= cmp(x[i], target)) >= 0 => answer is i. return i, i < n && cmp(x[i], target) == 0 } type sortedHint int // hint for pdqsort when choosing the pivot const ( unknownHint sortedHint = iota increasingHint decreasingHint ) // xorshift paper: https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf type xorshift uint64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:54:41 UTC 2024 - 5.8K bytes - Viewed (0)