Commit 46b21a25 authored by Bob Pendleton's avatar Bob Pendleton

This is a cosmetic fix, I found a stupid typo

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403687
parent 29a81c81
...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value) ...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value)
#ifdef nativeExchange8 #ifdef nativeExchange8
return nativeExchange8(ptr, value); return nativeExchange8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr) ...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr)
#ifdef nativeFetchThenIncrement8 #ifdef nativeFetchThenIncrement8
return nativeFetchThenIncrement8(ptr); return nativeFetchThenIncrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr) ...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr)
#ifdef nativeFetchThenDecrement8 #ifdef nativeFetchThenDecrement8
return nativeFetchThenDecrement8(ptr); return nativeFetchThenDecrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value) ...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenAdd8 #ifdef nativeFetchThenAdd8
return nativeFetchThenAdd8(ptr, value); return nativeFetchThenAdd8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value) ...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenSubtract8 #ifdef nativeFetchThenSubtract8
return nativeFetchThenSubtract8(ptr, value); return nativeFetchThenSubtract8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr) ...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr)
#ifdef nativeIncrementThenFetch8 #ifdef nativeIncrementThenFetch8
return nativeIncrementThenFetch8(ptr); return nativeIncrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr) ...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr)
#ifdef nativeDecrementThenFetch8 #ifdef nativeDecrementThenFetch8
return nativeDecrementThenFetch8(ptr); return nativeDecrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeAddThenFetch8 #ifdef nativeAddThenFetch8
return nativeAddThenFetch8(ptr, value); return nativeAddThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeSubtractThenFetch8 #ifdef nativeSubtractThenFetch8
return nativeSubtractThenFetch8(ptr, value); return nativeSubtractThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value) ...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value)
#ifdef nativeExchange16 #ifdef nativeExchange16
return nativeExchange16(ptr, value); return nativeExchange16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr) ...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr)
#ifdef nativeFetchThenIncrement16 #ifdef nativeFetchThenIncrement16
return nativeFetchThenIncrement16(ptr); return nativeFetchThenIncrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr) ...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr)
#ifdef nativeFetchThenDecrement16 #ifdef nativeFetchThenDecrement16
return nativeFetchThenDecrement16(ptr); return nativeFetchThenDecrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value) ...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenAdd16 #ifdef nativeFetchThenAdd16
return nativeFetchThenAdd16(ptr, value); return nativeFetchThenAdd16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value) ...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenSubtract16 #ifdef nativeFetchThenSubtract16
return nativeFetchThenSubtract16(ptr, value); return nativeFetchThenSubtract16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr) ...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr)
#ifdef nativeIncrementThenFetch16 #ifdef nativeIncrementThenFetch16
return nativeIncrementThenFetch16(ptr); return nativeIncrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr) ...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr)
#ifdef nativeDecrementThenFetch16 #ifdef nativeDecrementThenFetch16
return nativeDecrementThenFetch16(ptr); return nativeDecrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeAddThenFetch16 #ifdef nativeAddThenFetch16
return nativeAddThenFetch16(ptr, value); return nativeAddThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeSubtractThenFetch16 #ifdef nativeSubtractThenFetch16
return nativeSubtractThenFetch16(ptr, value); return nativeSubtractThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value) ...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value)
#ifdef nativeExchange32 #ifdef nativeExchange32
return nativeExchange32(ptr, value); return nativeExchange32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr) ...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr)
#ifdef nativeFetchThenIncrement32 #ifdef nativeFetchThenIncrement32
return nativeFetchThenIncrement32(ptr); return nativeFetchThenIncrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr) ...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr)
#ifdef nativeFetchThenDecrement32 #ifdef nativeFetchThenDecrement32
return nativeFetchThenDecrement32(ptr); return nativeFetchThenDecrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value) ...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenAdd32 #ifdef nativeFetchThenAdd32
return nativeFetchThenAdd32(ptr, value); return nativeFetchThenAdd32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value) ...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenSubtract32 #ifdef nativeFetchThenSubtract32
return nativeFetchThenSubtract32(ptr, value); return nativeFetchThenSubtract32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr) ...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr)
#ifdef nativeIncrementThenFetch32 #ifdef nativeIncrementThenFetch32
return nativeIncrementThenFetch32(ptr); return nativeIncrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr) ...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr)
#ifdef nativeDecrementThenFetch32 #ifdef nativeDecrementThenFetch32
return nativeDecrementThenFetch32(ptr); return nativeDecrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeAddThenFetch32 #ifdef nativeAddThenFetch32
return nativeAddThenFetch32(ptr, value); return nativeAddThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeSubtractThenFetch32 #ifdef nativeSubtractThenFetch32
return nativeSubtractThenFetch32(ptr, value); return nativeSubtractThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value) ...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value)
#ifdef nativeExchange64 #ifdef nativeExchange64
return nativeExchange64(ptr, value); return nativeExchange64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr) ...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr)
#ifdef nativeFetchThenIncrement64 #ifdef nativeFetchThenIncrement64
return nativeFetchThenIncrement64(ptr); return nativeFetchThenIncrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr) ...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr)
#ifdef nativeFetchThenDecrement64 #ifdef nativeFetchThenDecrement64
return nativeFetchThenDecrement64(ptr); return nativeFetchThenDecrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value) ...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenAdd64 #ifdef nativeFetchThenAdd64
return nativeFetchThenAdd64(ptr, value); return nativeFetchThenAdd64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value) ...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenSubtract64 #ifdef nativeFetchThenSubtract64
return nativeFetchThenSubtract64(ptr, value); return nativeFetchThenSubtract64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr) ...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr)
#ifdef nativeIncrementThenFetch64 #ifdef nativeIncrementThenFetch64
return nativeIncrementThenFetch64(ptr); return nativeIncrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr) ...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr)
#ifdef nativeDecrementThenFetch64 #ifdef nativeDecrementThenFetch64
return nativeDecrementThenFetch64(ptr); return nativeDecrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeAddThenFetch64 #ifdef nativeAddThenFetch64
return nativeAddThenFetch64(ptr, value); return nativeAddThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeSubtractThenFetch64 #ifdef nativeSubtractThenFetch64
return nativeSubtractThenFetch64(ptr, value); return nativeSubtractThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
......
...@@ -142,7 +142,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value) ...@@ -142,7 +142,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value)
#ifdef nativeExchange8 #ifdef nativeExchange8
return nativeExchange8(ptr, value); return nativeExchange8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -213,7 +213,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr) ...@@ -213,7 +213,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr)
#ifdef nativeFetchThenIncrement8 #ifdef nativeFetchThenIncrement8
return nativeFetchThenIncrement8(ptr); return nativeFetchThenIncrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -230,7 +230,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr) ...@@ -230,7 +230,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr)
#ifdef nativeFetchThenDecrement8 #ifdef nativeFetchThenDecrement8
return nativeFetchThenDecrement8(ptr); return nativeFetchThenDecrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -247,7 +247,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value) ...@@ -247,7 +247,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenAdd8 #ifdef nativeFetchThenAdd8
return nativeFetchThenAdd8(ptr, value); return nativeFetchThenAdd8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -264,7 +264,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value) ...@@ -264,7 +264,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenSubtract8 #ifdef nativeFetchThenSubtract8
return nativeFetchThenSubtract8(ptr, value); return nativeFetchThenSubtract8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -281,7 +281,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr) ...@@ -281,7 +281,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr)
#ifdef nativeIncrementThenFetch8 #ifdef nativeIncrementThenFetch8
return nativeIncrementThenFetch8(ptr); return nativeIncrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -298,7 +298,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr) ...@@ -298,7 +298,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr)
#ifdef nativeDecrementThenFetch8 #ifdef nativeDecrementThenFetch8
return nativeDecrementThenFetch8(ptr); return nativeDecrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -315,7 +315,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -315,7 +315,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeAddThenFetch8 #ifdef nativeAddThenFetch8
return nativeAddThenFetch8(ptr, value); return nativeAddThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -332,7 +332,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -332,7 +332,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeSubtractThenFetch8 #ifdef nativeSubtractThenFetch8
return nativeSubtractThenFetch8(ptr, value); return nativeSubtractThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -351,7 +351,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value) ...@@ -351,7 +351,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value)
#ifdef nativeExchange16 #ifdef nativeExchange16
return nativeExchange16(ptr, value); return nativeExchange16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -422,7 +422,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr) ...@@ -422,7 +422,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr)
#ifdef nativeFetchThenIncrement16 #ifdef nativeFetchThenIncrement16
return nativeFetchThenIncrement16(ptr); return nativeFetchThenIncrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -439,7 +439,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr) ...@@ -439,7 +439,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr)
#ifdef nativeFetchThenDecrement16 #ifdef nativeFetchThenDecrement16
return nativeFetchThenDecrement16(ptr); return nativeFetchThenDecrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -456,7 +456,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value) ...@@ -456,7 +456,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenAdd16 #ifdef nativeFetchThenAdd16
return nativeFetchThenAdd16(ptr, value); return nativeFetchThenAdd16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -473,7 +473,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value) ...@@ -473,7 +473,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenSubtract16 #ifdef nativeFetchThenSubtract16
return nativeFetchThenSubtract16(ptr, value); return nativeFetchThenSubtract16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -490,7 +490,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr) ...@@ -490,7 +490,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr)
#ifdef nativeIncrementThenFetch16 #ifdef nativeIncrementThenFetch16
return nativeIncrementThenFetch16(ptr); return nativeIncrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -507,7 +507,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr) ...@@ -507,7 +507,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr)
#ifdef nativeDecrementThenFetch16 #ifdef nativeDecrementThenFetch16
return nativeDecrementThenFetch16(ptr); return nativeDecrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -524,7 +524,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -524,7 +524,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeAddThenFetch16 #ifdef nativeAddThenFetch16
return nativeAddThenFetch16(ptr, value); return nativeAddThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -541,7 +541,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -541,7 +541,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeSubtractThenFetch16 #ifdef nativeSubtractThenFetch16
return nativeSubtractThenFetch16(ptr, value); return nativeSubtractThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -560,7 +560,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value) ...@@ -560,7 +560,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value)
#ifdef nativeExchange32 #ifdef nativeExchange32
return nativeExchange32(ptr, value); return nativeExchange32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -631,7 +631,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr) ...@@ -631,7 +631,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr)
#ifdef nativeFetchThenIncrement32 #ifdef nativeFetchThenIncrement32
return nativeFetchThenIncrement32(ptr); return nativeFetchThenIncrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -648,7 +648,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr) ...@@ -648,7 +648,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr)
#ifdef nativeFetchThenDecrement32 #ifdef nativeFetchThenDecrement32
return nativeFetchThenDecrement32(ptr); return nativeFetchThenDecrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -665,7 +665,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value) ...@@ -665,7 +665,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenAdd32 #ifdef nativeFetchThenAdd32
return nativeFetchThenAdd32(ptr, value); return nativeFetchThenAdd32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -682,7 +682,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value) ...@@ -682,7 +682,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenSubtract32 #ifdef nativeFetchThenSubtract32
return nativeFetchThenSubtract32(ptr, value); return nativeFetchThenSubtract32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -699,7 +699,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr) ...@@ -699,7 +699,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr)
#ifdef nativeIncrementThenFetch32 #ifdef nativeIncrementThenFetch32
return nativeIncrementThenFetch32(ptr); return nativeIncrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -716,7 +716,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr) ...@@ -716,7 +716,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr)
#ifdef nativeDecrementThenFetch32 #ifdef nativeDecrementThenFetch32
return nativeDecrementThenFetch32(ptr); return nativeDecrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -733,7 +733,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -733,7 +733,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeAddThenFetch32 #ifdef nativeAddThenFetch32
return nativeAddThenFetch32(ptr, value); return nativeAddThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -750,7 +750,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -750,7 +750,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeSubtractThenFetch32 #ifdef nativeSubtractThenFetch32
return nativeSubtractThenFetch32(ptr, value); return nativeSubtractThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -770,7 +770,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value) ...@@ -770,7 +770,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value)
#ifdef nativeExchange64 #ifdef nativeExchange64
return nativeExchange64(ptr, value); return nativeExchange64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -841,7 +841,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr) ...@@ -841,7 +841,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr)
#ifdef nativeFetchThenIncrement64 #ifdef nativeFetchThenIncrement64
return nativeFetchThenIncrement64(ptr); return nativeFetchThenIncrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -858,7 +858,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr) ...@@ -858,7 +858,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr)
#ifdef nativeFetchThenDecrement64 #ifdef nativeFetchThenDecrement64
return nativeFetchThenDecrement64(ptr); return nativeFetchThenDecrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -875,7 +875,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value) ...@@ -875,7 +875,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenAdd64 #ifdef nativeFetchThenAdd64
return nativeFetchThenAdd64(ptr, value); return nativeFetchThenAdd64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -892,7 +892,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value) ...@@ -892,7 +892,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenSubtract64 #ifdef nativeFetchThenSubtract64
return nativeFetchThenSubtract64(ptr, value); return nativeFetchThenSubtract64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -909,7 +909,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr) ...@@ -909,7 +909,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr)
#ifdef nativeIncrementThenFetch64 #ifdef nativeIncrementThenFetch64
return nativeIncrementThenFetch64(ptr); return nativeIncrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -926,7 +926,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr) ...@@ -926,7 +926,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr)
#ifdef nativeDecrementThenFetch64 #ifdef nativeDecrementThenFetch64
return nativeDecrementThenFetch64(ptr); return nativeDecrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -943,7 +943,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -943,7 +943,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeAddThenFetch64 #ifdef nativeAddThenFetch64
return nativeAddThenFetch64(ptr, value); return nativeAddThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -960,7 +960,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -960,7 +960,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeSubtractThenFetch64 #ifdef nativeSubtractThenFetch64
return nativeSubtractThenFetch64(ptr, value); return nativeSubtractThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
......
...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value) ...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value)
#ifdef nativeExchange8 #ifdef nativeExchange8
return nativeExchange8(ptr, value); return nativeExchange8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr) ...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr)
#ifdef nativeFetchThenIncrement8 #ifdef nativeFetchThenIncrement8
return nativeFetchThenIncrement8(ptr); return nativeFetchThenIncrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr) ...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr)
#ifdef nativeFetchThenDecrement8 #ifdef nativeFetchThenDecrement8
return nativeFetchThenDecrement8(ptr); return nativeFetchThenDecrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value) ...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenAdd8 #ifdef nativeFetchThenAdd8
return nativeFetchThenAdd8(ptr, value); return nativeFetchThenAdd8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value) ...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenSubtract8 #ifdef nativeFetchThenSubtract8
return nativeFetchThenSubtract8(ptr, value); return nativeFetchThenSubtract8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr) ...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr)
#ifdef nativeIncrementThenFetch8 #ifdef nativeIncrementThenFetch8
return nativeIncrementThenFetch8(ptr); return nativeIncrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr) ...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr)
#ifdef nativeDecrementThenFetch8 #ifdef nativeDecrementThenFetch8
return nativeDecrementThenFetch8(ptr); return nativeDecrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeAddThenFetch8 #ifdef nativeAddThenFetch8
return nativeAddThenFetch8(ptr, value); return nativeAddThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeSubtractThenFetch8 #ifdef nativeSubtractThenFetch8
return nativeSubtractThenFetch8(ptr, value); return nativeSubtractThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value) ...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value)
#ifdef nativeExchange16 #ifdef nativeExchange16
return nativeExchange16(ptr, value); return nativeExchange16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr) ...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr)
#ifdef nativeFetchThenIncrement16 #ifdef nativeFetchThenIncrement16
return nativeFetchThenIncrement16(ptr); return nativeFetchThenIncrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr) ...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr)
#ifdef nativeFetchThenDecrement16 #ifdef nativeFetchThenDecrement16
return nativeFetchThenDecrement16(ptr); return nativeFetchThenDecrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value) ...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenAdd16 #ifdef nativeFetchThenAdd16
return nativeFetchThenAdd16(ptr, value); return nativeFetchThenAdd16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value) ...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenSubtract16 #ifdef nativeFetchThenSubtract16
return nativeFetchThenSubtract16(ptr, value); return nativeFetchThenSubtract16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr) ...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr)
#ifdef nativeIncrementThenFetch16 #ifdef nativeIncrementThenFetch16
return nativeIncrementThenFetch16(ptr); return nativeIncrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr) ...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr)
#ifdef nativeDecrementThenFetch16 #ifdef nativeDecrementThenFetch16
return nativeDecrementThenFetch16(ptr); return nativeDecrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeAddThenFetch16 #ifdef nativeAddThenFetch16
return nativeAddThenFetch16(ptr, value); return nativeAddThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeSubtractThenFetch16 #ifdef nativeSubtractThenFetch16
return nativeSubtractThenFetch16(ptr, value); return nativeSubtractThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value) ...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value)
#ifdef nativeExchange32 #ifdef nativeExchange32
return nativeExchange32(ptr, value); return nativeExchange32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr) ...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr)
#ifdef nativeFetchThenIncrement32 #ifdef nativeFetchThenIncrement32
return nativeFetchThenIncrement32(ptr); return nativeFetchThenIncrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr) ...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr)
#ifdef nativeFetchThenDecrement32 #ifdef nativeFetchThenDecrement32
return nativeFetchThenDecrement32(ptr); return nativeFetchThenDecrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value) ...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenAdd32 #ifdef nativeFetchThenAdd32
return nativeFetchThenAdd32(ptr, value); return nativeFetchThenAdd32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value) ...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenSubtract32 #ifdef nativeFetchThenSubtract32
return nativeFetchThenSubtract32(ptr, value); return nativeFetchThenSubtract32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr) ...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr)
#ifdef nativeIncrementThenFetch32 #ifdef nativeIncrementThenFetch32
return nativeIncrementThenFetch32(ptr); return nativeIncrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr) ...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr)
#ifdef nativeDecrementThenFetch32 #ifdef nativeDecrementThenFetch32
return nativeDecrementThenFetch32(ptr); return nativeDecrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeAddThenFetch32 #ifdef nativeAddThenFetch32
return nativeAddThenFetch32(ptr, value); return nativeAddThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeSubtractThenFetch32 #ifdef nativeSubtractThenFetch32
return nativeSubtractThenFetch32(ptr, value); return nativeSubtractThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value) ...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value)
#ifdef nativeExchange64 #ifdef nativeExchange64
return nativeExchange64(ptr, value); return nativeExchange64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr) ...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr)
#ifdef nativeFetchThenIncrement64 #ifdef nativeFetchThenIncrement64
return nativeFetchThenIncrement64(ptr); return nativeFetchThenIncrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr) ...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr)
#ifdef nativeFetchThenDecrement64 #ifdef nativeFetchThenDecrement64
return nativeFetchThenDecrement64(ptr); return nativeFetchThenDecrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value) ...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenAdd64 #ifdef nativeFetchThenAdd64
return nativeFetchThenAdd64(ptr, value); return nativeFetchThenAdd64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value) ...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenSubtract64 #ifdef nativeFetchThenSubtract64
return nativeFetchThenSubtract64(ptr, value); return nativeFetchThenSubtract64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr) ...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr)
#ifdef nativeIncrementThenFetch64 #ifdef nativeIncrementThenFetch64
return nativeIncrementThenFetch64(ptr); return nativeIncrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr) ...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr)
#ifdef nativeDecrementThenFetch64 #ifdef nativeDecrementThenFetch64
return nativeDecrementThenFetch64(ptr); return nativeDecrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeAddThenFetch64 #ifdef nativeAddThenFetch64
return nativeAddThenFetch64(ptr, value); return nativeAddThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeSubtractThenFetch64 #ifdef nativeSubtractThenFetch64
return nativeSubtractThenFetch64(ptr, value); return nativeSubtractThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
......
...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value) ...@@ -170,7 +170,7 @@ SDL_AtomicExchange8(Uint8 * ptr, Uint8 value)
#ifdef nativeExchange8 #ifdef nativeExchange8
return nativeExchange8(ptr, value); return nativeExchange8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr) ...@@ -241,7 +241,7 @@ SDL_AtomicFetchThenIncrement8(Uint8 * ptr)
#ifdef nativeFetchThenIncrement8 #ifdef nativeFetchThenIncrement8
return nativeFetchThenIncrement8(ptr); return nativeFetchThenIncrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr) ...@@ -258,7 +258,7 @@ SDL_AtomicFetchThenDecrement8(Uint8 * ptr)
#ifdef nativeFetchThenDecrement8 #ifdef nativeFetchThenDecrement8
return nativeFetchThenDecrement8(ptr); return nativeFetchThenDecrement8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value) ...@@ -275,7 +275,7 @@ SDL_AtomicFetchThenAdd8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenAdd8 #ifdef nativeFetchThenAdd8
return nativeFetchThenAdd8(ptr, value); return nativeFetchThenAdd8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value) ...@@ -292,7 +292,7 @@ SDL_AtomicFetchThenSubtract8(Uint8 * ptr, Uint8 value)
#ifdef nativeFetchThenSubtract8 #ifdef nativeFetchThenSubtract8
return nativeFetchThenSubtract8(ptr, value); return nativeFetchThenSubtract8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr) ...@@ -309,7 +309,7 @@ SDL_AtomicIncrementThenFetch8(Uint8 * ptr)
#ifdef nativeIncrementThenFetch8 #ifdef nativeIncrementThenFetch8
return nativeIncrementThenFetch8(ptr); return nativeIncrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr) ...@@ -326,7 +326,7 @@ SDL_AtomicDecrementThenFetch8(Uint8 * ptr)
#ifdef nativeDecrementThenFetch8 #ifdef nativeDecrementThenFetch8
return nativeDecrementThenFetch8(ptr); return nativeDecrementThenFetch8(ptr);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -343,7 +343,7 @@ SDL_AtomicAddThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeAddThenFetch8 #ifdef nativeAddThenFetch8
return nativeAddThenFetch8(ptr, value); return nativeAddThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value) ...@@ -360,7 +360,7 @@ SDL_AtomicSubtractThenFetch8(Uint8 * ptr, Uint8 value)
#ifdef nativeSubtractThenFetch8 #ifdef nativeSubtractThenFetch8
return nativeSubtractThenFetch8(ptr, value); return nativeSubtractThenFetch8(ptr, value);
#else #else
Uint8 tmp = 0;; Uint8 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value) ...@@ -379,7 +379,7 @@ SDL_AtomicExchange16(Uint16 * ptr, Uint16 value)
#ifdef nativeExchange16 #ifdef nativeExchange16
return nativeExchange16(ptr, value); return nativeExchange16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr) ...@@ -450,7 +450,7 @@ SDL_AtomicFetchThenIncrement16(Uint16 * ptr)
#ifdef nativeFetchThenIncrement16 #ifdef nativeFetchThenIncrement16
return nativeFetchThenIncrement16(ptr); return nativeFetchThenIncrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr) ...@@ -467,7 +467,7 @@ SDL_AtomicFetchThenDecrement16(Uint16 * ptr)
#ifdef nativeFetchThenDecrement16 #ifdef nativeFetchThenDecrement16
return nativeFetchThenDecrement16(ptr); return nativeFetchThenDecrement16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value) ...@@ -484,7 +484,7 @@ SDL_AtomicFetchThenAdd16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenAdd16 #ifdef nativeFetchThenAdd16
return nativeFetchThenAdd16(ptr, value); return nativeFetchThenAdd16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value) ...@@ -501,7 +501,7 @@ SDL_AtomicFetchThenSubtract16(Uint16 * ptr, Uint16 value)
#ifdef nativeFetchThenSubtract16 #ifdef nativeFetchThenSubtract16
return nativeFetchThenSubtract16(ptr, value); return nativeFetchThenSubtract16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr) ...@@ -518,7 +518,7 @@ SDL_AtomicIncrementThenFetch16(Uint16 * ptr)
#ifdef nativeIncrementThenFetch16 #ifdef nativeIncrementThenFetch16
return nativeIncrementThenFetch16(ptr); return nativeIncrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr) ...@@ -535,7 +535,7 @@ SDL_AtomicDecrementThenFetch16(Uint16 * ptr)
#ifdef nativeDecrementThenFetch16 #ifdef nativeDecrementThenFetch16
return nativeDecrementThenFetch16(ptr); return nativeDecrementThenFetch16(ptr);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -552,7 +552,7 @@ SDL_AtomicAddThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeAddThenFetch16 #ifdef nativeAddThenFetch16
return nativeAddThenFetch16(ptr, value); return nativeAddThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value) ...@@ -569,7 +569,7 @@ SDL_AtomicSubtractThenFetch16(Uint16 * ptr, Uint16 value)
#ifdef nativeSubtractThenFetch16 #ifdef nativeSubtractThenFetch16
return nativeSubtractThenFetch16(ptr, value); return nativeSubtractThenFetch16(ptr, value);
#else #else
Uint16 tmp = 0;; Uint16 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value) ...@@ -588,7 +588,7 @@ SDL_AtomicExchange32(Uint32 * ptr, Uint32 value)
#ifdef nativeExchange32 #ifdef nativeExchange32
return nativeExchange32(ptr, value); return nativeExchange32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr) ...@@ -659,7 +659,7 @@ SDL_AtomicFetchThenIncrement32(Uint32 * ptr)
#ifdef nativeFetchThenIncrement32 #ifdef nativeFetchThenIncrement32
return nativeFetchThenIncrement32(ptr); return nativeFetchThenIncrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr) ...@@ -676,7 +676,7 @@ SDL_AtomicFetchThenDecrement32(Uint32 * ptr)
#ifdef nativeFetchThenDecrement32 #ifdef nativeFetchThenDecrement32
return nativeFetchThenDecrement32(ptr); return nativeFetchThenDecrement32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value) ...@@ -693,7 +693,7 @@ SDL_AtomicFetchThenAdd32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenAdd32 #ifdef nativeFetchThenAdd32
return nativeFetchThenAdd32(ptr, value); return nativeFetchThenAdd32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value) ...@@ -710,7 +710,7 @@ SDL_AtomicFetchThenSubtract32(Uint32 * ptr, Uint32 value)
#ifdef nativeFetchThenSubtract32 #ifdef nativeFetchThenSubtract32
return nativeFetchThenSubtract32(ptr, value); return nativeFetchThenSubtract32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr) ...@@ -727,7 +727,7 @@ SDL_AtomicIncrementThenFetch32(Uint32 * ptr)
#ifdef nativeIncrementThenFetch32 #ifdef nativeIncrementThenFetch32
return nativeIncrementThenFetch32(ptr); return nativeIncrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr) ...@@ -744,7 +744,7 @@ SDL_AtomicDecrementThenFetch32(Uint32 * ptr)
#ifdef nativeDecrementThenFetch32 #ifdef nativeDecrementThenFetch32
return nativeDecrementThenFetch32(ptr); return nativeDecrementThenFetch32(ptr);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -761,7 +761,7 @@ SDL_AtomicAddThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeAddThenFetch32 #ifdef nativeAddThenFetch32
return nativeAddThenFetch32(ptr, value); return nativeAddThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value) ...@@ -778,7 +778,7 @@ SDL_AtomicSubtractThenFetch32(Uint32 * ptr, Uint32 value)
#ifdef nativeSubtractThenFetch32 #ifdef nativeSubtractThenFetch32
return nativeSubtractThenFetch32(ptr, value); return nativeSubtractThenFetch32(ptr, value);
#else #else
Uint32 tmp = 0;; Uint32 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value) ...@@ -798,7 +798,7 @@ SDL_AtomicExchange64(Uint64 * ptr, Uint64 value)
#ifdef nativeExchange64 #ifdef nativeExchange64
return nativeExchange64(ptr, value); return nativeExchange64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr) ...@@ -869,7 +869,7 @@ SDL_AtomicFetchThenIncrement64(Uint64 * ptr)
#ifdef nativeFetchThenIncrement64 #ifdef nativeFetchThenIncrement64
return nativeFetchThenIncrement64(ptr); return nativeFetchThenIncrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr) ...@@ -886,7 +886,7 @@ SDL_AtomicFetchThenDecrement64(Uint64 * ptr)
#ifdef nativeFetchThenDecrement64 #ifdef nativeFetchThenDecrement64
return nativeFetchThenDecrement64(ptr); return nativeFetchThenDecrement64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value) ...@@ -903,7 +903,7 @@ SDL_AtomicFetchThenAdd64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenAdd64 #ifdef nativeFetchThenAdd64
return nativeFetchThenAdd64(ptr, value); return nativeFetchThenAdd64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value) ...@@ -920,7 +920,7 @@ SDL_AtomicFetchThenSubtract64(Uint64 * ptr, Uint64 value)
#ifdef nativeFetchThenSubtract64 #ifdef nativeFetchThenSubtract64
return nativeFetchThenSubtract64(ptr, value); return nativeFetchThenSubtract64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
tmp = *ptr; tmp = *ptr;
...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr) ...@@ -937,7 +937,7 @@ SDL_AtomicIncrementThenFetch64(Uint64 * ptr)
#ifdef nativeIncrementThenFetch64 #ifdef nativeIncrementThenFetch64
return nativeIncrementThenFetch64(ptr); return nativeIncrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= 1; (*ptr)+= 1;
...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr) ...@@ -954,7 +954,7 @@ SDL_AtomicDecrementThenFetch64(Uint64 * ptr)
#ifdef nativeDecrementThenFetch64 #ifdef nativeDecrementThenFetch64
return nativeDecrementThenFetch64(ptr); return nativeDecrementThenFetch64(ptr);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= 1; (*ptr)-= 1;
...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -971,7 +971,7 @@ SDL_AtomicAddThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeAddThenFetch64 #ifdef nativeAddThenFetch64
return nativeAddThenFetch64(ptr, value); return nativeAddThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)+= value; (*ptr)+= value;
...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value) ...@@ -988,7 +988,7 @@ SDL_AtomicSubtractThenFetch64(Uint64 * ptr, Uint64 value)
#ifdef nativeSubtractThenFetch64 #ifdef nativeSubtractThenFetch64
return nativeSubtractThenFetch64(ptr, value); return nativeSubtractThenFetch64(ptr, value);
#else #else
Uint64 tmp = 0;; Uint64 tmp = 0;
privateWaitLock(); privateWaitLock();
(*ptr)-= value; (*ptr)-= value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment