From e7c81b08edb89ad96ab40e0320db6e9310628697 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Fri, 3 Jan 2025 20:26:48 -0800 Subject: [PATCH] Delete some portability macros we don't use anywhere. PiperOrigin-RevId: 711933556 --- upb/port/atomic.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/upb/port/atomic.h b/upb/port/atomic.h index f13caa86cc333..b17a3d9f2e408 100644 --- a/upb/port/atomic.h +++ b/upb/port/atomic.h @@ -21,10 +21,6 @@ #define upb_Atomic_Load(addr, order) atomic_load_explicit(addr, order) #define upb_Atomic_Store(addr, val, order) \ atomic_store_explicit(addr, val, order) -#define upb_Atomic_Add(addr, val, order) \ - atomic_fetch_add_explicit(addr, val, order) -#define upb_Atomic_Sub(addr, val, order) \ - atomic_fetch_sub_explicit(addr, val, order) #define upb_Atomic_Exchange(addr, val, order) \ atomic_exchange_explicit(addr, val, order) #define upb_Atomic_CompareExchangeStrong(addr, expected, desired, \ @@ -43,8 +39,6 @@ #define upb_Atomic_Init(addr, val) (*addr = val) #define upb_Atomic_Load(addr, order) (*addr) #define upb_Atomic_Store(addr, val, order) (*(addr) = val) -#define upb_Atomic_Add(addr, val, order) (*(addr) += val) -#define upb_Atomic_Sub(addr, val, order) (*(addr) -= val) UPB_INLINE void* _upb_NonAtomic_Exchange(void* addr, void* value) { void* old;