mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 21:34:30 +08:00
Provide numext::[u]int{32,64}_t. Manually grafted from 4356a55a61c99faec681b20c5477b7e7012ca128
This commit is contained in:
parent
a7d6a65d49
commit
1760432f6e
@ -531,4 +531,30 @@ bool not_equal_strict(const double& x,const double& y) { return std::not_equal_t
|
|||||||
|
|
||||||
} // end namespace Eigen
|
} // end namespace Eigen
|
||||||
|
|
||||||
|
// Define portable (u)int{32,64} types
|
||||||
|
#if EIGEN_HAS_CXX11
|
||||||
|
#include <cstdint>
|
||||||
|
namespace Eigen {
|
||||||
|
namespace numext {
|
||||||
|
typedef std::uint32_t uint32_t;
|
||||||
|
typedef std::int32_t int32_t;
|
||||||
|
typedef std::uint64_t uint64_t;
|
||||||
|
typedef std::int64_t int64_t;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
// Without c++11, all compilers able to compile Eigen also
|
||||||
|
// provides the C99 stdint.h header file.
|
||||||
|
#include <stdint.h>
|
||||||
|
namespace Eigen {
|
||||||
|
namespace numext {
|
||||||
|
typedef ::uint32_t uint32_t;
|
||||||
|
typedef ::int32_t int32_t;
|
||||||
|
typedef ::uint64_t uint64_t;
|
||||||
|
typedef ::int64_t int64_t;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif // EIGEN_META_H
|
#endif // EIGEN_META_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user