mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Add missing specialization of struct DividerTraits<long>
This commit is contained in:
parent
aec4814370
commit
6db3a557f4
@ -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<long> : internal::conditional<sizeof(long)==4,DividerTraits<int32_t>,DividerTraits<int64_t> >::type
|
||||
{};
|
||||
|
||||
template <typename T>
|
||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE uint32_t muluh(const uint32_t a, const T b) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user