From 6db3a557f4734db4f9c8ed784541d556d5180339 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 29 Jul 2015 11:38:53 +0200 Subject: [PATCH] Add missing specialization of struct DividerTraits --- unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h index b16863fa5..e44678226 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h @@ -79,6 +79,10 @@ namespace { static const int N = 32; #endif }; + // In C++, long is not int32_t nor int64_t, so we need a specialization for it: + template <> + struct DividerTraits : internal::conditional,DividerTraits >::type + {}; template EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint32_t muluh(const uint32_t a, const T b) {