mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Disable test for 32-bit systems (e.g. ARM, i386)
Both i386 and 32-bit ARM do not define __uint128_t. On most systems, if __uint128_t is defined, then so is the macro __SIZEOF_INT128__. https://stackoverflow.com/questions/18531782/how-to-know-if-uint128-t-is-defined1
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
8e1df5b082
commit
8719b9c5bc
@@ -228,10 +228,10 @@ template <typename RealScalar>
|
||||
static void test_fft_non_power_of_2_round_trip(int exponent) {
|
||||
int n = (1 << exponent) + 1;
|
||||
|
||||
Eigen::DSizes<std::int64_t, 1> dimensions;
|
||||
Eigen::DSizes<ptrdiff_t, 1> dimensions;
|
||||
dimensions[0] = n;
|
||||
const DSizes<std::int64_t, 1> arr = dimensions;
|
||||
Tensor<RealScalar, 1, ColMajor, std::int64_t> input;
|
||||
const DSizes<ptrdiff_t, 1> arr = dimensions;
|
||||
Tensor<RealScalar, 1, ColMajor, ptrdiff_t> input;
|
||||
|
||||
input.resize(arr);
|
||||
input.setRandom();
|
||||
@@ -242,7 +242,7 @@ static void test_fft_non_power_of_2_round_trip(int exponent) {
|
||||
Tensor<std::complex<RealScalar>, 1, ColMajor> forward =
|
||||
input.template fft<BothParts, FFT_FORWARD>(fft);
|
||||
|
||||
Tensor<RealScalar, 1, ColMajor, std::int64_t> output =
|
||||
Tensor<RealScalar, 1, ColMajor, ptrdiff_t> output =
|
||||
forward.template fft<RealPart, FFT_REVERSE>(fft);
|
||||
|
||||
for (int i = 0; i < n; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user