aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
diff options
context:
space:
mode:
authorGravatar Ville Kallioniemi <ville.kallioniemi@gmail.com>2016-01-26 23:41:01 -0700
committerGravatar Ville Kallioniemi <ville.kallioniemi@gmail.com>2016-01-26 23:41:01 -0700
commit02db1228ed9ca3728ae0685a5e1602fe7299ae50 (patch)
tree4d199900c950caaf542e74ec14f12175b7575313 /unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h
parent4beb447e27baaa19081e835bd6aba76e9b02cc67 (diff)
Add constructor for long types.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h6
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);
}