standards/85090: [patch] add memalign() and posix_memalign()
functions
Sergey Matveychuk
sem at FreeBSD.org
Wed Aug 31 08:14:35 GMT 2005
Dan Nelson wrote:
> In the last episode (Aug 30), Sergey Matveychuk said:
>
>>Could I hear some comments, need we a memalign() function or not?
>
>
> Our malloc already aligns pretty well. Blocks < 16 bytes are aligned
> to 16 bytes. Blocks from 16 to pagesize are aligned to powers of two
> (rounded up), and blocks greater than pagesize are aligned to pagesize.
>
Yes, I know. But if programmer needs some special align?
There is posix_memalign() in standard (as extension). Need we
posix_memalign() then?
--
Sem.
More information about the freebsd-standards
mailing list