(lhs, rhs vector.Any)
| 152 | } |
| 153 | |
| 154 | func arithAddIntViewConst(lhs, rhs vector.Any) vector.Any { |
| 155 | ld := lhs.(*vector.View) |
| 156 | l := ld.Any.(*vector.Int) |
| 157 | lx := ld.Index |
| 158 | rconst := vector.IntValue(rhs, 0) |
| 159 | n := lhs.Len() |
| 160 | out := vector.NewIntEmpty(lhs.Type(), n) |
| 161 | for k := range n { |
| 162 | out.Append(l.Value(uint32(lx[k])) + rconst) |
| 163 | } |
| 164 | return out |
| 165 | } |
| 166 | |
| 167 | func arithAddIntConstFlat(lhs, rhs vector.Any) vector.Any { |
| 168 | lconst := vector.IntValue(lhs, 0) |