Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Complex64 (0.23 sec)

  1. src/go/types/api_test.go

    		{`package c3c; type T float32; var _ = T(0.)`, `T(0.)`, `c3c.T`, `0`},
    
    		{`package c4a; var _ = complex64(0i)`, `0i`, `complex64`, `(0 + 0i)`},
    		{`package c4b; var _ = complex64(0i)`, `complex64(0i)`, `complex64`, `(0 + 0i)`},
    		{`package c4c; type T complex64; var _ = T(0i)`, `T(0i)`, `c4c.T`, `(0 + 0i)`},
    
    		{`package c5a; var _ = string("foo")`, `"foo"`, `string`, `"foo"`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    		{`package c3c; type T float32; var _ = T(0.)`, `T(0.)`, `c3c.T`, `0`},
    
    		{`package c4a; var _ = complex64(0i)`, `0i`, `complex64`, `(0 + 0i)`},
    		{`package c4b; var _ = complex64(0i)`, `complex64(0i)`, `complex64`, `(0 + 0i)`},
    		{`package c4c; type T complex64; var _ = T(0i)`, `T(0i)`, `c4c.T`, `(0 + 0i)`},
    
    		{`package c5a; var _ = string("foo")`, `"foo"`, `string`, `"foo"`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/fmt/fmt_test.go

    	{"%b", 1 + 2i, "(4503599627370496p-52+4503599627370496p-51i)"},
    	{"%b", complex64(1 + 2i), "(8388608p-23+8388608p-22i)"},
    	// The sharp flag has no effect for binary complex format.
    	{"%#b", 1 + 2i, "(4503599627370496p-52+4503599627370496p-51i)"},
    	// Precision has no effect for binary complex format.
    	{"%.4b", 1 + 2i, "(4503599627370496p-52+4503599627370496p-51i)"},
    	{"%.4b", complex64(1 + 2i), "(8388608p-23+8388608p-22i)"},
    	// complex infinites and NaNs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  4. src/reflect/type.go

    	Uint8:         "uint8",
    	Uint16:        "uint16",
    	Uint32:        "uint32",
    	Uint64:        "uint64",
    	Uintptr:       "uintptr",
    	Float32:       "float32",
    	Float64:       "float64",
    	Complex64:     "complex64",
    	Complex128:    "complex128",
    	Array:         "array",
    	Chan:          "chan",
    	Func:          "func",
    	Interface:     "interface",
    	Map:           "map",
    	Pointer:       "ptr",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    	c.uint16 = c.Ident("uint16")
    	c.uint32 = c.Ident("uint32")
    	c.uint64 = c.Ident("uint64")
    	c.uintptr = c.Ident("uintptr")
    	c.float32 = c.Ident("float32")
    	c.float64 = c.Ident("float64")
    	c.complex64 = c.Ident("complex64")
    	c.complex128 = c.Ident("complex128")
    	c.void = c.Ident("void")
    	c.string = c.Ident("string")
    	c.goVoid = c.Ident("_Ctype_void")
    
    	// Normally cgo translates void* to unsafe.Pointer,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  6. src/cmd/cgo/out.go

    	"int64":      {Size: 8, Align: 8, C: c("GoInt64")},
    	"uint64":     {Size: 8, Align: 8, C: c("GoUint64")},
    	"float32":    {Size: 4, Align: 4, C: c("GoFloat32")},
    	"float64":    {Size: 8, Align: 8, C: c("GoFloat64")},
    	"complex64":  {Size: 8, Align: 4, C: c("GoComplex64")},
    	"complex128": {Size: 16, Align: 8, C: c("GoComplex128")},
    }
    
    // Map an ast type to a Type.
    func (p *Package) cgoType(e ast.Expr) *Type {
    	switch t := e.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/dwarf.go

    		die = d.newdie(&dwtypes, dwarf.DW_ABRV_BASETYPE, name)
    		newattr(die, dwarf.DW_AT_encoding, dwarf.DW_CLS_CONSTANT, dwarf.DW_ATE_float, 0)
    		newattr(die, dwarf.DW_AT_byte_size, dwarf.DW_CLS_CONSTANT, bytesize, 0)
    
    	case abi.Complex64,
    		abi.Complex128:
    		die = d.newdie(&dwtypes, dwarf.DW_ABRV_BASETYPE, name)
    		newattr(die, dwarf.DW_AT_encoding, dwarf.DW_CLS_CONSTANT, dwarf.DW_ATE_complex_float, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:25:18 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    }
    
    func FloatForComplex(t *Type) *Type {
    	switch t.Kind() {
    	case TCOMPLEX64:
    		return Types[TFLOAT32]
    	case TCOMPLEX128:
    		return Types[TFLOAT64]
    	}
    	base.Fatalf("unexpected type: %v", t)
    	return nil
    }
    
    func ComplexForFloat(t *Type) *Type {
    	switch t.Kind() {
    	case TFLOAT32:
    		return Types[TCOMPLEX64]
    	case TFLOAT64:
    		return Types[TCOMPLEX128]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
Back to top