12 #include <Eigen/CXX11/Tensor> 16 #define EIGEN_NO_INT128 22 #ifndef EIGEN_NO_INT128 29 bool matchh = actual.
upper() ==
static_cast<uint64_t>(expected >> 64);
30 if (!matchl || !matchh) {
32 std::cerr <<
"Test " << testname <<
" failed in " << __FILE__
33 <<
" (" << __LINE__ <<
")" 41 uint64_t incr = internal::random<uint64_t>(1, 9999999999);
42 for (
uint64_t i1 = 0; i1 < 100; ++i1) {
43 for (
uint64_t i2 = 1; i2 < 100 * incr; i2 += incr) {
46 for (
uint64_t j1 = 0; j1 < 100; ++j1) {
47 for (
uint64_t j2 = 1; j2 < 100 * incr; j2 += incr) {
60 uint64_t incr = internal::random<uint64_t>(1, 9999999999);
61 for (
uint64_t i1 = 0; i1 < 100; ++i1) {
62 for (
uint64_t i2 = 1; i2 < 100 * incr; i2 += incr) {
65 for (
uint64_t j1 = 0; j1 < 100; ++j1) {
66 for (
uint64_t j2 = 1; j2 < 100 * incr; j2 += incr) {
79 uint64_t incr = internal::random<uint64_t>(1, 9999999999);
80 for (
uint64_t i1 = 0; i1 < 100; ++i1) {
81 for (
uint64_t i2 = 1; i2 < 100 * incr; i2 += incr) {
84 for (
uint64_t j1 = 0; j1 < 100; ++j1) {
85 for (
uint64_t j2 = 1; j2 < 100 * incr; j2 += incr) {
98 uint64_t incr = internal::random<uint64_t>(1, 9999999999);
99 for (
uint64_t i1 = 0; i1 < 100; ++i1) {
100 for (
uint64_t i2 = 1; i2 < 100 * incr; i2 += incr) {
103 for (
uint64_t j1 = 0; j1 < 100; ++j1) {
104 for (
uint64_t j2 = 1; j2 < 100 * incr; j2 += incr) {
117 uint64_t incr = internal::random<uint64_t>(1, 9999999999);
118 for (
uint64_t i2 = 1; i2 < 100 * incr; i2 += incr) {
121 for (
uint64_t j2 = 1; j2 < 100 * incr; j2 += incr) {
132 int64_t incr = internal::random<int64_t>(1, 100);
133 for (
int64_t log_div = 0; log_div < 63; ++log_div) {
134 for (
int64_t divider = 1; divider <= 1000000 * incr; divider += incr) {
149 #ifdef EIGEN_NO_INT128
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE HIGH upper() const
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE LOW lower() const
#define VERIFY_IS_EQUAL(a, b)
void VERIFY_EQUAL(TensorUInt128< uint64_t, uint64_t > actual, uint128_t expected)
unsigned __int64 uint64_t
void test_cxx11_tensor_uint128()
static std::vector< std::string > g_test_stack