Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for newRat (0.36 sec)

  1. src/math/big/float_test.go

    }
    
    func BenchmarkFloatAdd(b *testing.B) {
    	x := new(Float)
    	y := new(Float)
    	z := new(Float)
    
    	for _, prec := range []uint{10, 1e2, 1e3, 1e4, 1e5} {
    		x.SetPrec(prec).SetRat(NewRat(1, 3))
    		y.SetPrec(prec).SetRat(NewRat(1, 6))
    		z.SetPrec(prec)
    
    		b.Run(fmt.Sprintf("%v", prec), func(b *testing.B) {
    			b.ReportAllocs()
    			for i := 0; i < b.N; i++ {
    				z.Add(x, y)
    			}
    		})
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  2. pkg/apis/certificates/validation/validation_test.go

    	goodCert1 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root1",
    		},
    		IsCA:                  true,
    		BasicConstraintsValid: true,
    	})
    
    	goodCert2 := mustMakeCertificate(t, &x509.Certificate{
    		SerialNumber: big.NewInt(0),
    		Subject: pkix.Name{
    			CommonName: "root2",
    		},
    		IsCA:                  true,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
  3. pkg/apis/batch/validation/validation.go

    	// generated ones are there.
    	allErrs = append(allErrs, apivalidation.ValidateHasLabel(obj.Spec.Template.ObjectMeta, field.NewPath("spec").Child("template").Child("metadata"), batch.LegacyControllerUidLabel, string(obj.UID))...)
    	allErrs = append(allErrs, apivalidation.ValidateHasLabel(obj.Spec.Template.ObjectMeta, field.NewPath("spec").Child("template").Child("metadata"), batch.LegacyJobNameLabel, string(obj.Name))...)
    	expectedLabels := make(map[string]string)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/validation/validation.go

    	hookNames := sets.NewString()
    	for i, hook := range e.Webhooks {
    		allErrors = append(allErrors, validateValidatingWebhook(&hook, opts, field.NewPath("webhooks").Index(i))...)
    		allErrors = append(allErrors, validateAdmissionReviewVersions(hook.AdmissionReviewVersions, opts.requireRecognizedAdmissionReviewVersion, field.NewPath("webhooks").Index(i).Child("admissionReviewVersions"))...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    				test.args.ScoringStrategy = defaultScoringStrategy
    			}
    
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			p, err := NewFit(ctx, &test.args, nil, plfeature.Features{})
    			if err != nil {
    				t.Fatal(err)
    			}
    			cycleState := framework.NewCycleState()
    			_, preFilterStatus := p.(framework.PreFilterPlugin).PreFilter(ctx, cycleState, test.pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  6. src/runtime/map.go

    		advanceEvacuationMark(h, t, newbit)
    	}
    }
    
    func advanceEvacuationMark(h *hmap, t *maptype, newbit uintptr) {
    	h.nevacuate++
    	// Experiments suggest that 1024 is overkill by at least an order of magnitude.
    	// Put it in there as a safeguard anyway, to ensure O(1) behavior.
    	stop := h.nevacuate + 1024
    	if stop > newbit {
    		stop = newbit
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe.go

    		routeMatch, newfacts := httpRouteMatchSvc(vs, httpRoute, svc, matchingSubsets, nonmatchingSubsets, dr)
    		if routeMatch {
    			matches++
    			for _, newfact := range newfacts {
    				fmt.Fprintf(writer, "%s%s\n", printSpaces(initPrintNum+printLevel1), newfact)
    				facts++
    			}
    		} else {
    			mismatchNotes = append(mismatchNotes, newfacts...)
    		}
    	}
    
    	// TODO vsSpec.Tls if I can find examples in the wild
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  8. src/os/os_test.go

    		if d.IsDir() {
    			return nil
    		}
    
    		data, err := fs.ReadFile(fsys, path)
    		if err != nil {
    			return err
    		}
    		newData, err := fs.ReadFile(tmpFsys, path)
    		if err != nil {
    			return err
    		}
    		if !bytes.Equal(data, newData) {
    			return errors.New("file " + path + " contents differ")
    		}
    		return nil
    	}); err != nil {
    		t.Fatal("comparing two directories:", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/apps/v1/types.go

    	// collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
    	// uses this field as a collision avoidance mechanism when it needs to create the name for the
    	// newest ControllerRevision.
    	// +optional
    	CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
    
    	// Represents the latest available observations of a statefulset's current state.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 49.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/apps/v1beta2/types.go

    	// collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
    	// uses this field as a collision avoidance mechanism when it needs to create the name for the
    	// newest ControllerRevision.
    	// +optional
    	CollisionCount *int32 `json:"collisionCount,omitempty" protobuf:"varint,9,opt,name=collisionCount"`
    
    	// Represents the latest available observations of a statefulset's current state.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:24 UTC 2023
    - 52.2K bytes
    - Viewed (0)
Back to top