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

Function arithModIntConstConst

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

Source from the content-addressed store, hash-verified

2638}
2639
2640func arithModIntConstConst(lhs, rhs vector.Any) vector.Any {
2641 lconst := vector.IntValue(lhs, 0)
2642 rconst := vector.IntValue(rhs, 0)
2643 return vector.NewConstInt(lhs.Type(), lconst%rconst, lhs.Len())
2644}
2645
2646func arithModUintFlatFlat(lhs, rhs vector.Any) vector.Any {
2647 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