Reimplement the selection between rotating and non-rotating kernels

using templates instead of macros and if()'s.
That was needed to fix the build of unit tests on ARM, which I had
broken. My bad for not testing earlier.
This commit is contained in:
Benoit Jacob
2015-02-27 15:30:10 -05:00
parent bf9877a92a
commit 6466fa63be
2 changed files with 95 additions and 67 deletions

View File

@@ -290,11 +290,8 @@ template<typename Packet> EIGEN_DEVICE_FUNC inline Packet preverse(const Packet&
template<size_t offset, typename Packet>
struct protate_impl
{
static Packet run(const Packet& a)
{
eigen_assert(false && "unimplemented");
return a;
}
// Empty so attempts to use this unimplemented path will fail to compile.
// Only specializations of this template should be used.
};
/** \internal \returns a packet with the coefficients rotated to the right in little-endian convention,