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

more robust __builtin_assume_aligned detection #341

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

Akaricchi
Copy link
Contributor

__builtin_assume_aligned is available since GCC 4.7, but __has_builtin was added much later. Check for the GCC version if __has_builtin is not available.

Users can also define CGLM_HAVE_BUILTIN_ASSUME_ALIGNED to either 1 or 0 to explicitly enable/disable the use of __builtin_assume_aligned. Meson will do it automatically (by performing a configure-time test).

__builtin_assume_aligned is available since GCC 4.7, but __has_builtin
was added much later. Check for the GCC version if __has_builtin is not
available.

Users can also define CGLM_HAVE_BUILTIN_ASSUME_ALIGNED to either 1 or 0
to explicitly enable/disable the use of __builtin_assume_aligned. Meson
will do it automatically (by performing a configure-time test).
@recp recp merged commit 129287b into recp:master Aug 1, 2023
32 checks passed
@recp
Copy link
Owner

recp commented Aug 1, 2023

@Akaricchi thanks for your contributions, the PR is merged 🚀

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