Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Made the SDL_memset4() comment even clearer so we don't accidentally …
Browse files Browse the repository at this point in the history
…replace it with memset() in the future.
  • Loading branch information
slouken committed Jul 9, 2013
1 parent f3c9971 commit 3268d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_stdinc.h
Expand Up @@ -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)
Expand Down

0 comments on commit 3268d6e

Please sign in to comment.