MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / lcd_bgr565swap

Function lcd_bgr565swap

core/lcd.c:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35static 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
40static inline uint32_t lcd_bgr888swap(uint32_t bgr888, uint32_t mask) {
41 uint32_t diff = (bgr888 ^ (bgr888 >> 16)) & mask;

Callers 2

emu_lcd_drawmemFunction · 0.85
lcd_wordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected