Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MakeInt64 (0.11 sec)

  1. src/go/constant/example_test.go

    	}
    
    	// Output:
    	//
    	// Frame
    	// Z
    	// a
    	// bacon
    	// defer
    	// go
    }
    
    func ExampleSign() {
    	zero := constant.MakeInt64(0)
    	one := constant.MakeInt64(1)
    	negOne := constant.MakeInt64(-1)
    
    	mkComplex := func(a, b constant.Value) constant.Value {
    		b = constant.MakeImag(b)
    		return constant.BinaryOp(a, token.ADD, b)
    	}
    
    	vs := []constant.Value{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/const.go

    }
    
    // NewInt returns an OLITERAL representing v as an untyped integer.
    func NewInt(pos src.XPos, v int64) Node {
    	return NewBasicLit(pos, types.UntypedInt, constant.MakeInt64(v))
    }
    
    // NewString returns an OLITERAL representing s as an untyped string.
    func NewString(pos src.XPos, s string) Node {
    	return NewBasicLit(pos, types.UntypedString, constant.MakeString(s))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/universe.go

    	name string
    	kind BasicKind
    	val  constant.Value
    }{
    	{"true", UntypedBool, constant.MakeBool(true)},
    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/go/types/universe.go

    	name string
    	kind BasicKind
    	val  constant.Value
    }{
    	{"true", UntypedBool, constant.MakeBool(true)},
    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top