From 2eae02f77c66e9a392dd8c2dc459ddc943e30140 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Tue, 9 Aug 2016 00:44:39 -0600 Subject: [PATCH] swr: [rasterizer common] add linux definition for InterlockedAdd64 Signed-off-by: Tim Rowley --- src/gallium/drivers/swr/rasterizer/common/os.h | 2 ++ 1 file changed, 2 insertions(+) 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(...) -- 2.30.2