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

Function panel_reverse_addr

core/panel.c:204–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static inline uint32_t panel_reverse_addr(uint32_t addr, uint32_t upperBound, uint32_t dirMask) {
205 assert(dirMask == 0 || ~dirMask == 0);
206 return (addr ^ dirMask) + (upperBound & dirMask);
207}
208
209static inline void panel_buffer_pixel_chunk(uint8_t (* restrict srcPixel)[3], uint32_t * restrict dstPixel, uint8_t redShift) {
210 uint8_t blueShift = redShift ^ (PANEL_DISP_RED ^ PANEL_DISP_BLUE);

Callers 3

panel_start_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected