[SDL] Alpha blending bug - fixed?
Alex Volkov
avcp-sdlmail at usa.net
Mon Dec 4 09:51:33 PST 2006
Frank Mehnert wrote:
> > + : /* nothing */ : "m" (amask), "rm" ((Uint32) sf->Ashift) );
>
> "rm" is senseless as the compiler can never choose "m".
> It _must_ choose "r" since using "m" he would complain
> memory input 1 is not directly addressable
That is not entirely correct, Frank. The compiler may elect to pre-calculate
((Uint32) sf->Ashift) and put it in a temp stack var to be used later in the
MOVD. That is if the compiler decides it would make code faster, for
example, not that it would make any difference in this case.
--Alex.
More information about the SDL
mailing list