chiark / gitweb /
debian: Prepare stuff for new version.
[mLib] / align.3
CommitLineData
7c7ba2aa
MW
1.\" -*-nroff-*-
2.TH align 3 "4 January 2009" "Straylight/Edgeware" "mLib utilities library"
3.SH NAME
4align \- alignment utilities
5.\" @ALIGN
6.SH SYNOPSIS
7.nf
8.B "#include <mLib/align.h>"
9
10.BI "size_t ALIGN(size_t " sz ");"
11.fi
12.SH DESCRIPTION
13The
14.B ALIGN
15macro returns the value of its argument
16.I sz
17rounded up to the next multiple of the size of
18.BR "union align" ,
19which is defined as a union containing a selection of built-in types.
20The intent is to write fairly portable memory allocators, which must
21return correctly-aligned memory.
22.IR array .
23.SH "SEE ALSO"
24.BR mLib (3).
25.SH "AUTHOR"
26Mark Wooding, <mdw@distorted.org.uk>