Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for constBool (0.29 sec)

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

    const (
    	constSliceMagic       = 1122334455
    	constInterfaceMagic   = 2233445566
    	constNilMagic         = 3344556677
    	constEmptyStringMagic = 4455667788
    )
    
    // ConstBool returns an int constant representing its argument.
    func (f *Func) ConstBool(t *types.Type, c bool) *Value {
    	i := int64(0)
    	if c {
    		i = 1
    	}
    	return f.constVal(OpConstBool, t, i, true)
    }
    func (f *Func) ConstInt8(t *types.Type, c int8) *Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// arg0=ptr/int arg1=mem, output=int/ptr
    	{name: "Convert", argLength: 2, zeroWidth: true, resultInArg0: true},
    
    	// constants. Constant values are stored in the aux or
    	// auxint fields.
    	{name: "ConstBool", aux: "Bool"},     // auxint is 0 for false and 1 for true
    	{name: "ConstString", aux: "String"}, // value is aux.(string)
    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top