Made the SDL_memset4() comment even clearer so we don't accidentally replace it with memset() in the future.
authorSam Lantinga <slouken@libsdl.org>
Tue, 09 Jul 2013 08:01:40 -0700
changeset 7386ff3af8304053
parent 7385 6e90315f859a
child 7387 85303f85cb70
Made the SDL_memset4() comment even clearer so we don't accidentally replace it with memset() in the future.
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Tue Jul 09 07:13:58 2013 -0700
     1.2 +++ b/include/SDL_stdinc.h	Tue Jul 09 08:01:40 2013 -0700
     1.3 @@ -254,7 +254,7 @@
     1.4  #define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x)))
     1.5  #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
     1.6  
     1.7 -/* Note that the semantics are different from memset() in that this is a 32-bit assignment */
     1.8 +/* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
     1.9  SDL_FORCE_INLINE void SDL_memset4(void *dst, int val, size_t dwords)
    1.10  {
    1.11  #if defined(__GNUC__) && defined(i386)