| 205 | } |
| 206 | |
| 207 | static inline int |
| 208 | bitpos(u_daddr_t mask) |
| 209 | { |
| 210 | |
| 211 | switch (sizeof(mask)) { |
| 212 | #ifdef HAVE_INLINE_FFSLL |
| 213 | case sizeof(long long): |
| 214 | return (ffsll(mask) - 1); |
| 215 | #endif |
| 216 | #ifdef HAVE_INLINE_FFS |
| 217 | case sizeof(int): |
| 218 | return (ffs(mask) - 1); |
| 219 | #endif |
| 220 | default: |
| 221 | return (generic_bitpos(mask)); |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | /* |
| 226 | * blist_create() - create a blist capable of handling up to the specified |
no test coverage detected