This repository was archived by the owner on Jun 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +120
-0
lines changed Expand file tree Collapse file tree 2 files changed +120
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,66 @@ This is defined the same way as ffs
21
21
- return 32..1 to indicate bit 31..0 most significant bit set
22
22
- return 0 to indicate no bits set
23
23
24
+ .. _`fls64` :
25
+
26
+ fls64
27
+ =====
28
+
29
+ .. c :function :: int fls64 (u64 n)
30
+
31
+ find last bit set in a 64-bit value
32
+
33
+ :param u64 n:
34
+ the value to search
35
+
36
+ .. _`fls64.this-is-defined-the-same-way-as-ffs`:
37
+
38
+ This is defined the same way as ffs
39
+ -----------------------------------
40
+
41
+ - return 64..1 to indicate bit 63..0 most significant bit set
42
+ - return 0 to indicate no bits set
43
+
44
+ .. _`ffs`:
45
+
46
+ ffs
47
+ ===
48
+
49
+ .. c:function:: int ffs(int x)
50
+
51
+ find first bit set
52
+
53
+ :param int x:
54
+ the word to search
55
+
56
+ .. _`ffs.description`:
57
+
58
+ Description
59
+ -----------
60
+
61
+ - return 32..1 to indicate bit 31..0 most least significant bit set
62
+ - return 0 to indicate no bits set
63
+
64
+ .. _`__ffs`:
65
+
66
+ __ffs
67
+ =====
68
+
69
+ .. c:function:: int __ffs(unsigned long x)
70
+
71
+ find first bit set
72
+
73
+ :param unsigned long x:
74
+ the word to search
75
+
76
+ .. _`__ffs.description`:
77
+
78
+ Description
79
+ -----------
80
+
81
+ - return 31..0 to indicate bit 31..0 most least significant bit set
82
+ - if no bits are set in x, the result is undefined
83
+
24
84
.. _`__fls`:
25
85
26
86
__fls
Original file line number Diff line number Diff line change 1
1
.. -*- coding: utf-8; mode: rst -*-
2
2
.. src-file: arch/mn10300/include/asm/bitops.h
3
3
4
+ .. _`__ffs` :
5
+
6
+ __ffs
7
+ =====
8
+
9
+ .. c :function :: unsigned long __ffs (unsigned long x)
10
+
11
+ find first bit set
12
+
13
+ :param unsigned long x:
14
+ the word to search
15
+
16
+ .. _`__ffs.description`:
17
+
18
+ Description
19
+ -----------
20
+
21
+ - return 31..0 to indicate bit 31..0 most least significant bit set
22
+ - if no bits are set in x, the result is undefined
23
+
24
+ .. _`fls`:
25
+
26
+ fls
27
+ ===
28
+
29
+ .. c:function:: int fls(int x)
30
+
31
+ find last bit set
32
+
33
+ :param int x:
34
+ the word to search
35
+
36
+ .. _`fls.this-is-defined-the-same-way-as-ffs`:
37
+
38
+ This is defined the same way as ffs
39
+ -----------------------------------
40
+
41
+ - return 32..1 to indicate bit 31..0 most significant bit set
42
+ - return 0 to indicate no bits set
43
+
4
44
.. _`__fls`:
5
45
6
46
__fls
@@ -20,5 +60,25 @@ Description
20
60
21
61
Undefined if no set bit exists, so code should check against 0 first.
22
62
63
+ .. _`ffs`:
64
+
65
+ ffs
66
+ ===
67
+
68
+ .. c:function:: int ffs(int x)
69
+
70
+ find first bit set
71
+
72
+ :param int x:
73
+ the word to search
74
+
75
+ .. _`ffs.description`:
76
+
77
+ Description
78
+ -----------
79
+
80
+ - return 32..1 to indicate bit 31..0 most least significant bit set
81
+ - return 0 to indicate no bits set
82
+
23
83
.. This file was automatic generated / don't edit.
24
84
You can’t perform that action at this time.
0 commit comments