Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for jc128 (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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