Browse Source

MT#55283 obsolete bitfield helpers

Change-Id: I04b5bf7c4fc284c0fce1697d2988d571a0d4f377
pull/1776/head
Richard Fuchs 2 years ago
parent
commit
a50d553cdd
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      include/helpers.h

+ 0
- 18
include/helpers.h View File

@ -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


Loading…
Cancel
Save