Module Name:    src
Committed By:   jruoho
Date:           Fri Apr  8 06:55:14 UTC 2011

Modified Files:
        src/share/man/man9: roundup.9

Log Message:
Put back the example (removed in the revision 1.3).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man9/roundup.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/roundup.9
diff -u src/share/man/man9/roundup.9:1.4 src/share/man/man9/roundup.9:1.5
--- src/share/man/man9/roundup.9:1.4	Mon Jan 24 10:22:15 2011
+++ src/share/man/man9/roundup.9	Fri Apr  8 06:55:14 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: roundup.9,v 1.4 2011/01/24 10:22:15 enami Exp $
+.\" $NetBSD: roundup.9,v 1.5 2011/04/08 06:55:14 jruoho Exp $
 .\"
 .\" Copyright (c) 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 8, 2010
+.Dd April 8, 2011
 .Dt ROUNDUP 9
 .Os
 .Sh NAME
@@ -82,6 +82,17 @@
 The behavior is undefined if
 .Fa size
 is 0.
+.Sh EXAMPLES
+The following example rounds the variable
+.Va x
+to a 32-bit boundary:
+.Bd -literal -offset indent
+uint16_t rx;
+
+\&...
+
+rx = roundup2(rx, sizeof(uint32_t));
+.Ed
 .Sh SEE ALSO
 .Xr ilog2 3 ,
 .Xr imax 9

Reply via email to