Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man3 EXAMPLE -> EXAMPLES, GCC -> gcc(1), and minor...
details: https://anonhg.NetBSD.org/src/rev/6e834492d7b1
branches: trunk
changeset: 753929:6e834492d7b1
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Apr 14 08:26:42 2010 +0000
description:
EXAMPLE -> EXAMPLES, GCC -> gcc(1), and minor markup changes.
diffstat:
share/man/man3/fast_divide32.3 | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diffs (48 lines):
diff -r 294832ef724e -r 6e834492d7b1 share/man/man3/fast_divide32.3
--- a/share/man/man3/fast_divide32.3 Wed Apr 14 08:14:26 2010 +0000
+++ b/share/man/man3/fast_divide32.3 Wed Apr 14 08:26:42 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: fast_divide32.3,v 1.4 2010/03/20 14:45:18 jruoho Exp $
+.\" $NetBSD: fast_divide32.3,v 1.5 2010/04/14 08:26:42 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 March 19, 2010
+.Dd April 14, 2010
.Dt FAST_DIVIDE32 3
.Os
.Sh NAME
@@ -55,7 +55,9 @@
.Fa v / Fa div
and
.Fa v % Fa div
-using optimised CPU instructions.
+using optimised
+.Tn CPU
+instructions.
The constants
.Fa m ,
.Fa s1 ,
@@ -73,10 +75,14 @@
a plain division instruction, but requires less time to execute.
The code for constant
.Fa div
-arguments should be equivalent to the assembly created by GCC.
-.Sh EXAMPLE
-The following example computes q=a/b and r=a%b:
-.Bd -literal
+arguments should be equivalent to the assembly created by
+.Xr gcc 1 .
+.Sh EXAMPLES
+The following example computes
+.Va q = a / b
+and
+.Va r = a % b :
+.Bd -literal -offset indent
uint32_t a, b, q, r, m;
uint8_t s1, s2;
Home |
Main Index |
Thread Index |
Old Index