BLT32BITTESTER_SSE2

CPUblit Low-level image composing functions

uint[4] BLT32BITTESTER_SSE2;

Meta

Authors

Laszlo Szeremi Contains 2, 3, and 4 operand functions. All blitter follows this formula: dest1 = (dest & mask) | src Two plus one operand blitter is done via evaluation on systems that don't support vector operations. Alpha-blending function formula: dest1 = (src * (1 + alpha) + dest * (256 - alpha)) >> 8 Where it was possible I implemented vector support. Due to various quirks I needed (such as the ability of load unaligned values, and load less than 128/64bits), I often had to rely on assembly. As the functions themselves aren't too complicated it wasn't an impossible task, but makes debugging time-consuming. See specific functions for more information.