github.com/puellanivis/breton@v0.2.16/lib/sort/pick.go (about) 1 package sort 2 3 type picker func(l, radix, last int) bool 4 5 var qsortInstead picker = qsortSometimes 6 7 func qsortSometimes(l, radix, last int) bool { 8 r := uint(last-radix) + 1 9 10 return r >= uint(uintMSB) || l < (1<<r) 11 } 12 13 func qsortNever(l, radix, last int) bool { 14 return false 15 }