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

Function arithSubFloatConstConst

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

Source from the content-addressed store, hash-verified

1217}
1218
1219func arithSubFloatConstConst(lhs, rhs vector.Any) vector.Any {
1220 lconst := vector.FloatValue(lhs, 0)
1221 rconst := vector.FloatValue(rhs, 0)
1222 return vector.NewConstFloat(lhs.Type(), lconst-rconst, lhs.Len())
1223}
1224
1225func arithMulIntFlatFlat(lhs, rhs vector.Any) vector.Any {
1226 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