diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-06-09 13:52:42 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2018-06-09 13:52:42 +0000 |
commit | bd2e3f5b9bae604e7d75b2d4a5a613cedc469098 (patch) | |
tree | 518bda079df80265f6d6b5eb63749d13ae4495e6 /config.h.meson | |
parent | 085368eb93ecbe2d973fb36c6a8801617d5eaccb (diff) | |
download | gtk+-bd2e3f5b9bae604e7d75b2d4a5a613cedc469098.tar.gz |
Add aligned allocator support to meson
* A bunch of new variables for config.h.meson
* A check for aligned allocation being necessary at all
(graphene must use GCC vector instructions or SSE2)
* A check for C malloc() being aligned at 16-byte boundaries
* A check for a few special aligned allocator functions being
present and not being built-ins (posix_memalign is a builtin
in GCC, even on platforms where there is no posix_memalign
system function)
* Added -mstackrealign flag on Windows, since otherwise
stack variables may become unaligned when the stack briefly
passes through OS code (such as in various callbacks and
handlers)
Diffstat (limited to 'config.h.meson')
-rw-r--r-- | config.h.meson | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config.h.meson b/config.h.meson index 74a90d3df8..e7cc20eba5 100644 --- a/config.h.meson +++ b/config.h.meson @@ -305,3 +305,13 @@ #mesondefine HAVE_PANGOFT #mesondefine ISO_CODES_PREFIX + +#mesondefine MALLOC_IS_ALIGNED16 + +#mesondefine HAVE_POSIX_MEMALIGN + +#mesondefine HAVE_MEMALIGN + +#mesondefine HAVE_ALIGNED_ALLOC + +#mesondefine HAVE__ALIGNED_MALLOC |