__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).