Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 6,074 for case1 (0.04 sec)

  1. src/math/sincos.go

    		PI4B = 3.77489470793079817668e-8  // 0x3e64442d00000000,
    		PI4C = 2.69515142907905952645e-15 // 0x3ce8469898cc5170,
    	)
    	// special cases
    	switch {
    	case x == 0:
    		return x, 1 // return ±0.0, 1.0
    	case IsNaN(x) || IsInf(x, 0):
    		return NaN(), NaN()
    	}
    
    	// make argument positive
    	sinSign, cosSign := false, false
    	if x < 0 {
    		x = -x
    		sinSign = true
    	}
    
    	var j uint64
    	var y, z float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/debug/elf/reader.go

    	var newOffset int64
    	switch whence {
    	case io.SeekStart:
    		newOffset = offset
    	case io.SeekCurrent:
    		newOffset = r.offset + offset
    	case io.SeekEnd:
    		newOffset = r.size + offset
    	default:
    		return 0, os.ErrInvalid
    	}
    
    	switch {
    	case newOffset == r.offset:
    		return newOffset, nil
    
    	case newOffset < 0, newOffset > r.size:
    		return 0, os.ErrInvalid
    
    	case newOffset == 0:
    		r.r = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:06:17 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/cycles5.go

    // license that can be found in the LICENSE file.
    
    package p
    
    import "unsafe"
    
    // test case from issue #18395
    
    type (
    	A interface { B }
    	B interface { C }
    	C interface { D; F() A }
    	D interface { G() B }
    )
    
    var _ = A(nil).G // G must be found
    
    
    // test case from issue #21804
    
    type sourceBridge interface {
    	listVersions() ([]Version, error)
    }
    
    type Constraint interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/topologymanager/policy.go

    	}
    
    	// The only case left is if the current best bestHint and the candidate
    	// hint are both non-preferred. In this case, try and find a hint whose
    	// affinity count is as close to (but not higher than) the
    	// bestNonPreferredAffinityCount as possible. To do this we need to
    	// consider the following cases and react accordingly:
    	//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:25 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  5. src/math/asin.go

    */
    
    // Asin returns the arcsine, in radians, of x.
    //
    // Special cases are:
    //
    //	Asin(±0) = ±0
    //	Asin(x) = NaN if x < -1 or x > 1
    func Asin(x float64) float64 {
    	if haveArchAsin {
    		return archAsin(x)
    	}
    	return asin(x)
    }
    
    func asin(x float64) float64 {
    	if x == 0 {
    		return x // special case
    	}
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	if x > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. tools/bug-report/pkg/cluster/cluster_test.go

    			},
    			false,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			skip := shouldSkipPod(c.pod, c.config)
    			if skip != c.expected {
    				t.Errorf("shouldSkipPod() for test case name [%s] return= %v, want %v", c.name, skip, c.expected)
    			}
    		})
    	}
    }
    
    func TestShouldSkipDeployment(t *testing.T) {
    	cases := []struct {
    		name       string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 06 17:23:32 UTC 2023
    - 11K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	switch nativeType {
    	case reflect.TypeOf(""):
    		return apiservercel.StringType
    	case reflect.TypeOf([]string{}):
    		return apiservercel.NewListType(apiservercel.StringType, -1)
    	case reflect.TypeOf(map[string]v1.ExtraValue{}):
    		return apiservercel.NewMapType(apiservercel.StringType, apiservercel.NewListType(apiservercel.StringType, -1), -1)
    	case reflect.TypeOf(&v1.ResourceAttributes{}):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Story.kt

     */
    data class Story(
      val description: String? = null,
      val cases: List<Case>,
      val fileName: String? = null,
    ) {
      // Used as the test name.
      override fun toString() = fileName ?: "?"
    
      companion object {
        @JvmField
        val MISSING = Story(description = "Missing", cases = listOf(), "missing")
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload_test.go

    		},
    		{
    			description: "valid case - create full workload group with shortnames",
    			args: strings.Split("group create --name foo -n bar -l app=foo,bar=baz -p grpc=3550,http=8080"+
    				" -a annotation=foobar --serviceAccount test", " "),
    			expectedException: false,
    			expectedOutput:    customYAML,
    		},
    	}
    
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, c.description), func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. src/math/modf.go

    //
    // Special cases are:
    //
    //	Modf(±Inf) = ±Inf, NaN
    //	Modf(NaN) = NaN, NaN
    func Modf(f float64) (int float64, frac float64) {
    	if haveArchModf {
    		return archModf(f)
    	}
    	return modf(f)
    }
    
    func modf(f float64) (int float64, frac float64) {
    	if f < 1 {
    		switch {
    		case f < 0:
    			int, frac = Modf(-f)
    			return -int, -frac
    		case f == 0:
    			return f, f // Return -0, -0 when f == -0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 913 bytes
    - Viewed (0)
Back to top