Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for fComplex128 (0.36 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/encoding/gob/dec_helpers.go

    func decComplex128Slice(state *decoderState, v reflect.Value, length int, ovfl error) 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 i := 0; i < length; i++ {
    		if state.b.Len() == 0 {
    			errorf("decoding complex128 array or slice: length exceeds input size (%d elements)", length)
    		}
    		if i >= len(slice) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 19:28:46 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  7. src/encoding/gob/codec_test.go

    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17+19i {
    			t.Errorf("complex a = %v not 17+19i", data)
    		}
    	}
    
    	// complex128
    	{
    		var data complex128
    		instr := &decInstr{decOpTable[reflect.Complex128], 6, nil, ovfl}
    		state := newDecodeStateFromData(complexResult)
    		execDec(instr, state, t, reflect.ValueOf(&data))
    		if data != 17+19i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  8. src/text/template/parse/parse_test.go

    		}
    		if test.isComplex {
    			if !n.IsComplex {
    				t.Errorf("expected complex for %q", test.text)
    			}
    			if n.Complex128 != test.complex128 {
    				t.Errorf("complex128 for %q should be %g Is %g", test.text, test.complex128, n.Complex128)
    			}
    		} else if n.IsComplex {
    			t.Errorf("did not expect complex for %q", test.text)
    		}
    	}
    }
    
    type parseTest struct {
    	name   string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func int64tofloat32(int64) float32
    func uint64tofloat64(uint64) float64
    func uint64tofloat32(uint64) float32
    func uint32tofloat64(uint32) float64
    
    func complex128div(num complex128, den complex128) (quo complex128)
    
    func getcallerpc() uintptr
    func getcallersp() uintptr
    
    // race detection
    func racefuncenter(uintptr)
    func racefuncexit()
    func raceread(uintptr)
    func racewrite(uintptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/runtime/error.go

    	case abi.Float64:
    		print(typestring, "(", *(*float64)(eface.data), ")")
    	case abi.Complex64:
    		print(typestring, *(*complex64)(eface.data))
    	case abi.Complex128:
    		print(typestring, *(*complex128)(eface.data))
    	default:
    		print("(", typestring, ") ", eface.data)
    	}
    }
    
    // printindented prints s, replacing "\n" with "\n\t".
    func printindented(s string) {
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top