Clear the 'n' least significant bits of a UWORD. * Precondition: 0 < n <= UWORD_BIT */
| 42 | * Precondition: 0 < n <= UWORD_BIT |
| 43 | */ |
| 44 | static inline UWORD LSBclear(UWORD x, size_t n) { |
| 45 | return (UWORD)(x >> 1 >> (n - 1) << 1 << (n - 1)); |
| 46 | } |
| 47 | |
| 48 | /* Clear all but the 'n' least significant bits of a UWORD. |
| 49 | * Precondition: 0 < n <= UWORD_BIT |
no outgoing calls
no test coverage detected