Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for c64 (0.07 sec)

  1. 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)
  2. test/chan/nonblock.go

    		}
    		if buffer == 0 {
    			<-sync
    		}
    
    		go i64receiver(c64, sync)
    		try = 0
    	Send64:
    		for {
    			select {
    			case c64 <- 123456:
    				break Send64
    			default:
    				try++
    				if try > maxTries {
    					panic("i64receiver")
    				}
    				sleep()
    			}
    		}
    		<-sync
    
    		go i64sender(c64, sync)
    		if buffer > 0 {
    			<-sync
    		}
    		try = 0
    	Recv64:
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 3.9K bytes
    - Viewed (0)
  3. test/fixedbugs/bug334.go

    	cplx64  complex64
    	cplx128 complex128
    )
    
    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. test/gcgort.go

    				s.u8++
    				s.u16++
    				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()
    			}
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/builtins_test.go

    	{"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/fixedbugs/issue7746.go

    	c54  = c53 * c53
    	c55  = c54 * c54
    	c56  = c55 * c55
    	c57  = c56 * c56
    	c58  = c57 * c57
    	c59  = c58 * c58
    	c60  = c59 * c59
    	c61  = c60 * c60
    	c62  = c61 * c61
    	c63  = c62 * c62
    	c64  = c63 * c63
    	c65  = c64 * c64
    	c66  = c65 * c65
    	c67  = c66 * c66
    	c68  = c67 * c67
    	c69  = c68 * c68
    	c70  = c69 * c69
    	c71  = c70 * c70
    	c72  = c71 * c71
    	c73  = c72 * c72
    	c74  = c73 * c73
    	c75  = c74 * c74
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 2.4K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/builtins0.go

    	f64 = _5
    	const _6 = imag(0i)
    	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)
    
    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. test/zerodivide.go

    	f32, g32, h32                   float32 = 0, 0, 1
    	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++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  9. src/go/types/builtins_test.go

    	{"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)
  10. 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})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top