Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 252 for fComplex128 (0.16 sec)

  1. src/cmd/compile/internal/types2/basic.go

    	// predeclared types
    	Bool
    	Int
    	Int8
    	Int16
    	Int32
    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    	Complex64
    	Complex128
    	String
    	UnsafePointer
    
    	// types for untyped values
    	UntypedBool
    	UntypedInt
    	UntypedRune
    	UntypedFloat
    	UntypedComplex
    	UntypedString
    	UntypedNil
    
    	// aliases
    	Byte = Uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/encoding/gob/encgen.go

    	},
    	{
    		"complex64",
    		"Complex64",
    		"0+0i",
    		`rpart := floatBits(float64(real(x)))
    		ipart := floatBits(float64(imag(x)))
    		state.encodeUint(rpart)
    		state.encodeUint(ipart)`,
    	},
    	{
    		"complex128",
    		"Complex128",
    		"0+0i",
    		`rpart := floatBits(real(x))
    		ipart := floatBits(imag(x))
    		state.encodeUint(rpart)
    		state.encodeUint(ipart)`,
    	},
    	{
    		"float32",
    		"Float32",
    		"0",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/types/kind_string.go

    	_ = x[TINT16-3]
    	_ = x[TUINT16-4]
    	_ = x[TINT32-5]
    	_ = x[TUINT32-6]
    	_ = x[TINT64-7]
    	_ = x[TUINT64-8]
    	_ = x[TINT-9]
    	_ = x[TUINT-10]
    	_ = x[TUINTPTR-11]
    	_ = x[TCOMPLEX64-12]
    	_ = x[TCOMPLEX128-13]
    	_ = x[TFLOAT32-14]
    	_ = x[TFLOAT64-15]
    	_ = x[TBOOL-16]
    	_ = x[TPTR-17]
    	_ = x[TFUNC-18]
    	_ = x[TSLICE-19]
    	_ = x[TARRAY-20]
    	_ = x[TSTRUCT-21]
    	_ = x[TCHAN-22]
    	_ = x[TMAP-23]
    	_ = x[TINTER-24]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:38 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprog/panicprint.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type MyBool bool
    type MyComplex128 complex128
    type MyComplex64 complex64
    type MyFloat32 float32
    type MyFloat64 float64
    type MyInt int
    type MyInt8 int8
    type MyInt16 int16
    type MyInt32 int32
    type MyInt64 int64
    type MyString string
    type MyUint uint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/internal/types/testdata/check/typeparams.go

    var _ = f4 /* ERROR "cannot infer C" */ (1, 2)
    var _ = f4[int, float32, complex128](1, 2)
    
    func f5[A, B, C any](A, []*B, struct{f []C}) int { panic(0) }
    
    var _ = f5[int, float32, complex128](0, nil, struct{f []complex128}{})
    var _ = f5 /* ERROR "cannot infer" */ (0, nil, struct{f []complex128}{})
    var _ = f5(0, []*float32{new[float32]()}, struct{f []complex128}{})
    
    func f6[A any](A, []A) int { panic(0) }
    
    var _ = f6(0, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  9. test/makechan.go

    	sink = make(T, float64(1.0)) // ERROR "non-integer buffer argument in make.*|must be integer"
    	sink = make(T, 1+0i)
    	sink = make(T, complex64(1+0i))  // ERROR "non-integer buffer argument in make.*|must be integer"
    	sink = make(T, complex128(1+0i)) // ERROR "non-integer buffer argument in make.*|must be integer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 1K 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