From a50d553cddc6b8531a24ed9cfa3a4a5bc6f80056 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 15 Dec 2023 09:54:13 -0500 Subject: [PATCH] MT#55283 obsolete bitfield helpers Change-Id: I04b5bf7c4fc284c0fce1697d2988d571a0d4f377 --- include/helpers.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/helpers.h b/include/helpers.h index 5e271fc1e..706d3181d 100644 --- a/include/helpers.h +++ b/include/helpers.h @@ -282,24 +282,6 @@ INLINE void bf_copy_same(volatile unsigned int *u, const volatile unsigned int * -/*** BIT ARRAY FUNCTIONS ***/ - -#define BIT_ARRAY_DECLARE(name, size) \ - volatile unsigned int name[((size) + sizeof(int) * 8 - 1) / (sizeof(int) * 8)] - -INLINE bool bit_array_isset(const volatile unsigned int *name, unsigned int bit) { - return bf_isset(&name[bit / (sizeof(int) * 8)], 1U << (bit % (sizeof(int) * 8))); -} -INLINE bool bit_array_set(volatile unsigned int *name, unsigned int bit) { - return bf_set(&name[bit / (sizeof(int) * 8)], 1U << (bit % (sizeof(int) * 8))); -} -INLINE bool bit_array_clear(volatile unsigned int *name, unsigned int bit) { - return bf_clear(&name[bit / (sizeof(int) * 8)], 1U << (bit % (sizeof(int) * 8))); -} - - - - /*** ATOMIC64 ***/ #if GLIB_SIZEOF_VOID_P >= 8