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

Function arithSubIntConstConst

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

Source from the content-addressed store, hash-verified

811}
812
813func arithSubIntConstConst(lhs, rhs vector.Any) vector.Any {
814 lconst := vector.IntValue(lhs, 0)
815 rconst := vector.IntValue(rhs, 0)
816 return vector.NewConstInt(lhs.Type(), lconst-rconst, lhs.Len())
817}
818
819func arithSubUintFlatFlat(lhs, rhs vector.Any) vector.Any {
820 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