mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Make bitwise_helper a device function to unbreak GPU builds.
This commit is contained in:
parent
4e4d3f32d1
commit
9a4d04c05f
@ -305,7 +305,7 @@ EIGEN_DEVICE_FUNC inline std::complex<RealScalar> ptrue(const std::complex<RealS
|
||||
}
|
||||
|
||||
template <typename Packet, typename Op>
|
||||
Packet bitwise_helper(const Packet& a, const Packet& b, Op op) {
|
||||
EIGEN_DEVICE_FUNC inline Packet bitwise_helper(const Packet& a, const Packet& b, Op op) {
|
||||
const unsigned char* a_ptr = reinterpret_cast<const unsigned char*>(&a);
|
||||
const unsigned char* b_ptr = reinterpret_cast<const unsigned char*>(&b);
|
||||
Packet c;
|
||||
|
Loading…
Reference in New Issue
Block a user