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 7386 ff3af8304053
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
--- a/include/SDL_stdinc.h	Tue Jul 09 07:13:58 2013 -0700
+++ b/include/SDL_stdinc.h	Tue Jul 09 08:01:40 2013 -0700
@@ -254,7 +254,7 @@
 #define SDL_zero(x) SDL_memset(&(x), 0, sizeof((x)))
 #define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
 
-/* Note that the semantics are different from memset() in that this is a 32-bit assignment */
+/* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
 SDL_FORCE_INLINE void SDL_memset4(void *dst, int val, size_t dwords)
 {
 #if defined(__GNUC__) && defined(i386)