| 583 | template <typename Packet, typename EnableIf = void> |
| 584 | struct pselect_impl { |
| 585 | static EIGEN_DEVICE_FUNC inline Packet run(const Packet& mask, const Packet& a, const Packet& b) { |
| 586 | return por(pand(a, mask), pandnot(b, mask)); |
| 587 | } |
| 588 | }; |
| 589 | |
| 590 | // For scalars, use ternary select. |