Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for IsFloat (0.66 sec)

  1. src/cmd/compile/internal/ssa/check.go

    					f.Fatalf("bad arg 0 to OpLocalAddr %v", v)
    				}
    				if !v.Args[1].Type.IsMemory() {
    					f.Fatalf("bad arg 1 to OpLocalAddr %v", v)
    				}
    			}
    
    			if f.RegAlloc != nil && f.Config.SoftFloat && v.Type.IsFloat() {
    				f.Fatalf("unexpected floating-point type %v", v.LongString())
    			}
    
    			// Check types.
    			// TODO: more type checks?
    			switch c := f.Config; v.Op {
    			case OpSP, OpSB:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    	// we'd know what we need.) The syntax guides us to some extent.
    	s.at(constant)
    	switch {
    	case constant.IsComplex:
    		return reflect.ValueOf(constant.Complex128) // incontrovertible.
    
    	case constant.IsFloat &&
    		!isHexInt(constant.Text) && !isRuneInt(constant.Text) &&
    		strings.ContainsAny(constant.Text, ".eEpP"):
    		return reflect.ValueOf(constant.Float64)
    
    	case constant.IsInt:
    		n := int(constant.Int64)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    		val = constant.MakeBool(r.bool())
    
    	case types.IsString:
    		val = constant.MakeString(r.string())
    
    	case types.IsInteger:
    		var x big.Int
    		r.mpint(&x, b)
    		val = constant.Make(&x)
    
    	case types.IsFloat:
    		val = r.mpfloat(b)
    
    	case types.IsComplex:
    		re := r.mpfloat(b)
    		im := r.mpfloat(b)
    		val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/expr.go

    		return typecheck.Conv(call, t)
    	}
    
    	// Nothing to do for float divisions.
    	if types.IsFloat[et] {
    		return n
    	}
    
    	// rewrite 64-bit div and mod on 32-bit architectures.
    	// TODO: Remove this code once we can introduce
    	// runtime calls late in SSA processing.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top