Skip to content

Commit

Permalink
Delete some portability macros we don't use anywhere.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 712518254
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jan 6, 2025
1 parent ec58a34 commit 3e316c4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions upb/port/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand All @@ -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;
Expand Down

0 comments on commit 3e316c4

Please sign in to comment.