From: Tim Rowley Date: Tue, 9 Aug 2016 06:44:39 +0000 (-0600) Subject: swr: [rasterizer common] add linux definition for InterlockedAdd64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2eae02f77c66e9a392dd8c2dc459ddc943e30140;p=mesa.git swr: [rasterizer common] add linux definition for InterlockedAdd64 Signed-off-by: Tim Rowley --- diff --git a/src/gallium/drivers/swr/rasterizer/common/os.h b/src/gallium/drivers/swr/rasterizer/common/os.h index 32eca688d64..43d55134222 100644 --- a/src/gallium/drivers/swr/rasterizer/common/os.h +++ b/src/gallium/drivers/swr/rasterizer/common/os.h @@ -220,6 +220,8 @@ void AlignedFree(void* p) #define InterlockedDecrement(Append) __sync_sub_and_fetch(Append, 1) #define InterlockedDecrement64(Append) __sync_sub_and_fetch(Append, 1) #define InterlockedIncrement(Append) __sync_add_and_fetch(Append, 1) +#define InterlockedAdd(Addend, Value) __sync_add_and_fetch(Addend, Value) +#define InterlockedAdd64(Addend, Value) __sync_add_and_fetch(Addend, Value) #define _ReadWriteBarrier() asm volatile("" ::: "memory") #define PRAGMA_WARNING_PUSH_DISABLE(...)