Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for fComplex128 (0.55 sec)

  1. src/cmd/compile/internal/test/abiutils_test.go

            IN 15: R{ F7 } spilloffset: 72 typ: float64
            IN 16: R{ F8 F9 } spilloffset: 80 typ: complex128
            IN 17: R{ F10 F11 } spilloffset: 96 typ: complex128
            IN 18: R{ F12 F13 } spilloffset: 112 typ: complex128
            IN 19: R{ } offset: 0 typ: complex128
            IN 20: R{ } offset: 16 typ: complex64
            IN 21: R{ I8 } spilloffset: 128 typ: int8
            IN 22: R{ } offset: 24 typ: int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/math/cmplx/cmath_test.go

    		complex(inf, nan)},
    	{NaN(),
    		NaN()},
    }
    var vcPolarSC = []complex128{
    	NaN(),
    }
    var polarSC = []ff{
    	{math.NaN(), math.NaN()},
    }
    var vcPowSC = [][2]complex128{
    	{NaN(), NaN()},
    	{0, NaN()},
    }
    var powSC = []complex128{
    	NaN(),
    	NaN(),
    }
    var sinSC = []struct {
    	in,
    	want complex128
    }{
    	// Derived from Sin(z) = -i * Sinh(i * z), G.6 #7
    	{complex(zero, zero),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  3. src/go/types/builtins_test.go

    	{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`},
    	{"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`},
    	{"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`},
    
    	{"real", `_ = real(1i)`, `invalid type`}, // constant
    	{"real", `var c complex64; _ = real(c)`, `func(complex64) float32`},
    	{"real", `var c complex128; _ = real(c)`, `func(complex128) float64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/fp_test.go

    func cx128diff_ssa(a, b complex128) complex128 {
    	return a - b
    }
    
    //go:noinline
    func cx128prod_ssa(a, b complex128) complex128 {
    	return a * b
    }
    
    //go:noinline
    func cx128quot_ssa(a, b complex128) complex128 {
    	return a / b
    }
    
    //go:noinline
    func cx128neg_ssa(a complex128) complex128 {
    	return -a
    }
    
    //go:noinline
    func cx128real_ssa(a complex128) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 35K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/builtins_test.go

    	{"imag", `var c complex128; _ = imag(c)`, `func(complex128) float64`},
    	{"imag", `type C64 complex64; var c C64; _ = imag(c)`, `func(p.C64) float32`},
    	{"imag", `type C128 complex128; var c C128; _ = imag(c)`, `func(p.C128) float64`},
    
    	{"real", `_ = real(1i)`, `invalid type`}, // constant
    	{"real", `var c complex64; _ = real(c)`, `func(complex64) float32`},
    	{"real", `var c complex128; _ = real(c)`, `func(complex128) float64`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. test/gcgort.go

    			}
    		},
    	},
    	modifier{
    		name: "complex128",
    		t: func() {
    			c := complex128(complex(float64(1.01), float64(1.01)))
    			for i := 0; i < mods; i++ {
    				c = complex(real(c)*1.01, imag(c)*1.01)
    				runtime.Gosched()
    			}
    		},
    		pointerT: func() {
    			a := func() *complex128 { return new(complex128) }()
    			*a = complex128(complex(float64(1.01), float64(1.01)))
    			for i := 0; i < mods; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/builtins0.go

    	var _ complex128 = complex /* ERRORx `cannot use .* in variable declaration` */ (f32, f32)
    	var _ complex128 = complex(f64, f64)
    
    	// untyped constants
    	const _ int = complex(1, 0)
    	const _ float32 = complex(1, 0)
    	const _ complex64 = complex(1, 0)
    	const _ complex128 = complex(1, 0)
    	const _ = complex(0i, 0i)
    	const _ = complex(0i, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go

    		{uintptr(93), "(uintptr) 0x5d\n"},
    		{ptrint(93), "(*int)(93)\n"},
    		{float32(93.76), "(float32) 93.76\n"},
    		{float64(93.76), "(float64) 93.76\n"},
    		{complex64(93i), "(complex64) (0+93i)\n"},
    		{complex128(93i), "(complex128) (0+93i)\n"},
    		{bool(true), "(bool) true\n"},
    		{bool(false), "(bool) false\n"},
    		{string("test"), "(string) (len=4) \"test\"\n"},
    		{ptrstr("test"), "(*string)((len=4) \"test\")\n"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  9. src/encoding/gob/enc_helpers.go

    		return false
    	}
    	return encComplex128Slice(state, v.Slice(0, v.Len()))
    }
    
    func encComplex128Slice(state *encoderState, v reflect.Value) bool {
    	slice, ok := v.Interface().([]complex128)
    	if !ok {
    		// It is kind complex128 but not type complex128. TODO: We can handle this unsafely.
    		return false
    	}
    	for _, x := range slice {
    		if x != 0+0i || state.sendZero {
    			rpart := floatBits(real(x))
    			ipart := floatBits(imag(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 10 17:50:11 UTC 2018
    - 9.9K bytes
    - Viewed (0)
  10. test/map.go

    		m[nz] = "-0"
    		if m[pz] != "-0" {
    			panic(fmt.Sprintln("complex128 map does not treat -0 and +0 as equal for write"))
    		}
    		if _, ok := m[nana]; ok {
    			panic(fmt.Sprintln("complex128 map allows NaN lookup (a)"))
    		}
    		if _, ok := m[nanb]; ok {
    			panic(fmt.Sprintln("complex128 map allows NaN lookup (b)"))
    		}
    		if len(m) != 3 {
    			panic(fmt.Sprintln("complex128 map should have 3 entries:", m))
    		}
    		m[nana] = "NaN"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 06 21:02:55 UTC 2014
    - 14.9K bytes
    - Viewed (0)
Back to top