Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,614 for qsort (0.04 sec)

  1. src/cmd/vendor/golang.org/x/sys/plan9/mkerrors.sh

    		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
    
    		{next}
    	' | sort
    
    	echo ')'
    ) >_const.go
    
    # Pull out the error names for later.
    errors=$(
    	echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
    	awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' |
    	sort
    )
    
    # Pull out the signal names for later.
    signals=$(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  2. src/syscall/mkerrors.sh

    		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
    
    		{next}
    	' | sort
    
    	echo ')'
    ) >_const.go
    
    # Pull out the error names for later.
    errors=$(
    	echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
    	awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' |
    	sort
    )
    
    # Pull out the signal names for later.
    signals=$(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 06 21:22:22 UTC 2022
    - 10.7K bytes
    - Viewed (0)
  3. src/sort/sort_test.go

    	}
    	Ints(data)
    	if !IntsAreSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    func TestReverseSortIntSlice(t *testing.T) {
    	data := ints
    	data1 := ints
    	a := IntSlice(data[0:])
    	Sort(a)
    	r := IntSlice(data1[0:])
    	Sort(Reverse(r))
    	for i := 0; i < len(data); i++ {
    		if a[i] != r[len(data)-1-i] {
    			t.Errorf("reverse sort didn't sort")
    		}
    		if i > len(data)/2 {
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:41:04 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/mkerrors.sh

    		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
    
    		{next}
    	' | sort
    
    	echo ')'
    ) >_const.go
    
    # Pull out the error names for later.
    errors=$(
    	echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
    	awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' |
    	sort
    )
    
    # Pull out the signal names for later.
    signals=$(
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. src/slices/sort.go

    // license that can be found in the LICENSE file.
    
    //go:generate go run $GOROOT/src/sort/gen_sort_variants.go -generic
    
    package slices
    
    import (
    	"cmp"
    	"math/bits"
    )
    
    // Sort sorts a slice of any ordered type in ascending order.
    // When sorting floating-point numbers, NaNs are ordered before other values.
    func Sort[S ~[]E, E cmp.Ordered](x S) {
    	n := len(x)
    	pdqsortOrdered(x, 0, n, bits.Len(uint(n)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/go/parser/testdata/sort.go2

    package sort
    
    type orderedSlice[Elem comparable] []Elem
    
    func (s orderedSlice[Elem]) Len() int           { return len(s) }
    func (s orderedSlice[Elem]) Less(i, j int) bool { return s[i] < s[j] }
    func (s orderedSlice[Elem]) Swap(i, j int)      { s[i], s[j] = s[j], s[i] }
    
    // OrderedSlice sorts the slice s in ascending order.
    // The elements of s must be ordered using the < operator.
    func OrderedSlice[Elem comparable](s []Elem) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 19:44:06 UTC 2020
    - 902 bytes
    - Viewed (0)
  7. src/sort/sort.go

    func (x StringSlice) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    
    // Sort is a convenience method: x.Sort() calls Sort(x).
    func (x StringSlice) Sort() { Sort(x) }
    
    // Convenience wrappers for common cases
    
    // Ints sorts a slice of ints in increasing order.
    //
    // Note: as of Go 1.22, this function simply calls [slices.Sort].
    func Ints(x []int) { intsImpl(x) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  8. src/internal/fmtsort/sort.go

    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    // KeyValue holds a single key and value pair found in a map.
    type KeyValue struct {
    	Key, Value reflect.Value
    }
    
    // Sort accepts a map and returns a SortedMap that has the same keys and
    // values but in a stable sorted order according to the keys, modulo issues
    // raised by unorderable key values such as NaNs.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/sort.go

    Matthew Dempsky <******@****.***> 1622083951 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 27 22:13:38 UTC 2021
    - 765 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/partitioned-topological-sort.mlir

    // RUN: tf-opt %s -tfl-partitioned-topological-sort | FileCheck %s
    
    // CHECK-LABEL: @tf_ops_will_be_partitioned
    func.func @tf_ops_will_be_partitioned() -> tensor<1xf32> {
      %const = "tfl.pseudo_const"() {value = dense<[1.0]> : tensor<1xf32>} : () -> tensor<1xf32>
      %tmp1 = "tfl.add"(%const, %const) { fused_activation_function = "NONE" } : (tensor<1xf32>,tensor<1xf32>) -> (tensor<1xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 19 22:33:49 UTC 2022
    - 8.1K bytes
    - Viewed (0)
Back to top