* Convert a depth to a one byte long mask * Example: 4 will be converted to 0xF0 */
| 1127 | * Example: 4 will be converted to 0xF0 |
| 1128 | */ |
| 1129 | static uint8_t __attribute__((pure)) |
| 1130 | depth_to_mask_1b(uint8_t depth) |
| 1131 | { |
| 1132 | /* To calculate a mask start with a 1 on the left hand side and right |
| 1133 | * shift while populating the left hand side with 1's |
| 1134 | */ |
| 1135 | return (signed char)0x80 >> (depth - 1); |
| 1136 | } |
| 1137 | |
| 1138 | /* |
| 1139 | * Find a less specific rule |
no outgoing calls
no test coverage detected