(typ super.Type, v int64, length uint32)
| 22 | return &Const{vec, length} |
| 23 | } |
| 24 | func NewConstInt(typ super.Type, v int64, length uint32) *Const { |
| 25 | vec := NewInt(typ, []int64{v}) |
| 26 | return &Const{vec, length} |
| 27 | } |
| 28 | func NewConstFloat(typ super.Type, v float64, length uint32) *Const { |
| 29 | vec := NewFloat(typ, []float64{v}) |
| 30 | return &Const{vec, length} |