Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Aug 2005 12:14:27 +0400
From:      Sergey Matveychuk <sem@FreeBSD.org>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        arch@freebsd.org, standards@freebsd.org
Subject:   Re: standards/85090: [patch] add memalign() and posix_memalign() functions
Message-ID:  <431566E3.5040606@FreeBSD.org>
In-Reply-To: <20050830170235.GB4337@dan.emsphone.com>
References:  <4314193B.80208@FreeBSD.org> <20050830170235.GB4337@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?431566E3.5040606>