Corrected a comment.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 29 Jun 2018 16:55:55 -0400
changeset 12041f34f7903df97
parent 12040 58425859a4e5
child 12042 23bc0cb86dc6
Corrected a comment.
src/atomic/SDL_spinlock.c
     1.1 --- a/src/atomic/SDL_spinlock.c	Mon Jun 25 23:00:38 2018 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Fri Jun 29 16:55:55 2018 -0400
     1.3 @@ -122,7 +122,7 @@
     1.4  
     1.5  /* "REP NOP" is PAUSE, coded for tools that don't know it by that name. */
     1.6  #if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
     1.7 -    #define PAUSE_INSTRUCTION() __asm__ __volatile__("pause\n")  /* Clang lets you do REP NOP, GCC wants PAUSE. */
     1.8 +    #define PAUSE_INSTRUCTION() __asm__ __volatile__("pause\n")  /* Some assemblers can't do REP NOP, so go with PAUSE. */
     1.9  #elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
    1.10      #define PAUSE_INSTRUCTION() _mm_pause()  /* this is actually "rep nop" and not a SIMD instruction. No inline asm in MSVC x86-64! */
    1.11  #elif defined(__WATCOMC__) && defined(__386__)