• Martin Storsjö's avatar
    attributes: Don't align to more than what assembly needs/benefits from · 6cb362d0
    Martin Storsjö authored
    For arm/arm64, there's no need to align any buffer to 32 bytes
    as the assembly doesn't need it and doesn't benefit from it.
    
    This would be much more elegant if defined like this:
    
        #define MAX_ALIGN 16
        #define ALIGN(align) __attribute__((aligned(MIN(align, MAX_ALIGN))))
    
    This works for GCC and Clang, but the MSVC alignment __declspec
    needs a literal alignment value, it can't handle an expression.
    6cb362d0
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
src Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
THANKS.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...