Skip to content

Fix build error on mingw32#570

Closed
cyb70289 wants to merge 1 commit into
xtensor-stack:masterfrom
cyb70289:fix-error-on-mingw32
Closed

Fix build error on mingw32#570
cyb70289 wants to merge 1 commit into
xtensor-stack:masterfrom
cyb70289:fix-error-on-mingw32

Conversation

@cyb70289
Copy link
Copy Markdown
Contributor

Mingw32 build failed with missing _mm_cvtsi128_si64 definition, which
is only available on 64bit platform.

Mingw32 build failed with missing _mm_cvtsi128_si64 definition, which
is only available on 64bit platform.
__m256i tmp2 = _mm256_add_epi64(self, tmp1);
__m128i tmp3 = _mm256_extracti128_si256(tmp2, 1);
__m128i res = _mm_add_epi64(_mm256_castsi256_si128(tmp2), tmp3);
#if defined(__x86_64__)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then correct me if I'm wrong : it's more an issue of 32 bits versus 64bits, right? If that's indeed the case, it means we should add a bot that capture that scenario before we merge that PR. I'll do that

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's an issue only on 32 bits.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to pick this change if it's useful.

@serge-sans-paille
Copy link
Copy Markdown
Contributor

Obsoleted by #571

@cyb70289 cyb70289 deleted the fix-error-on-mingw32 branch September 28, 2021 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants