src/atomic/SDL_spinlock.c
changeset 8477 ad08f0d710f3
parent 8460 f483e8bdae3c
parent 7191 75360622e65f
child 8535 e8ee0708ef5c
     1.1 --- a/src/atomic/SDL_spinlock.c	Sat Jun 08 14:34:09 2013 -0400
     1.2 +++ b/src/atomic/SDL_spinlock.c	Mon Aug 12 22:29:55 2013 -0400
     1.3 @@ -76,11 +76,11 @@
     1.4      return (result == 0);
     1.5  
     1.6  #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
     1.7 -	int result;
     1.8 -	__asm__ __volatile__(
     1.9 +    int result;
    1.10 +    __asm__ __volatile__(
    1.11          "lock ; xchgl %0, (%1)\n"
    1.12          : "=r" (result) : "r" (lock), "0" (1) : "cc", "memory");
    1.13 -	return (result == 0);
    1.14 +    return (result == 0);
    1.15  
    1.16  #elif defined(__MACOSX__) || defined(__IPHONEOS__)
    1.17      /* Maybe used for PowerPC, but the Intel asm or gcc atomics are favored. */
    1.18 @@ -114,10 +114,10 @@
    1.19  
    1.20  #elif HAVE_GCC_ATOMICS || HAVE_GCC_SYNC_LOCK_TEST_AND_SET
    1.21      __sync_lock_release(lock);
    1.22 -    
    1.23 +
    1.24  #elif HAVE_PTHREAD_SPINLOCK
    1.25      pthread_spin_unlock(lock);
    1.26 -	
    1.27 +
    1.28  #else
    1.29      *lock = 0;
    1.30  #endif