Rev 772 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 772 | Rev 1310 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | #define _BITOPS_H_ |
30 | #define _BITOPS_H_ |
| 31 | 31 | ||
| 32 | #include <typedefs.h> |
32 | #include <typedefs.h> |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | /** Return position of first non-zero bit from left. |
35 | /** Return position of first non-zero bit from left (i.e. [log_2(arg)]). |
| 36 | * |
36 | * |
| 37 | * If number is zero, it returns 0 |
37 | * If number is zero, it returns 0 |
| 38 | */ |
38 | */ |
| 39 | static inline int fnzb32(__u32 arg) |
39 | static inline int fnzb32(__u32 arg) |
| 40 | { |
40 | { |