summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-10-12 15:08:41 +0000
committerru <ru@FreeBSD.org>2006-10-12 15:08:41 +0000
commitd510dd202fb5c5c32490f50c12f24b1def374122 (patch)
treea52b401aedc1c24f672e77572abab369635d808f /lib/libc
parentf2378ce74656e6e1c234a5f576380c252c5a4965 (diff)
downloadFreeBSD-src-d510dd202fb5c5c32490f50c12f24b1def374122.zip
FreeBSD-src-d510dd202fb5c5c32490f50c12f24b1def374122.tar.gz
Don't say "rightmost" when referring to the least significant bit.
PR: docs/94803 MFC after: 3 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/ffs.39
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libc/string/ffs.3 b/lib/libc/string/ffs.3
index 7199bf5..8fc4b22 100644
--- a/lib/libc/string/ffs.3
+++ b/lib/libc/string/ffs.3
@@ -34,7 +34,7 @@
.\" @(#)ffs.3 8.2 (Berkeley) 4/19/94
.\" $FreeBSD$
.\"
-.Dd January 13, 2004
+.Dd October 12, 2006
.Dt FFS 3
.Os
.Sh NAME
@@ -60,7 +60,9 @@ The
.Fn ffs
and
.Fn ffsl
-functions find the first bit set in
+functions find the first bit set
+(beginning with the least significant bit)
+in
.Fa value
and return the index of that bit.
.Pp
@@ -72,8 +74,7 @@ functions find the last bit set in
.Fa value
and return the index of that bit.
.Pp
-Bits are numbered starting from 1, starting at the right-most
-(least significant) bit.
+Bits are numbered starting at 1 (the least significant bit).
A return value of zero from any of these functions means that the
argument was zero.
.Sh SEE ALSO
OpenPOWER on IntegriCloud