aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2020-09-22 13:18:40 +0200
committerLemonBoy <thatlemon@gmail.com>2020-11-05 16:10:15 +0100
commit53433cdea2cee73caea52a6baa10dc7bc7f6da4d (patch)
treebe054df879f9fd491f0a2b9fc87f1af3ccff9d29 /lib/std/debug.zig
parent4664eae1e40813fb50bab83247cc7391312e38cb (diff)
downloadzig-53433cdea2cee73caea52a6baa10dc7bc7f6da4d.tar.gz
zig-53433cdea2cee73caea52a6baa10dc7bc7f6da4d.zip
Implement a fallback mechanism for posix_memalign
Do the alignment dance by ourselves whenever posix_memalign is not available. Don't try to use malloc as it has too many edge cases, figuring out whether a block of memory is manually aligned by the mechanism above or is directly coming from malloc becomes too hard to be valuable.
Diffstat (limited to 'lib/std/debug.zig')
0 files changed, 0 insertions, 0 deletions