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

Function arithAddFloatConstConst

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

Source from the content-addressed store, hash-verified

608}
609
610func arithAddFloatConstConst(lhs, rhs vector.Any) vector.Any {
611 lconst := vector.FloatValue(lhs, 0)
612 rconst := vector.FloatValue(rhs, 0)
613 return vector.NewConstFloat(lhs.Type(), lconst+rconst, lhs.Len())
614}
615
616func arithSubIntFlatFlat(lhs, rhs vector.Any) vector.Any {
617 l := lhs.(*vector.Int)

Callers

nothing calls this directly

Calls 4

FloatValueFunction · 0.92
NewConstFloatFunction · 0.92
TypeMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected