Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,328 for FLOAT64 (0.13 sec)

  1. test/fixedbugs/issue50671.go

    // Issue 50671: sign extension eliminated incorrectly on MIPS64.
    
    package main
    
    //go:noinline
    func F(x int32) (float64, int64) {
    	a := float64(x)
    	b := int64(x)
    	return a, b
    }
    
    var a, b, c float64
    
    // Poison some floating point registers with non-zero high bits.
    //
    //go:noinline
    func poison(x float64) {
    	a = x - 123.45
    	b = a * 1.2
    	c = b + 3.4
    }
    
    func main() {
    	poison(333.3)
    	_, b := F(123)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 19 15:45:58 UTC 2022
    - 599 bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/metrics/utilization.go

    // (returning that and the actual usage)
    func GetMetricUsageRatio(metrics PodMetricsInfo, targetUsage int64) (usageRatio float64, currentUsage int64) {
    	metricsTotal := int64(0)
    	for _, metric := range metrics {
    		metricsTotal += metric.Value
    	}
    
    	currentUsage = metricsTotal / int64(len(metrics))
    
    	return float64(currentUsage) / float64(targetUsage), currentUsage
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 22 08:59:02 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. test/fixedbugs/issue13171.go

    package main
    
    // Make sure the compiler knows that DUFFCOPY clobbers X0
    
    import "fmt"
    
    //go:noinline
    func f(x float64) float64 {
    	// y is allocated to X0
    	y := x + 5
    	// marshals z before y.  Marshaling z
    	// calls DUFFCOPY.
    	return g(z, y)
    }
    
    //go:noinline
    func g(b [64]byte, y float64) float64 {
    	return y
    }
    
    var z [64]byte
    
    func main() {
    	got := f(5)
    	if got != 10 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 12 00:13:35 UTC 2016
    - 588 bytes
    - Viewed (0)
  4. cmd/rebalance-admin.go

    		// i.e. x = c_i*pfc -f_i
    		totalBytesToRebal := float64(ps.InitCapacity)*meta.PercentFreeGoal - float64(ps.InitFreeSpace)
    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 22 00:56:43 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. test/codegen/spectre.go

    	// amd64:`CMOVQ(LS|CC)`
    	return x[i]
    }
    
    func IndexSlice(x []float64, i int) float64 {
    	// amd64:`CMOVQ(LS|CC)`
    	return x[i]
    }
    
    func SliceArray(x *[10]int, i, j int) []int {
    	// amd64:`CMOVQHI`
    	return x[i:j]
    }
    
    func SliceString(x string, i, j int) string {
    	// amd64:`CMOVQHI`
    	return x[i:j]
    }
    
    func SliceSlice(x []float64, i, j int) []float64 {
    	// amd64:`CMOVQHI`
    	return x[i:j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 734 bytes
    - Viewed (0)
  6. cmd/metrics-v3-replication.go

    	qt := qs.QStats
    	m.Set(replicationAverageQueuedBytes, float64(qt.Avg.Bytes))
    	m.Set(replicationAverageQueuedCount, float64(qt.Avg.Count))
    	m.Set(replicationMaxQueuedBytes, float64(qt.Max.Bytes))
    	m.Set(replicationMaxQueuedCount, float64(qt.Max.Count))
    	m.Set(replicationLastMinuteQueuedBytes, float64(qt.Curr.Bytes))
    	m.Set(replicationLastMinuteQueuedCount, float64(qt.Curr.Count))
    
    	qa := qs.ActiveWorkers
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 07:41:18 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/log/slog/value_access_benchmark_test.go

    type setVisitor struct {
    	i int64
    	s string
    	b bool
    	u uint64
    	d time.Duration
    	f float64
    	a any
    }
    
    func (v *setVisitor) String(s string)          { v.s = s }
    func (v *setVisitor) Int64(i int64)            { v.i = i }
    func (v *setVisitor) Uint64(x uint64)          { v.u = x }
    func (v *setVisitor) Float64(x float64)        { v.f = x }
    func (v *setVisitor) Bool(x bool)              { v.b = x }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. pkg/kubelet/metrics/collectors/volume_stats.go

    			}
    			addGauge(volumeStatsCapacityBytesDesc, pvcRef, float64(*volumeStat.CapacityBytes))
    			addGauge(volumeStatsAvailableBytesDesc, pvcRef, float64(*volumeStat.AvailableBytes))
    			addGauge(volumeStatsUsedBytesDesc, pvcRef, float64(*volumeStat.UsedBytes))
    			addGauge(volumeStatsInodesDesc, pvcRef, float64(*volumeStat.Inodes))
    			addGauge(volumeStatsInodesFreeDesc, pvcRef, float64(*volumeStat.InodesFree))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. test/typeparam/absdiffimp2.dir/a.go

    // a struct containing a complex type.
    type complexAbs[T Complex] struct {
    	Value_ T
    }
    
    func realimag(x any) (re, im float64) {
    	switch z := x.(type) {
    	case complex64:
    		re = float64(real(z))
    		im = float64(imag(z))
    	case complex128:
    		re = real(z)
    		im = imag(z)
    	default:
    		panic("unknown complex type")
    	}
    	return
    }
    
    func (a complexAbs[T]) Abs() T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 09 21:26:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  10. src/math/atanh.go

    // Special cases are:
    //
    //	Atanh(1) = +Inf
    //	Atanh(±0) = ±0
    //	Atanh(-1) = -Inf
    //	Atanh(x) = NaN if x < -1 or x > 1
    //	Atanh(NaN) = NaN
    func Atanh(x float64) float64 {
    	if haveArchAtanh {
    		return archAtanh(x)
    	}
    	return atanh(x)
    }
    
    func atanh(x float64) float64 {
    	const NearZero = 1.0 / (1 << 28) // 2**-28
    	// special cases
    	switch {
    	case x < -1 || x > 1 || IsNaN(x):
    		return NaN()
    	case x == 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top