On Fri, Feb 03, 2017 at 04:07:25PM +0100, Boudewijn Dijkstra wrote:
> Op Sat, 28 Jan 2017 06:26:16 +0100 schreef Damian McGuckin
> :
> > What is the recommended most portable way to force memory alignment for
> > a datum of any type, assuming one has a pointer say
> >
&
Op Sat, 28 Jan 2017 06:26:16 +0100 schreef Damian McGuckin
:
What is the recommended most portable way to force memory alignment for
a datum of any type, assuming one has a pointer say
char *x
I currently use something like
char *xany = aligntonext(x, sizeof(long))
where I
On Sat, 28 Jan 2017, Kyoung Jae Seo wrote:
Maybe posix_memalign(3) is API you are looking for.
No. This allocates memory.
I already have the buffer. I am trying to use space within it.
Regards - Damian
Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571
Hi.
On Sat, Jan 28, 2017 at 04:26:16PM +1100, Damian McGuckin wrote:
> What is the recommended most portable way to force memory alignment for a
> datum of any type, assuming one has a pointer say
>
> char *x
>
> I currently use something like
>
> char *xany
What is the recommended most portable way to force memory alignment for a
datum of any type, assuming one has a pointer say
char *x
I currently use something like
char *xany = aligntonext(x, sizeof(long))
where I use my own function 'aligntionext' which is defined b
5 matches
Mail list logo