1 /** NOTE: This file is meant to be included by users **/
3 /*****************************************************************************
6 * _soft16_pt_<description>_<src>_<dst>[_<modifier>]()
10 * _soft16_scanline_<description>_<src>_<dst>[_<modifier>]()
12 ****************************************************************************/
13 static always_inline void
14 _soft16_pt_fill_solid_solid(DATA16 *dst, DATA16 rgb565)
20 _soft16_scanline_fill_solid_solid(DATA16 *dst, int size, DATA16 rgb565)
27 if ((long)start & 0x2)
34 end = start + (size & ~7);
36 rgb565_double = (rgb565 << 16) | rgb565;
40 DATA32 *p = (DATA32 *)start;
50 end = start + (size & 7);
51 for (; start < end; start++)
55 static always_inline void
56 _soft16_pt_fill_transp_solid(DATA16 *dst, DATA32 rgb565_unpack, DATA8 alpha)
60 d = RGB_565_UNPACK(*dst);
61 d = RGB_565_UNPACKED_BLEND(rgb565_unpack, d, alpha);
62 *dst = RGB_565_PACK(d);
66 _soft16_scanline_fill_transp_solid(DATA16 *dst, int size, DATA32 rgb565_unpack, DATA8 alpha)
72 end = start + (size & ~7);
78 _soft16_pt_fill_transp_solid(start, rgb565_unpack, alpha);
83 end = start + (size & 7);
84 for (; start < end; start++)
85 _soft16_pt_fill_transp_solid(start, rgb565_unpack, alpha);