Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,776 for casePC (0.25 sec)

  1. src/math/dim.go

    }
    
    func max(x, y float64) float64 {
    	// special cases
    	switch {
    	case IsInf(x, 1) || IsInf(y, 1):
    		return Inf(1)
    	case IsNaN(x) || IsNaN(y):
    		return NaN()
    	case x == 0 && x == y:
    		if Signbit(x) {
    			return y
    		}
    		return x
    	}
    	if x > y {
    		return x
    	}
    	return y
    }
    
    // Min returns the smaller of x or y.
    //
    // Special cases are:
    //
    //	Min(x, -Inf) = Min(-Inf, x) = -Inf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 15 19:45:12 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/gofmt/rewrite.go

    		return !pattern.IsValid() && !val.IsValid()
    	}
    	if pattern.Type() != val.Type() {
    		return false
    	}
    
    	// Special cases.
    	switch pattern.Type() {
    	case identType:
    		// For identifiers, only the names need to match
    		// (and none of the other *ast.Object information).
    		// This is a common case, handle it all here instead
    		// of recursing down any further via reflection.
    		p := pattern.Interface().(*ast.Ident)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. src/runtime/tracetime.go

    // platforms where osHasLowResClock is true, because the system clock
    // isn't granular enough to get useful information out of a trace in
    // many cases.
    //
    // This makes absolute values of timestamp diffs smaller, and so they are
    // encoded in fewer bytes.
    //
    // The target resolution in all cases is 64 nanoseconds.
    // This is based on the fact that fundamentally the execution tracer won't emit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/nodes_test.go

    }
    
    var cases = []test{
    	{"CaseClause", `@case x:`},
    	{"CaseClause", `@case x, y, z:`},
    	{"CaseClause", `@case x == 1, y == 2:`},
    	{"CaseClause", `@default:`},
    }
    
    var comms = []test{
    	{"CommClause", `@case <-ch:`},
    	{"CommClause", `@case x <- ch:`},
    	{"CommClause", `@case x = <-ch:`},
    	{"CommClause", `@case x := <-ch:`},
    	{"CommClause", `@case x, ok = <-ch: f(1, 2, 3)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. pkg/config/labels/instance_test.go

    			expected: result{false, false},
    		},
    	}
    	for _, c := range cases {
    		var got result
    		got.subsetOf = c.left.SubsetOf(c.right)
    		got.selected = c.left.Match(c.right)
    		if got != c.expected {
    			t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected)
    		}
    	}
    }
    
    func TestString(t *testing.T) {
    	cases := []struct {
    		input    labels.Instance
    		expected string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 06:54:36 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils_test.go

    func TestReduceErrs(t *testing.T) {
    	canceledErrs := make([]error, 0, 5)
    	for i := 0; i < 5; i++ {
    		canceledErrs = append(canceledErrs, fmt.Errorf("error %d: %w", i, context.Canceled))
    	}
    	// List all of all test cases to validate various cases of reduce errors.
    	testCases := []struct {
    		errs        []error
    		ignoredErrs []error
    		err         error
    	}{
    		// Validate if have reduced properly.
    		{[]error{
    			errDiskNotFound,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. src/internal/trace/internal/oldtrace/order.go

    	// Note that we have an explicit return in each case, as that produces slightly better code (tested on Go 1.19).
    
    	switch ev.Type {
    	case EvGoCreate:
    		g = ev.Args[0]
    		init = gState{0, gDead}
    		next = gState{1, gRunnable}
    		return
    	case EvGoWaiting, EvGoInSyscall:
    		g = ev.G
    		init = gState{1, gRunnable}
    		next = gState{2, gWaiting}
    		return
    	case EvGoStart, EvGoStartLabel:
    		g = ev.G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    func cmp(a Index, b []byte) int {
    	n := len(a)
    	if len(b) < n {
    		n = len(b)
    	}
    	for i, c := range b[:n] {
    		switch {
    		case a[i] > c:
    			return 1
    		case a[i] < c:
    			return -1
    		}
    	}
    	switch {
    	case len(a) < len(b):
    		return -1
    	case len(a) > len(b):
    		return 1
    	}
    	return 0
    }
    
    // Compare returns an integer comparing a and b lexicographically.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. pilot/pkg/server/instance_test.go

    		completed: atomic.NewBool(false),
    		d:         d,
    		stop:      stop,
    	}
    }
    
    func (c *fakeComponent) Run(stop <-chan struct{}) error {
    	c.started.Store(true)
    	select {
    	case <-time.After(c.d):
    	case <-c.stop: // ignore incoming stop; for test purposes we use our own stop
    	}
    	c.completed.Store(true)
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 23:02:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue41124.go

    	_ chan I3 // ERROR "interface contains type constraints"
    	_ func(I1 /* ERRORx `interface is .* comparable` */ )
    	_ func() I2 // ERROR "interface contains type constraints"
    )
    
    // Other cases.
    
    var _ = [...]I3 /* ERROR "interface contains type constraints" */ {}
    
    func _(x interface{}) {
    	_ = x.(I3 /* ERROR "interface contains type constraints" */ )
    }
    
    type T1[_ any] struct{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top