[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: alignment (was Re: lynx-dev lynx2.8.5dev.13)
From: |
Thomas E. Dickey |
Subject: |
Re: alignment (was Re: lynx-dev lynx2.8.5dev.13) |
Date: |
Wed, 5 Feb 2003 09:46:33 -0500 (EST) |
On Wed, 5 Feb 2003, Leonid Pauzner wrote:
> 22-Jan-2003 19:06 Thomas Dickey wrote:
> >> > 2003-01-22 (2.8.5dev.13)
> >> > * change new memory-allocation in HTString.c and GridText.c to provide
> >> > pointers
> >> > to data aligned to the host's pointer-size, to work on Tru64 where this
> >> > happens to be 8 -TD
>
> > I didn't think of that at first either, but the runtime messages are very
> > noticable.
>
> sizeof(double) will be more portable, from alloca.c:
maybe - I'm not certain. I was reading something on comp.std.c a month or
so ago which asserted that c99 uses 8 for a worst-case. I'll check that
too.
sizeof(double) is at least 8, of course.
--
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden