Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 560 for ROUND (0.08 sec)

  1. src/math/big/decimal_test.go

    		d.roundDown(test.n)
    		if got := d.String(); got != test.down {
    			t.Errorf("roundDown(%d, %d) = %s; want %s", test.x, test.n, got, test.down)
    		}
    
    		d.init(x, 0)
    		d.round(test.n)
    		if got := d.String(); got != test.even {
    			t.Errorf("round(%d, %d) = %s; want %s", test.x, test.n, got, test.even)
    		}
    
    		d.init(x, 0)
    		d.roundUp(test.n)
    		if got := d.String(); got != test.up {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 05:54:35 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  2. src/math/rand/v2/pcg_test.go

    	}
    
    	q := PCG{}
    	if err := q.UnmarshalBinary([]byte(want)); err != nil {
    		t.Fatalf("UnmarshalBinary(): %v", err)
    	}
    	if q != p {
    		t.Fatalf("after round trip, q = %#x, but p = %#x", q, p)
    	}
    
    	qu := q.Uint64()
    	pu := p.Uint64()
    	if qu != pu {
    		t.Errorf("after round trip, q.Uint64() = %#x, but p.Uint64() = %#x", qu, pu)
    	}
    }
    
    func TestPCG(t *testing.T) {
    	p := NewPCG(1, 2)
    	want := []uint64{
    		0xc4f5a58656eef510,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:09:23 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/crypto/aes/block.go

    	_ = src[15] // early bounds check
    	s0 := byteorder.BeUint32(src[0:4])
    	s1 := byteorder.BeUint32(src[4:8])
    	s2 := byteorder.BeUint32(src[8:12])
    	s3 := byteorder.BeUint32(src[12:16])
    
    	// First round just XORs input with key.
    	s0 ^= xk[0]
    	s1 ^= xk[1]
    	s2 ^= xk[2]
    	s3 ^= xk[3]
    
    	// Middle rounds shuffle using tables.
    	// Number of rounds is set by length of expanded key.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. src/math/big/bits_test.go

    		want := fmt.Sprintf("%v", test.want)
    		if got != want {
    			t.Errorf("normBits(%v) = %s; want %s", test.x, got, want)
    		}
    
    	}
    }
    
    // round returns the Float value corresponding to x after rounding x
    // to prec bits according to mode.
    func (x Bits) round(prec uint, mode RoundingMode) *Float {
    	x = x.norm()
    
    	// determine range
    	var min, max int
    	for i, b := range x {
    		if i == 0 || b < min {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    	// acts as a bounds check elimination hint.
    	for len(src) >= 64 && len(dst) >= 64 {
    		// The remainder of the first column round.
    		fcr0, fcr4, fcr8, fcr12 := quarterRound(c0, c4, c8, s.counter)
    
    		// The second diagonal round.
    		x0, x5, x10, x15 := quarterRound(fcr0, s.p5, s.p10, s.p15)
    		x1, x6, x11, x12 := quarterRound(s.p1, s.p6, s.p11, fcr12)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/feature/feature_support_checker_test.go

    			for _, round := range tt.rounds {
    				// Mock Etcd client
    				mockClient := &MockEtcdClient{EndpointVersion: round.endpointsVersion}
    				ctx := context.Background()
    
    				for _, ep := range mockClient.Endpoints() {
    					err := testFeatureSupportChecker.clientSupportsRequestWatchProgress(ctx, mockClient, ep)
    					assert.Equal(t, round.expectedError, err)
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers.go

    // CommandHeaderRoundTripper adds a layer around the standard
    // round tripper to add Request headers before delegation. Implements
    // the go standard library "http.RoundTripper" interface.
    type CommandHeaderRoundTripper struct {
    	Delegate http.RoundTripper
    	Headers  map[string]string
    }
    
    // CommandHeaderRoundTripper adds Request headers before delegating to standard
    // round tripper. These headers are kubectl command headers which
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go

    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    					// We do not set TypeMeta here because it is not carried through a round trip
    					Raw:         []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go

    	return []interface{}{
    		func(j *runtime.Object, c fuzz.Continue) {
    			// TODO: uncomment when round trip starts from a versioned object
    			if true { //c.RandBool() {
    				*j = &runtime.Unknown{
    					// We do not set TypeMeta here because it is not carried through a round trip
    					Raw:         []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/request/seat_seconds_test.go

    		if actualStr != testCase.expectStr {
    			t.Errorf("SeatSeconds(%d).String() is %q but expected %q", uint64(testCase.ss), actualStr, testCase.expectStr)
    		}
    		actualFloat := testCase.ss.ToFloat()
    		if math.Round(actualFloat*ssScale) != math.Round(testCase.expectFloat*ssScale) {
    			t.Errorf("SeatSeconds(%d).ToFloat() is %v but expected %v", uint64(testCase.ss), actualFloat, testCase.expectFloat)
    		}
    	}
    }
    
    func TestSeatSecondsPerSeat(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 29 20:20:16 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top