| 198 | #define HAVE_INLINE_FFS |
| 199 | |
| 200 | static __inline __pure2 int |
| 201 | ffs(int mask) |
| 202 | { |
| 203 | /* |
| 204 | * Note that gcc-2's builtin ffs would be used if we didn't declare |
| 205 | * this inline or turn off the builtin. The builtin is faster but |
| 206 | * broken in gcc-2.4.5 and slower but working in gcc-2.5 and later |
| 207 | * versions. |
| 208 | */ |
| 209 | return (mask == 0 ? mask : (int)bsfl((u_int)mask) + 1); |
| 210 | } |
| 211 | |
| 212 | #define HAVE_INLINE_FFSL |
| 213 |
no test coverage detected