This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: mallocating 16 byte aligned blocks...
- From: Kimmo Fredriksson <kfredrik at cs dot joensuu dot fi>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 12 Aug 2003 18:42:13 +0000 (UTC)
- Subject: Re: mallocating 16 byte aligned blocks...
- Replyto: Kimmo Fredriksson <kfredrik@cs.joensuu.fi>
Thanks, posix_memalign is just what I needed. My system is linux, and it
has both, altought memalign seems to be obsolete.
I guess there is no truly portable way to do this, exept writing my own
function? (Not needed in this case, however.)
kf
On Tue, 12 Aug 2003, Mihnea Balta wrote:
> See the manpage on posix_memalign (if your system has it) or memalign.
>
> On Tuesday 12 August 2003 15:02, Kimmo Fredriksson wrote:
> > Hi,
> >
> > I need to malloc blocks of memory that are quaranteed to be aligned to 16
> > byte boundaries. Should I write my own version of malloc, or is there a
> > simpler way to achieve this?
> >
> > kf
> >
> >
> > ---------------------------------------------------------------
> > Acasa.ro vine cu albumele, tu vino doar cu pozele ;)
> > http://poze.acasa.ro/
>
>