This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PING] Re: Where to put ALIGN_UP and ALIGN_DOWN macros?
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Carlos O'Donell <carlos at systemhalted dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 18 Feb 2013 16:57:05 +0100
- Subject: [PING] Re: Where to put ALIGN_UP and ALIGN_DOWN macros?
- References: <20120916183856.GB13487@lios>
I encountered situation where align_up/down would be handly.
What is status?
On Sun, Sep 16, 2012 at 02:38:57PM -0400, Carlos O'Donell wrote:
>
> While working on BZ#11787, and dealing with the stack allocation I've
> written ALIGN_DOWN and ALIGN_UP macros. I'd like to start using those
> throughout the code when we need to align values in C. The macros
> avoid the inconsistency we have in rounding code as I documented here:
> http://sources.redhat.com/ml/libc-alpha/2012-04/msg00006.html
>
> If we accept their use and inclusion, where should we put them?
>
> New header specific to alignment macros?
>
> Repurpose another header like libc-internal?
>
> Cheers,
> Carlos.