(lhs, rhs vector.Any)
| 137 | } |
| 138 | |
| 139 | func arithAddIntViewView(lhs, rhs vector.Any) vector.Any { |
| 140 | ld := lhs.(*vector.View) |
| 141 | l := ld.Any.(*vector.Int) |
| 142 | lx := ld.Index |
| 143 | rd := rhs.(*vector.View) |
| 144 | r := rd.Any.(*vector.Int) |
| 145 | rx := rd.Index |
| 146 | n := lhs.Len() |
| 147 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 148 | for k := range n { |
| 149 | out.Append(l.Value(uint32(lx[k])) + r.Value(uint32(rx[k]))) |
| 150 | } |
| 151 | return out |
| 152 | } |
| 153 | |
| 154 | func arithAddIntViewConst(lhs, rhs vector.Any) vector.Any { |
| 155 | ld := lhs.(*vector.View) |
nothing calls this directly
no test coverage detected