Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for DP (0.02 sec)

  1. src/strconv/decimal.go

    	d     [800]byte // digits, big-endian representation
    	nd    int       // number of digits used
    	dp    int       // decimal point
    	neg   bool      // negative flag
    	trunc bool      // discarded nonzero digits beyond d[:nd]
    }
    
    func (a *decimal) String() string {
    	n := 10 + a.nd
    	if a.dp > 0 {
    		n += a.dp
    	}
    	if a.dp < 0 {
    		n += -a.dp
    	}
    
    	buf := make([]byte, n)
    	w := 0
    	switch {
    	case a.nd == 0:
    		return "0"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 15 19:41:25 UTC 2017
    - 11K bytes
    - Viewed (0)
  2. src/crypto/rsa/boring.go

    		return b.key, nil
    	}
    
    	b = new(boringPriv)
    	b.orig = copyPrivateKey(priv)
    
    	var N, E, D, P, Q, Dp, Dq, Qinv *big.Int
    	N = b.orig.N
    	E = big.NewInt(int64(b.orig.E))
    	D = b.orig.D
    	if len(b.orig.Primes) == 2 {
    		P = b.orig.Primes[0]
    		Q = b.orig.Primes[1]
    		Dp = b.orig.Precomputed.Dp
    		Dq = b.orig.Precomputed.Dq
    		Qinv = b.orig.Precomputed.Qinv
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/strconv/ftoa.go

    	//
    	// Suppose d is not denormal, so that 2^exp <= d < 10^dp.
    	// The closest shorter number is at least 10^(dp-nd) away.
    	// The lower/upper bounds computed below are at distance
    	// at most 2^(exp-mantbits).
    	//
    	// So the number is already shortest if 10^(dp-nd) > 2^(exp-mantbits),
    	// or equivalently log2(10)*(dp-nd) > exp-mantbits.
    	// It is true if 332/100*(dp-nd) >= exp-mantbits (log2(10) > 3.32).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. test/fixedbugs/issue41780.go

    type decimal struct {
    	d  [8]byte // digits, big-endian representation
    	dp int     // decimal point
    }
    
    var powtab = []int{1, 3, 6, 9, 13, 16, 19, 23, 26}
    
    //go:noinline
    func foo(d *decimal) int {
    	exp := int(d.d[1])
    	if d.dp < 0 || d.dp == 0 && d.d[0] < '5' {
    		var n int
    		if -d.dp >= len(powtab) {
    			n = 27
    		} else {
    			n = powtab[-d.dp] // incorrect CMP -> CMN substitution causes indexing panic.
    		}
    		exp += n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 06 01:14:39 UTC 2020
    - 845 bytes
    - Viewed (0)
  5. src/strconv/atof.go

    	if d.dp > 310 {
    		goto overflow
    	}
    	if d.dp < -330 {
    		// zero
    		mant = 0
    		exp = flt.bias
    		goto out
    	}
    
    	// Scale by powers of two until in range [0.5, 1.0)
    	exp = 0
    	for d.dp > 0 {
    		var n int
    		if d.dp >= len(powtab) {
    			n = 27
    		} else {
    			n = powtab[d.dp]
    		}
    		d.Shift(-n)
    		exp += n
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 06 18:50:50 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  6. pkg/kubelet/metrics/metrics_test.go

    			{500 * 1024 * 1024, 200},
    			// 15 GB, 6000 seconds,
    			{15 * 1024 * 1024 * 1024, 6000},
    			// 200 GB, 10000 seconds
    			{200 * 1024 * 1024 * 1024, 10000},
    		}
    
    		for _, dp := range dataPoints {
    			imageSize := int64(dp[0])
    			duration := dp[1]
    			t.Log(imageSize, duration)
    			t.Log(GetImageSizeBucket(uint64(imageSize)))
    			ImagePullDuration.WithLabelValues(GetImageSizeBucket(uint64(imageSize))).Observe(duration)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 08 00:30:31 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. src/internal/coverage/pods/pods_test.go

    	"runtime"
    	"testing"
    )
    
    func TestPodCollection(t *testing.T) {
    	//testenv.MustHaveGoBuild(t)
    
    	mkdir := func(d string, perm os.FileMode) string {
    		dp := filepath.Join(t.TempDir(), d)
    		if err := os.Mkdir(dp, perm); err != nil {
    			t.Fatal(err)
    		}
    		return dp
    	}
    
    	mkfile := func(d string, fn string) string {
    		fp := filepath.Join(d, fn)
    		if err := os.WriteFile(fp, []byte("foo"), 0666); err != nil {
    			t.Fatal(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 14:00:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. src/strconv/ftoaryu.go

    	formatDecimal(d, uint64(di), !d0, roundUp, prec)
    	// Adjust exponent
    	d.dp -= q
    }
    
    // ryuFtoaFixed64 formats mant*(2^exp) with prec decimal digits.
    func ryuFtoaFixed64(d *decimalSlice, mant uint64, exp int, prec int) {
    	if prec > 18 {
    		panic("ryuFtoaFixed64 called with prec > 18")
    	}
    	// Zero input.
    	if mant == 0 {
    		d.nd, d.dp = 0, 0
    		return
    	}
    	// Renormalize to a 55-bit mantissa.
    	e2 := exp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 00:28:56 UTC 2022
    - 15.7K bytes
    - Viewed (0)
  9. tests/integration/operator/switch_cr_test.go

    					return fmt.Errorf("got operator service: %s from cluster, expected to be removed", svc.Name)
    				}
    				if dp, _ := cs.Kube().AppsV1().Deployments(OperatorNamespace).Get(context.TODO(), "istio-operator", metav1.GetOptions{}); dp.Name != "" {
    					return fmt.Errorf("got operator deployment %s from cluster, expected to be removed", dp.Name)
    				}
    
    				// check the revision of operator which should not to be removed
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/rsa.go

    		return bad(fail("RSA_generate_key_fips"))
    	}
    
    	var n, e, d, p, q, dp, dq, qinv *C.GO_BIGNUM
    	C._goboringcrypto_RSA_get0_key(key, &n, &e, &d)
    	C._goboringcrypto_RSA_get0_factors(key, &p, &q)
    	C._goboringcrypto_RSA_get0_crt_params(key, &dp, &dq, &qinv)
    	return bnToBig(n), bnToBig(e), bnToBig(d), bnToBig(p), bnToBig(q), bnToBig(dp), bnToBig(dq), bnToBig(qinv), nil
    }
    
    type PublicKeyRSA struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 23:38:03 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top