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

Function arithDivIntConstConst

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

Source from the content-addressed store, hash-verified

2029}
2030
2031func arithDivIntConstConst(lhs, rhs vector.Any) vector.Any {
2032 lconst := vector.IntValue(lhs, 0)
2033 rconst := vector.IntValue(rhs, 0)
2034 return vector.NewConstInt(lhs.Type(), lconst/rconst, lhs.Len())
2035}
2036
2037func arithDivUintFlatFlat(lhs, rhs vector.Any) vector.Any {
2038 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