On 02-Mar-19 19:10, Jason Gunthorpe wrote: > On Tue, Feb 26, 2019 at 06:10:29PM +0200, Gal Pressman wrote: > >> I'll add an align.h file. > > See if ccan has something first.. I can't see anything that does that in ccan. The closest thing is #define BIT_ALIGN_DOWN/UP which are local to bitmap.c.