diff options
Diffstat (limited to 'lib/mesa/src/util/u_atomic.h')
-rw-r--r-- | lib/mesa/src/util/u_atomic.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/mesa/src/util/u_atomic.h b/lib/mesa/src/util/u_atomic.h index 0bd6a4aaa..c94a9a459 100644 --- a/lib/mesa/src/util/u_atomic.h +++ b/lib/mesa/src/util/u_atomic.h @@ -82,7 +82,7 @@ /* Unlocked version for single threaded environments, such as some * windows kernel modules. */ -#if defined(PIPE_ATOMIC_OS_UNLOCKED) +#if defined(PIPE_ATOMIC_OS_UNLOCKED) #define PIPE_ATOMIC "Unlocked" @@ -153,10 +153,8 @@ ((void) p_atomic_add_return((_v), (_i))) #define p_atomic_add_return(_v, _i) (\ - sizeof *(_v) == sizeof(char) ? _InterlockedExchangeAdd8 ((char *) (_v), (_i)) : \ - sizeof *(_v) == sizeof(short) ? _InterlockedExchangeAdd16((short *) (_v), (_i)) : \ - sizeof *(_v) == sizeof(long) ? _InterlockedExchangeAdd ((long *) (_v), (_i)) : \ - sizeof *(_v) == sizeof(__int64) ? InterlockedExchangeAdd64((__int64 *)(_v), (_i)) : \ + sizeof *(_v) == sizeof(long) ? InterlockedAdd ((long *) (_v), (_i)) : \ + sizeof *(_v) == sizeof(__int64) ? InterlockedAdd64((__int64 *)(_v), (_i)) : \ (assert(!"should not get here"), 0)) #define p_atomic_cmpxchg(_v, _old, _new) (\ |