Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for TFLOAT32 (0.1 sec)

  1. src/cmd/compile/internal/types/universe.go

    	etype Kind
    }{
    	{"int8", TINT8},
    	{"int16", TINT16},
    	{"int32", TINT32},
    	{"int64", TINT64},
    	{"uint8", TUINT8},
    	{"uint16", TUINT16},
    	{"uint32", TUINT32},
    	{"uint64", TUINT64},
    	{"float32", TFLOAT32},
    	{"float64", TFLOAT64},
    	{"complex64", TCOMPLEX64},
    	{"complex128", TCOMPLEX128},
    	{"bool", TBOOL},
    	{"string", TSTRING},
    }
    
    var typedefs = [...]struct {
    	name     string
    	etype    Kind
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/kind_string.go

    	_ = 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]
    	_ = x[TFORW-25]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:38 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/identity.go

    		if flags&identStrict == 0 && (t1.HasShape() || t2.HasShape()) {
    			switch t1.kind {
    			case TINT8, TUINT8, TINT16, TUINT16, TINT32, TUINT32, TINT64, TUINT64, TINT, TUINT, TUINTPTR, TCOMPLEX64, TCOMPLEX128, TFLOAT32, TFLOAT64, TBOOL, TSTRING, TPTR, TUNSAFEPTR:
    				return true
    			}
    			// fall through to unnamed type comparison for complex types.
    			goto cont
    		}
    		// Special case: we keep byte/uint8 and rune/int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    	// float
    	{types.TFLOAT64, types.TFLOAT32}: {ssa.OpCvt64Fto32F, ssa.OpCopy, types.TFLOAT32},
    	{types.TFLOAT64, types.TFLOAT64}: {ssa.OpRound64F, ssa.OpCopy, types.TFLOAT64},
    	{types.TFLOAT32, types.TFLOAT32}: {ssa.OpRound32F, ssa.OpCopy, types.TFLOAT32},
    	{types.TFLOAT32, types.TFLOAT64}: {ssa.OpCvt32Fto64F, ssa.OpCopy, types.TFLOAT64},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/test/abiutils_test.go

    	//        (r1 int32, r2 float64, r3 float64) {
    	i8 := types.Types[types.TINT8]
    	i16 := types.Types[types.TINT16]
    	i32 := types.Types[types.TINT32]
    	i64 := types.Types[types.TINT64]
    	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,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/config.go

    	t.UInt8 = types.Types[types.TUINT8]
    	t.UInt16 = types.Types[types.TUINT16]
    	t.UInt32 = types.Types[types.TUINT32]
    	t.UInt64 = types.Types[types.TUINT64]
    	t.Int = types.Types[types.TINT]
    	t.Float32 = types.Types[types.TFLOAT32]
    	t.Float64 = types.Types[types.TFLOAT64]
    	t.UInt = types.Types[types.TUINT]
    	t.Uintptr = types.Types[types.TUINTPTR]
    	t.String = types.Types[types.TSTRING]
    	t.BytePtr = types.NewPtr(types.Types[types.TUINT8])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/abi.go

    	for i, p := range abiParams {
    		t := p.Type
    		switch t.Kind() {
    		case types.TINT32, types.TUINT32:
    			wfs[i].Type = obj.WasmI32
    		case types.TINT64, types.TUINT64:
    			wfs[i].Type = obj.WasmI64
    		case types.TFLOAT32:
    			wfs[i].Type = obj.WasmF32
    		case types.TFLOAT64:
    			wfs[i].Type = obj.WasmF64
    		case types.TUNSAFEPTR:
    			wfs[i].Type = obj.WasmPtr
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/func.go

    	default:
    		base.Errorf("invalid operation: %v (arguments have type %v, expected floating-point)", n, l.Type())
    		n.SetType(nil)
    		return n
    
    	case types.TIDEAL:
    		t = types.UntypedComplex
    
    	case types.TFLOAT32:
    		t = types.Types[types.TCOMPLEX64]
    
    	case types.TFLOAT64:
    		t = types.Types[types.TCOMPLEX128]
    	}
    	n.SetType(t)
    	return n
    }
    
    // tcCopy typechecks an OCOPY node.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/staticdata/data.go

    	case constant.Int:
    		s.WriteInt(base.Ctxt, noff, wid, ir.IntVal(c.Type(), u))
    
    	case constant.Float:
    		f, _ := constant.Float64Val(u)
    		switch c.Type().Kind() {
    		case types.TFLOAT32:
    			s.WriteFloat32(base.Ctxt, noff, float32(f))
    		case types.TFLOAT64:
    			s.WriteFloat64(base.Ctxt, noff, f)
    		}
    
    	case constant.Complex:
    		re, _ := constant.Float64Val(constant.Real(u))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top