include/SDL_stdinc.h
changeset 7015 e3cba60c0f0a
parent 7011 82bbfbbc720e
child 7036 8c891504e325
equal deleted inserted replaced
7014:3e0d048e1c14 7015:e3cba60c0f0a
   340         : "0" (dst), "1" (val), "2" (SDL_static_cast(Uint32, len))
   340         : "0" (dst), "1" (val), "2" (SDL_static_cast(Uint32, len))
   341         : "memory"
   341         : "memory"
   342     );
   342     );
   343 /* !!! FIXME: amd64? */
   343 /* !!! FIXME: amd64? */
   344 #else
   344 #else
   345     unsigned int _count = (len);
   345     size_t _n = (len + 3) / 4;
   346     unsigned int _n = (_count + 3) / 4;
       
   347     Uint32 *_p = SDL_static_cast(Uint32 *, dst);
   346     Uint32 *_p = SDL_static_cast(Uint32 *, dst);
   348     Uint32 _val = (val);
   347     Uint32 _val = (val);
   349     if (len == 0)
   348     if (len == 0)
   350         return;
   349         return;
   351     switch (_count % 4)
   350     switch (len % 4)
   352     {
   351     {
   353         case 0: do {    *_p++ = _val;
   352         case 0: do {    *_p++ = _val;
   354         case 3:         *_p++ = _val;
   353         case 3:         *_p++ = _val;
   355         case 2:         *_p++ = _val;
   354         case 2:         *_p++ = _val;
   356         case 1:         *_p++ = _val;
   355         case 1:         *_p++ = _val;