Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Made the SDL_memset4() comment even clearer so we don't accidentally …

…replace it with memset() in the future.
  • Loading branch information
slouken committed Jul 9, 2013
1 parent f3c9971 commit 3268d6eb9e3e2c48eca9bcc26ce867c1b183bbdf
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/SDL_stdinc.h
@@ -254,7 +254,7 @@ extern DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len);
#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)

0 comments on commit 3268d6e

Please sign in to comment.