|
ginnOS
The reference: libc, the libraries and the kernel
|
pixel arithmetic shared by the libgfx sources. More...
#include "gfx.h"Go to the source code of this file.
pixel arithmetic shared by the libgfx sources.
the helpers work on two channels at once: red and blue in one 32-bit word (mask 0x00FF00FF), alpha and green in another. each channel has 16 bits of room, so a product of two bytes does not spill into the next.