summaryrefslogtreecommitdiff
path: root/config.h.meson
diff options
context:
space:
mode:
authorРуслан Ижбулатов <lrn1986@gmail.com>2018-06-09 13:52:42 +0000
committerРуслан Ижбулатов <lrn1986@gmail.com>2018-06-09 13:52:42 +0000
commitbd2e3f5b9bae604e7d75b2d4a5a613cedc469098 (patch)
tree518bda079df80265f6d6b5eb63749d13ae4495e6 /config.h.meson
parent085368eb93ecbe2d973fb36c6a8801617d5eaccb (diff)
downloadgtk+-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.meson10
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