Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Put back the example (removed in the revision...
details: https://anonhg.NetBSD.org/src/rev/3789c65c697f
branches: trunk
changeset: 763937:3789c65c697f
user: jruoho <jruoho%NetBSD.org@localhost>
date: Fri Apr 08 06:55:14 2011 +0000
description:
Put back the example (removed in the revision 1.3).
diffstat:
share/man/man9/roundup.9 | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r b2c99b7af059 -r 3789c65c697f share/man/man9/roundup.9
--- a/share/man/man9/roundup.9 Fri Apr 08 06:49:20 2011 +0000
+++ b/share/man/man9/roundup.9 Fri Apr 08 06:55:14 2011 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index