diff options
author | Ville Kallioniemi <ville.kallioniemi@gmail.com> | 2016-01-17 21:25:36 -0700 |
---|---|---|
committer | Ville Kallioniemi <ville.kallioniemi@gmail.com> | 2016-01-17 21:25:36 -0700 |
commit | 63fb66f53a576e4ae7bd6b28d011a7e33b7757de (patch) | |
tree | d9ef0af75cad1cd5f1c547168addccc67e44d4cd /unsupported/Eigen | |
parent | 9900782e882b9429e44ad4902476cbaa489edbfa (diff) |
Add ctor for long
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h index 4f2adb671..19352eb5e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h @@ -40,6 +40,12 @@ struct TensorUInt128 EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128(unsigned int x) : high(0), low(x) { } EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE + TensorUInt128(long x) : high(0), low(x) { + eigen_assert(x >= 0); + } + EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE + TensorUInt128(unsigned long x) : high(0), low(x) { } + EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE TensorUInt128(int64_t x) : high(0), low(x) { eigen_assert(x >= 0); } |