(lhs, rhs vector.Any)
| 174 | } |
| 175 | |
| 176 | func compareEQIntViewConst(lhs, rhs vector.Any) vector.Any { |
| 177 | ld := lhs.(*vector.View) |
| 178 | l := ld.Any.(*vector.Int) |
| 179 | lx := ld.Index |
| 180 | rconst := vector.IntValue(rhs, 0) |
| 181 | n := lhs.Len() |
| 182 | out := vector.NewFalse(n) |
| 183 | for k := range n { |
| 184 | if l.Value(uint32(lx[k])) == rconst { |
| 185 | out.Set(k) |
| 186 | } |
| 187 | } |
| 188 | return out |
| 189 | } |
| 190 | |
| 191 | func compareEQIntConstFlat(lhs, rhs vector.Any) vector.Any { |
| 192 | lconst := vector.IntValue(lhs, 0) |