Re: [AD] minor issues

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Chris wrote:

Maybe, but remember: memset only works properly on 8-bit bitmaps (and 24/32 if setting a shade of gray, and 16 if setting white or black only). If you try to pass a 16/24/32 bit value, it'll chop all but the LSB and copy that to every byte. AFAIK, there are asm instructions to copy 16 and 32-bit values en mass, but we'd have to supply functions for them.

There is also wmemset and sizeof(wchar_t) == 4, but it's not an improvement over current code.


--
Milan Mimica







Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/