RE: [AD] improvements on alpha blending...

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


>  - Replace all `/ 256' by `>> 8' (the compiler can't
> do this automatically because x>>8 != x/256 if x<0).

Blenders should use unsigned numbers. I believe most do.
Shifts would get emitted by the C/C++ compiler then.

-- 
Lyrian 



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