using malloc implementation types/macros/idioms for memalign
authorRich Felker <dalias@aerifal.cx>
Fri, 20 Apr 2018 00:45:48 +0000 (20:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 20 Apr 2018 00:45:48 +0000 (20:45 -0400)
commit3c2cbbe7ba8b4486299ae0d5336ae01ab520d116
treef269c212fa64c10f68e990550ef6c91c885592e3
parent23389b1988b061e8487c316893a8a8eb77770a2f
using malloc implementation types/macros/idioms for memalign

the generated code should be mostly unchanged, except for explicit use
of C_INUSE in place of copying the low bits from existing chunk
headers/footers.

these changes also remove mild UB due to dubious arithmetic on
pointers into imaginary size_t[] arrays.
src/malloc/memalign.c