This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PING] Re: Where to put ALIGN_UP and ALIGN_DOWN macros?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]