From 53fd2710ca6f68b30faf78c997b2b5858c0cd474 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 1 Apr 2024 14:50:01 -0400 Subject: [PATCH] MT#55283 add atomic64_inc_na convenience wrapper Change-Id: I5881871f86c0dce888a481ea97e3bed758afe1f0 --- include/helpers.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/helpers.h b/include/helpers.h index 7213e9a2a..4193e0f60 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -277,6 +277,9 @@ INLINE uint64_t atomic64_and(atomic64 *u, uint64_t a) { INLINE uint64_t atomic64_inc(atomic64 *u) { return atomic64_add(u, 1); } +INLINE uint64_t atomic64_inc_na(atomic64 *u) { + return atomic64_add_na(u, 1); +} INLINE uint64_t atomic64_dec(atomic64 *u) { return atomic64_add(u, -1); }