Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes for non-avx targets #239

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marler8997
Copy link

when emulating avx for non-avx targets, the _m256i type is being typedef'd, however, this type is defined in avxintrin.h which is only included via immintrin.h if avx is enabled. I've added an inline definition that seems to work on my x86_64 machine with clang when __AVX__ is not defined.

Also, mm256_maddubs_epi16 was unable to compile for non-avx targets, I've addressed this by only defining this function when either __AVX2__ or __SSSE3__ is defined.

when emulating avx for non-avx targets, the _m256i type is being typedef'd,
however, this type is defined in avxintrin.h which is only included via
immintrin.h if avx is enabled.  I've added an inline definition that seems
to work on my x86_64 machine with clang when __AVX__ is not defined.

Also, mm256_maddubs_epi16 was unable to compile for non-avx targets,
I've addressed this by only defining this function when either __AVX2__
or __SSSE3__ is defined.
Copy link

@ryuujo1573 ryuujo1573 left a comment

Choose a reason for hiding this comment

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

nice work! ❤

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