(lhs, rhs vector.Any)
| 29 | } |
| 30 | |
| 31 | func arithAddIntFlatView(lhs, rhs vector.Any) vector.Any { |
| 32 | l := lhs.(*vector.Int) |
| 33 | rd := rhs.(*vector.View) |
| 34 | r := rd.Any.(*vector.Int) |
| 35 | rx := rd.Index |
| 36 | n := lhs.Len() |
| 37 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 38 | for k := range n { |
| 39 | out.Append(l.Value(k) + r.Value(uint32(rx[k]))) |
| 40 | } |
| 41 | return out |
| 42 | } |
| 43 | |
| 44 | func arithAddIntFlatConst(lhs, rhs vector.Any) vector.Any { |
| 45 | l := lhs.(*vector.Int) |
nothing calls this directly
no test coverage detected