Made the SDL_memset4() comment even clearer so we don't accidentally replace it with memset() in the future.
This commit is contained in:
parent
98053e8a85
commit
9c43b29ef9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue