MCPcopy Create free account
hub / github.com/brimdata/super / arithAddIntConstConst

Function arithAddIntConstConst

runtime/vam/expr/arithfuncs.go:204–208  ·  view source on GitHub ↗
(lhs, rhs vector.Any)

Source from the content-addressed store, hash-verified

202}
203
204func arithAddIntConstConst(lhs, rhs vector.Any) vector.Any {
205 lconst := vector.IntValue(lhs, 0)
206 rconst := vector.IntValue(rhs, 0)
207 return vector.NewConstInt(lhs.Type(), lconst+rconst, lhs.Len())
208}
209
210func arithAddUintFlatFlat(lhs, rhs vector.Any) vector.Any {
211 l := lhs.(*vector.Uint)

Callers

nothing calls this directly

Calls 4

IntValueFunction · 0.92
NewConstIntFunction · 0.92
TypeMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected