Add aligned allocator support to meson
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 9 Jun 2018 13:52:42 +0000 (13:52 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 9 Jun 2018 13:52:42 +0000 (13:52 +0000)
commitbd2e3f5b9bae604e7d75b2d4a5a613cedc469098
tree518bda079df80265f6d6b5eb63749d13ae4495e6
parent085368eb93ecbe2d973fb36c6a8801617d5eaccb
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)
config.h.meson
meson.build