Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for jc128 (0.03 sec)

  1. test/convT2X.go

    		panic("u128 != iu128")
    	}
    	if u128 != ju128 {
    		panic("u128 != ju128")
    	}
    	if f32 != if32 {
    		panic("f32 != if32")
    	}
    	if f32 != jf32 {
    		panic("f32 != jf32")
    	}
    	if f64 != if64 {
    		panic("f64 != if64")
    	}
    	if f64 != jf64 {
    		panic("f64 != jf64")
    	}
    	if c128 != ic128 {
    		panic("c128 != ic128")
    	}
    	if c128 != jc128 {
    		panic("c128 != jc128")
    	}
    	if s != is {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 02 23:09:05 UTC 2012
    - 3.3K bytes
    - Viewed (0)
  2. test/cmplx.go

    	_ = complex() // ERROR "not enough arguments"
    
    	c128 = complex(f32, f32) // ERROR "cannot use"
    	c64 = complex(f64, f64)  // ERROR "cannot use"
    
    	c64 = complex(1.0, 2.0) // ok, constant is untyped
    	c128 = complex(1.0, 2.0)
    	C64 = complex(1.0, 2.0)
    	C128 = complex(1.0, 2.0)
    
    	C64 = complex(f32, f32)  // ERROR "cannot use"
    	C128 = complex(f64, f64) // ERROR "cannot use"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 21:00:20 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  3. test/fixedbugs/bug334.go

    )
    
    func (c cplx64) Foo()  {}
    func (c cplx128) Foo() {}
    
    func main() {
    	var c64 cplx128
    	var c128 cplx64
    	c64.Foo()
    	c128.Foo()
    }
    
    /*
    bug334.go:16: invalid receiver type cplx64
    bug334.go:17: invalid receiver type cplx128
    bug334.go:22: c64.Foo undefined (type cplx128 has no field or method Foo)
    bug334.go:23: c128.Foo undefined (type cplx64 has no field or method Foo)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 618 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/abiutils_test.go

    	f32 := types.Types[types.TFLOAT32]
    	f64 := types.Types[types.TFLOAT64]
    	c64 := types.Types[types.TCOMPLEX64]
    	c128 := types.Types[types.TCOMPLEX128]
    	ft := mkFuncType(nil,
    		[]*types.Type{
    			i8, i16, i32, i64,
    			f32, f32, f64, f64,
    			i8, i16, i32, i64,
    			f32, f32, f64, f64,
    			c128, c128, c128, c128, c64,
    			i8, i16, i32, i64,
    			i8, i16, i32, i64},
    		[]*types.Type{i32, f64, f64})
    	exp := makeExpectedDump(`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  5. test/gcgort.go

    				s.u32++
    				s.u64++
    				s.i8++
    				s.i16++
    				s.i32++
    				s.i64++
    				s.f32 *= 1.01
    				s.f64 *= 1.01
    				s.c64 = complex(real(s.c64)*1.01, imag(s.c64)*1.01)
    				s.c128 = complex(real(s.c128)*1.01, imag(s.c128)*1.01)
    				s.b++
    				s.r++
    				s.u++
    				s.in++
    				s.uip++
    				s.s = str(i)
    				runtime.Gosched()
    			}
    		},
    		pointerT: func() {
    			s := func() *structT {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  6. test/zerodivide.go

    	f64, g64, h64, inf, negInf, nan float64 = 0, 0, 1, math.Inf(1), math.Inf(-1), math.NaN()
    
    	c, d, e          complex128 = 0 + 0i, 0 + 0i, 1 + 1i
    	c64, d64, e64    complex64  = 0 + 0i, 0 + 0i, 1 + 1i
    	c128, d128, e128 complex128 = 0 + 0i, 0 + 0i, 1 + 1i
    )
    
    // Fool gccgo into thinking that these variables can change.
    func NotCalled() {
    	i++
    	j++
    	k++
    	i8++
    	j8++
    	k8++
    	i16++
    	j16++
    	k16++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins_test.go

    	{"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`},
    	{"real", `type C64 complex64; var c C64; _ = real(c)`, `func(p.C64) float32`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/go/types/builtins_test.go

    	{"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`},
    	{"real", `type C64 complex64; var c C64; _ = real(c)`, `func(p.C64) float32`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/builtins0.go

    	assert(_6 == 0)
    	f32 = imag(c64)
    	f64 = imag(c128)
    	f32 = imag /* ERRORx `cannot use .* in assignment` */ (c128)
    	f64 = imag /* ERRORx `cannot use .* in assignment` */ (c64)
    	imag /* ERROR "not used" */ (c64)
    	_, _ = f32, f64
    
    	// complex type may not be predeclared
    	type C64 complex64
    	type C128 complex128
    	var x64 C64
    	var x128 C128
    	f32 = imag(x64)
    	f64 = imag(x128)
    
    	var a []complex64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. src/runtime/map_test.go

    	if !m[GrabBag{f64: 1.0}] {
    		panic("f64 not found")
    	}
    	m[GrabBag{c64: 1.0i}] = true
    	if !m[GrabBag{c64: 1.0i}] {
    		panic("c64 not found")
    	}
    	m[GrabBag{c128: 1.0i}] = true
    	if !m[GrabBag{c128: 1.0i}] {
    		panic("c128 not found")
    	}
    	m[GrabBag{s: "foo"}] = true
    	if !m[GrabBag{s: "foo"}] {
    		panic("string not found")
    	}
    	m[GrabBag{i0: "foo"}] = true
    	if !m[GrabBag{i0: "foo"}] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top