Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 248 for FLOAT64 (0.16 sec)

  1. src/reflect/all_test.go

    	// Fun with floating point.
    	{math.NaN(), math.NaN(), false},
    	{&[1]float64{math.NaN()}, &[1]float64{math.NaN()}, false},
    	{&[1]float64{math.NaN()}, self{}, true},
    	{[]float64{math.NaN()}, []float64{math.NaN()}, false},
    	{[]float64{math.NaN()}, self{}, true},
    	{map[float64]float64{math.NaN(): 1}, map[float64]float64{1: 2}, false},
    	{map[float64]float64{math.NaN(): 1}, self{}, true},
    
    	// Nil vs empty: not the same.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    		totalFree += disk.AvailableSpace
    
    		diskStats[disk.PoolIndex].AvailableSpace += disk.AvailableSpace
    		diskStats[disk.PoolIndex].TotalSpace += disk.TotalSpace
    	}
    	r.PercentFreeGoal = float64(totalFree) / float64(totalCap)
    
    	now := time.Now()
    	for idx := range z.serverPools {
    		r.PoolStats[idx] = &rebalanceStats{
    			Buckets:           make([]string, len(buckets)),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/stmt0.go

    		default:
    			break
    		}
    		select {
    		case <-ch:
    			continue
    		}
    	}
    }
    
    func returns0() {
    	return
    	return 0 /* ERROR "too many return values" */
    }
    
    func returns1(x float64) (int, *float64) {
    	return 0, &x
    	return /* ERROR "not enough return values" */
    	return "foo" /* ERRORx `cannot .* in return statement` */, x /* ERRORx `cannot use .* in return statement` */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/plugin/plugin.go

    // It is similar to the standard flag.FlagSet.
    type FlagSet interface {
    	// Bool, Int, Float64, and String define new flags,
    	// like the functions of the same name in package flag.
    	Bool(name string, def bool, usage string) *bool
    	Int(name string, def int, usage string) *int
    	Float64(name string, def float64, usage string) *float64
    	String(name string, def string, usage string) *string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. src/internal/coverage/cformat/format.go

    func (fm *Formatter) EmitFuncs(w io.Writer) error {
    	if fm.cm == coverage.CtrModeInvalid {
    		panic("internal error, counter mode unset")
    	}
    	perc := func(covered, total uint64) float64 {
    		if total == 0 {
    			total = 1
    		}
    		return 100.0 * float64(covered) / float64(total)
    	}
    	tabber := tabwriter.NewWriter(w, 1, 8, 1, '\t', 0)
    	defer tabber.Flush()
    	allStmts := uint64(0)
    	covStmts := uint64(0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. src/runtime/alg.go

    	return *(*[2]int64)(p) == *(*[2]int64)(q)
    }
    func f32equal(p, q unsafe.Pointer) bool {
    	return *(*float32)(p) == *(*float32)(q)
    }
    func f64equal(p, q unsafe.Pointer) bool {
    	return *(*float64)(p) == *(*float64)(q)
    }
    func c64equal(p, q unsafe.Pointer) bool {
    	return *(*complex64)(p) == *(*complex64)(q)
    }
    func c128equal(p, q unsafe.Pointer) bool {
    	return *(*complex128)(p) == *(*complex128)(q)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "FCEIL", argLength: 1, reg: fp11, asm: "FRIP"},                                           // ceil(arg0), float64
    		{name: "FTRUNC", argLength: 1, reg: fp11, asm: "FRIZ"},                                          // trunc(arg0), float64
    		{name: "FROUND", argLength: 1, reg: fp11, asm: "FRIN"},                                          // round(arg0), float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  8. pkg/test/framework/components/prometheus/kube.go

    }
    
    func (c *kubeComponent) QuerySum(cluster cluster.Cluster, query Query) (float64, error) {
    	val, err := c.Query(cluster, query)
    	if err != nil {
    		return 0, err
    	}
    	got, err := Sum(val)
    	if err != nil {
    		return 0, fmt.Errorf("could not find metric value: %v", err)
    	}
    	return got, nil
    }
    
    func Sum(val model.Value) (float64, error) {
    	if val.Type() != model.ValVector {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/zz_generated.deepcopy.go

    func (in *ValueValidation) DeepCopyInto(out *ValueValidation) {
    	*out = *in
    	if in.Maximum != nil {
    		in, out := &in.Maximum, &out.Maximum
    		*out = new(float64)
    		**out = **in
    	}
    	if in.Minimum != nil {
    		in, out := &in.Minimum, &out.Minimum
    		*out = new(float64)
    		**out = **in
    	}
    	if in.MaxLength != nil {
    		in, out := &in.MaxLength, &out.MaxLength
    		*out = new(int64)
    		**out = **in
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/testing/benchmark.go

    	Extra map[string]float64
    }
    
    // NsPerOp returns the "ns/op" metric.
    func (r BenchmarkResult) NsPerOp() int64 {
    	if v, ok := r.Extra["ns/op"]; ok {
    		return int64(v)
    	}
    	if r.N <= 0 {
    		return 0
    	}
    	return r.T.Nanoseconds() / int64(r.N)
    }
    
    // mbPerSec returns the "MB/s" metric.
    func (r BenchmarkResult) mbPerSec() float64 {
    	if v, ok := r.Extra["MB/s"]; ok {
    		return v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top