This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Where to put ALIGN_UP and ALIGN_DOWN macros?
- From: Carlos O'Donell <carlos at systemhalted dot org>
- To: libc-alpha at sourceware dot org
- Date: Sun, 16 Sep 2012 14:38:57 -0400
- Subject: Where to put ALIGN_UP and ALIGN_DOWN macros?
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.