Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for MakeInt64 (0.39 sec)

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

    				if first < 0 || s.Group == nil || file.DeclList[index-1].(*syntax.ConstDecl).Group != s.Group {
    					first = index
    					last = nil
    				}
    				iota := constant.MakeInt64(int64(index - first))
    
    				// determine which initialization expressions to use
    				inherited := true
    				switch {
    				case s.Type != nil || s.Values != nil:
    					last = s
    					inherited = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/go/types/resolver.go

    					check.declare(fileScope, nil, pkgName, nopos)
    				}
    			case constDecl:
    				// declare all constants
    				for i, name := range d.spec.Names {
    					obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota)))
    
    					var init ast.Expr
    					if i < len(d.init) {
    						init = d.init[i]
    					}
    
    					d := &declInfo{file: fileScope, vtyp: d.typ, init: init, inherited: d.inherited}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. src/go/types/decl.go

    			top := len(check.delayed)
    
    			// declare all constants
    			lhs := make([]*Const, len(d.spec.Names))
    			for i, name := range d.spec.Names {
    				obj := NewConst(name.Pos(), pkg, name.Name, nil, constant.MakeInt64(int64(d.iota)))
    				lhs[i] = obj
    
    				var init ast.Expr
    				if i < len(d.init) {
    					init = d.init[i]
    				}
    
    				check.constDecl(obj, d.typ, init, d.inherited)
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/staticinit/sched.go

    			cv = constant.BinaryOp(cv, token.AND, constant.MakeUint64(1<<bits-1))
    			if t.IsSigned() && constant.Compare(cv, token.GEQ, constant.MakeUint64(1<<(bits-1))) {
    				cv = constant.BinaryOp(cv, token.OR, constant.MakeInt64(-1<<(bits-1)))
    			}
    		}
    	}
    	c = ir.NewConstExpr(cv, c)
    	c.SetType(t)
    	return c, true
    }
    
    func addStr(n *ir.AddStringExpr) ir.Node {
    	// Merge adjacent constants in the argument list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/rangefunc/rewrite.go

    func (r *rewriter) intConst(c int) *syntax.BasicLit {
    	lit := &syntax.BasicLit{
    		Value: fmt.Sprint(c),
    		Kind:  syntax.IntLit,
    	}
    	tv := syntax.TypeAndValue{Type: r.int.Type(), Value: constant.MakeInt64(int64(c))}
    	tv.SetIsValue()
    	lit.SetTypeInfo(tv)
    	return lit
    }
    
    func (r *rewriter) stateConst(s abi.RF_State) *syntax.BasicLit {
    	return r.intConst(int(s))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Kind", Type, 5},
    		{"Make", Func, 13},
    		{"MakeBool", Func, 5},
    		{"MakeFloat64", Func, 5},
    		{"MakeFromBytes", Func, 5},
    		{"MakeFromLiteral", Func, 5},
    		{"MakeImag", Func, 5},
    		{"MakeInt64", Func, 5},
    		{"MakeString", Func, 5},
    		{"MakeUint64", Func, 5},
    		{"MakeUnknown", Func, 5},
    		{"Num", Func, 5},
    		{"Real", Func, 5},
    		{"Shift", Func, 5},
    		{"Sign", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top