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

bytedelta: rely on __SSSE3__ macro rather that on architecture macros #586

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

t20100
Copy link
Contributor

@t20100 t20100 commented Feb 7, 2024

This PR proposes to use the __SSSE3__ macros to probe SSSE3 availability rather than the architecture macros since this depends on the build options used. From what I have checked the bytedelta code uses only SSSE3 and SSE2 instructions.
For Visual Studio, __SSSE3__ is defined the same way as for __SSE2__ in:

https://github.com/Blosc/C-Blosc2/blob/f0183767d73073eb41bbf97bf56554c7a55c7dbf/include/blosc2/blosc2-common.h#L36-L43

Related to #546 and probably fixes it. From what I have tested, it fixes build issues with hdf5plugin.

#define __SSSE3__
#endif

#if defined(__SSSE3__)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It assumes that SSE2 is available when SSSE3 is

@FrancescAlted
Copy link
Member

LGTM. Indeed the Windows platform was not fully tested. Thanks @t20100 !

@FrancescAlted FrancescAlted merged commit 8c519b4 into Blosc:main Feb 7, 2024
17 checks passed
@t20100 t20100 deleted the fix-bytedelta-ssse3 branch February 7, 2024 12:16
t20100 added a commit to t20100/hdf5plugin that referenced this pull request Feb 7, 2024
t20100 added a commit to t20100/hdf5plugin that referenced this pull request Feb 7, 2024
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.

None yet

2 participants