]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/ffs.3.patch
e5cd57dcbb7ad98c544a74b65abc5c02713fa120
[apple/libc.git] / string / FreeBSD / ffs.3.patch
1 --- ffs.3.bsdnew 2009-11-30 13:52:21.000000000 -0800
2 +++ ffs.3 2009-11-30 13:56:29.000000000 -0800
3 @@ -36,46 +36,38 @@
4 .Sh NAME
5 .Nm ffs ,
6 .Nm ffsl ,
7 -.Nm ffsll ,
8 .Nm fls ,
9 -.Nm flsl ,
10 -.Nm flsll
11 +.Nm flsl
12 .Nd find first or last bit set in a bit string
13 .Sh LIBRARY
14 .Lb libc
15 .Sh SYNOPSIS
16 .In strings.h
17 .Ft int
18 -.Fn ffs "int value"
19 +.Fn ffs "int i"
20 .Ft int
21 -.Fn ffsl "long value"
22 +.Fn ffsl "long i"
23 .Ft int
24 +.Fn fls "int i"
25 .Ft int
26 -.Fn ffsll "long long value"
27 -.Fn fls "int value"
28 -.Ft int
29 -.Fn flsl "long value"
30 -.Ft int
31 -.Fn flsll "long long value"
32 +.Fn flsl "long i"
33 .Sh DESCRIPTION
34 The
35 -.Fn ffs ,
36 -.Fn ffsl
37 +.Fn ffs
38 and
39 -.Fn ffsll
40 +.Fn ffsl
41 functions find the first bit set
42 (beginning with the least significant bit)
43 in
44 -.Fa value
45 +.Fa i
46 and return the index of that bit.
47 .Pp
48 The
49 -.Fn fls ,
50 -.Fn flsl
51 +.Fn fls
52 and
53 -.Fn flsll
54 +.Fn flsl
55 functions find the last bit set in
56 -.Fa value
57 +.Fa i
58 and return the index of that bit.
59 .Pp
60 Bits are numbered starting at 1 (the least significant bit).
61 @@ -98,14 +90,8 @@ compliance.
62 .Pp
63 The
64 .Fn ffsl ,
65 -.Fn fls
66 +.Fn fls ,
67 and
68 .Fn flsl
69 functions appeared in
70 .Fx 5.3 .
71 -The
72 -.Fn ffsll
73 -and
74 -.Fn flsll
75 -functions appeared in
76 -.Fx 7.1 .