From: Mark Wooding Date: Sun, 4 Jan 2009 13:50:14 +0000 (+0000) Subject: align: Add trivial manpage. X-Git-Tag: 2.1.0~1^2~1 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/commitdiff_plain/7c7ba2aaa02381088315d7ab1c9d9de6afbd5458 align: Add trivial manpage. I discovered while reorganizing the manpage build system that there was no manual for align.h. --- diff --git a/Makefile.am b/Makefile.am index 6518677..7f61828 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,6 +89,7 @@ LIBMANS += macros.3 ## Alignment. pkginclude_HEADERS += align.h +LIBMANS += align.3 ## Bit manipulation. pkginclude_HEADERS += bits.h diff --git a/align.3 b/align.3 new file mode 100644 index 0000000..9ee2377 --- /dev/null +++ b/align.3 @@ -0,0 +1,26 @@ +.\" -*-nroff-*- +.TH align 3 "4 January 2009" "Straylight/Edgeware" "mLib utilities library" +.SH NAME +align \- alignment utilities +.\" @ALIGN +.SH SYNOPSIS +.nf +.B "#include " + +.BI "size_t ALIGN(size_t " sz ");" +.fi +.SH DESCRIPTION +The +.B ALIGN +macro returns the value of its argument +.I sz +rounded up to the next multiple of the size of +.BR "union align" , +which is defined as a union containing a selection of built-in types. +The intent is to write fairly portable memory allocators, which must +return correctly-aligned memory. +.IR array . +.SH "SEE ALSO" +.BR mLib (3). +.SH "AUTHOR" +Mark Wooding,