| 34 | } |
| 35 | |
| 36 | static inline bitmap_word bitmap_bswap(bitmap_word w) |
| 37 | { |
| 38 | if (BITMAP_WORD_BITS == 32) |
| 39 | return (ENDIAN_CAST bitmap_word)cpu_to_be32(w); |
| 40 | else if (BITMAP_WORD_BITS == 64) |
| 41 | return (ENDIAN_CAST bitmap_word)cpu_to_be64(w); |
| 42 | } |
| 43 | |
| 44 | #define BITMAP_WORD(_bm, _n) ((_bm)[(_n) / BITMAP_WORD_BITS].w) |
| 45 | #define BITMAP_WORDBIT(_n) \ |
no test coverage detected