Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,328 for FLOAT64 (0.1 sec)

  1. src/cmd/compile/internal/test/testdata/fp_test.go

    	aa = float64(a)
    	bb = float64(b)
    	cc = float64(c)
    	hh = float64(h)
    	dd = float64(d)
    	ee = float64(e)
    	ff = float64(f)
    	gg = float64(g)
    	ii = float64(i)
    	return
    }
    
    //go:noinline
    func conv2Float32_ssa(a int8, b uint8, c int16, d uint16,
    	e int32, f uint32, g int64, h uint64, i float64) (aa, bb, cc, dd, ee, ff, gg, hh, ii float32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  2. test/codegen/floats.go

    //    Strength-reduce    //
    // --------------------- //
    
    func Mul2(f float64) float64 {
    	// 386/sse2:"ADDSD",-"MULSD"
    	// amd64:"ADDSD",-"MULSD"
    	// arm/7:"ADDD",-"MULD"
    	// arm64:"FADDD",-"FMULD"
    	// ppc64x:"FADD",-"FMUL"
    	// riscv64:"FADDD",-"FMULD"
    	return f * 2.0
    }
    
    func DivPow2(f1, f2, f3 float64) (float64, float64, float64) {
    	// 386/sse2:"MULSD",-"DIVSD"
    	// amd64:"MULSD",-"DIVSD"
    	// arm/7:"MULD",-"DIVD"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. test/codegen/math.go

    }
    
    func fma(x, y, z float64) float64 {
    	// amd64/v3:-".*x86HasFMA"
    	// amd64:"VFMADD231SD"
    	// arm/6:"FMULAD"
    	// arm64:"FMADDD"
    	// s390x:"FMADD"
    	// ppc64x:"FMADD"
    	// riscv64:"FMADDD"
    	return math.FMA(x, y, z)
    }
    
    func fms(x, y, z float64) float64 {
    	// riscv64:"FMSUBD"
    	return math.FMA(x, y, -z)
    }
    
    func fnms(x, y, z float64) float64 {
    	// riscv64:"FNMSUBD",-"FNMADDD"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. src/net/dnsclient_test.go

    		key := d[0].Target
    		results[key] = results[key] + 1
    	}
    
    	actual := results[data[0].Target]
    	expected := float64(count) * float64(data[0].Weight) / float64(sum)
    	diff := float64(actual) - expected
    	t.Logf("actual: %v diff: %v e: %v m: %v", actual, diff, expected, margin)
    	if diff < 0 {
    		diff = -diff
    	}
    	if diff > (expected * margin) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 12 16:30:11 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  5. test/typeparam/typeswitch1.go

    	case int32, int16:
    		println("int32/int16")
    	case struct{ a, b T }:
    		println("struct{T,T}")
    	default:
    		println("other")
    	}
    }
    func main() {
    	f[float64](float64(6))
    	f[float64](int(7))
    	f[float64](int32(8))
    	f[float64](struct{ a, b float64 }{a: 1, b: 2})
    	f[float64](int8(9))
    	f[int32](int32(7))
    	f[int](int32(7))
    	f[any](int(10))
    	f[interface{ M() }](int(11))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 648 bytes
    - Viewed (0)
  6. src/math/floor.go

    //	Ceil(±Inf) = ±Inf
    //	Ceil(NaN) = NaN
    func Ceil(x float64) float64 {
    	if haveArchCeil {
    		return archCeil(x)
    	}
    	return ceil(x)
    }
    
    func ceil(x float64) float64 {
    	return -Floor(-x)
    }
    
    // Trunc returns the integer value of x.
    //
    // Special cases are:
    //
    //	Trunc(±0) = ±0
    //	Trunc(±Inf) = ±Inf
    //	Trunc(NaN) = NaN
    func Trunc(x float64) float64 {
    	if haveArchTrunc {
    		return archTrunc(x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    func partition64(rands *rand.Rand, n int, x float64, consume func(int, float64)) {
    	if n <= 0 {
    		return
    	}
    	divs := make([]float64, n-1)
    	for idx := range divs {
    		divs[idx] = float64(rands.Float64())
    	}
    	sort.Float64s(divs)
    	var last float64
    	for idx, div := range divs {
    		div32 := float64(div)
    		delta := div32 - last
    		consume(idx, delta*x)
    		last = div32
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  8. test/fixedbugs/issue14651.go

    	test32(float32(m1100p149), f32(m1100p149))
    
    	test64(float64(m0000p1074), f64(m0000p1074))
    	test64(float64(m1000p1074), f64(m1000p1074))
    	test64(float64(m1001p1074), f64(m1001p1074))
    	test64(float64(m1011p1074), f64(m1011p1074))
    	test64(float64(m1100p1074), f64(m1100p1074))
    }
    
    func f32(x float64) float32 { return float32(x) }
    func f64(x float64) float64 { return float64(x) }
    
    func test32(a, b float32) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 22 17:09:29 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue27718.go

    package main
    
    //go:noinline
    func add64(x float64) float64 {
    	return x + 0
    }
    
    func testAdd64() {
    	var zero float64
    	inf := 1.0 / zero
    	negZero := -1 / inf
    	if 1/add64(negZero) != inf {
    		panic("negZero+0 != posZero (64 bit)")
    	}
    }
    
    //go:noinline
    func sub64(x float64) float64 {
    	return x - 0
    }
    
    func testSub64() {
    	var zero float64
    	inf := 1.0 / zero
    	negZero := -1 / inf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 02:29:42 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  10. cmd/metrics-v3-cluster-health.go

    	storageInfo := clusterDriveMetrics.storageInfo
    
    	m.Set(healthCapacityRawTotalBytes, float64(GetTotalCapacity(storageInfo.Disks)))
    	m.Set(healthCapacityRawFreeBytes, float64(GetTotalCapacityFree(storageInfo.Disks)))
    	m.Set(healthCapacityUsableTotalBytes, float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)))
    	m.Set(healthCapacityUsableFreeBytes, float64(GetTotalUsableCapacityFree(storageInfo.Disks, storageInfo)))
    
    	return nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 09:15:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top