* cxgbe_fls - find last (most-significant) bit set * @x: the word to search * * This is defined the same way as ffs. * Note cxgbe_fls(0) = 0, cxgbe_fls(1) = 1, cxgbe_fls(0x80000000) = 32. */
| 197 | * Note cxgbe_fls(0) = 0, cxgbe_fls(1) = 1, cxgbe_fls(0x80000000) = 32. |
| 198 | */ |
| 199 | static inline int cxgbe_fls(int x) |
| 200 | { |
| 201 | return x ? sizeof(x) * 8 - rte_clz32(x) : 0; |
| 202 | } |
| 203 | |
| 204 | static inline unsigned long ilog2(unsigned long n) |
| 205 | { |
no test coverage detected