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]

Re: [PATCH 1/2 v5] libc-internal.h: add ALIGN helper macros


On Wednesday 19 June 2013 12:44:07 Mike Frysinger wrote:
> +#define ALIGN_DOWN(base, size)	((base) & ~((__typeof__ (base)) (size) -
> 1))

forgot to include Roland's suggestion.  i'll do it locally, and if there needs 
to be a v6:

-#define ALIGN_DOWN(base, size)	((base) & ~((__typeof__ (base)) (size) - 1))
+#define ALIGN_DOWN(base, size)	((base) & -((__typeof__ (base)) (size)))
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


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