| 33 | } |
| 34 | |
| 35 | static inline uint32_t lcd_bgr565swap(uint32_t bgr565, uint32_t mask) { |
| 36 | uint32_t diff = (bgr565 ^ (bgr565 >> 11)) & mask; |
| 37 | return bgr565 ^ diff ^ (diff << 11); |
| 38 | } |
| 39 | |
| 40 | static inline uint32_t lcd_bgr888swap(uint32_t bgr888, uint32_t mask) { |
| 41 | uint32_t diff = (bgr888 ^ (bgr888 >> 16)) & mask; |
no outgoing calls
no test coverage detected