OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:AtomicBitset
(Results
1 - 2
of
2
) sorted by null
/device/google/contexthub/firmware/inc/cpu/cortexm4f/
atomicBitset.h
24
struct
AtomicBitset
{
30
#define ATOMIC_BITSET_SZ(numbits) (sizeof(struct
AtomicBitset
) + sizeof(uint32_t) * ATOMIC_BITSET_NUM_WORDS(numbits))
31
#define ATOMIC_BITSET_DECL(nam, numbits, extra_keyword) DECLARE_OS_ALIGNMENT(nam, ATOMIC_BITSET_SZ(numbits), extra_keyword, struct
AtomicBitset
)
33
void atomicBitsetInit(struct
AtomicBitset
*set, uint32_t numBits);
34
uint32_t atomicBitsetGetNumBits(const struct
AtomicBitset
*set);
35
bool atomicBitsetGetBit(const struct
AtomicBitset
*set, uint32_t num);
36
void atomicBitsetClearBit(struct
AtomicBitset
*set, uint32_t num);
37
int32_t atomicBitsetFindClearAndSet(struct
AtomicBitset
*set);
/device/google/contexthub/firmware/inc/cpu/x86/
atomicBitset.h
23
struct
AtomicBitset
{
28
#define ATOMIC_BITSET_SZ(numbits) (sizeof(struct
AtomicBitset
) + ((numbits) + 31) / 8)
29
#define ATOMIC_BITSET_DECL(nam, numbits, extra_keyword) extra_keyword uint8_t _##nam##_store [ATOMIC_BITSET_SZ(numbits)] __attribute__((aligned(4))); extra_keyword struct
AtomicBitset
*nam = (struct
AtomicBitset
*)_##nam##_store
32
void atomicBitsetInit(struct
AtomicBitset
*set, uint32_t numBits);
33
uint32_t atomicBitsetGetNumBits(const struct
AtomicBitset
*set);
34
bool atomicBitsetGetBit(const struct
AtomicBitset
*set, uint32_t num);
35
void atomicBitsetClearBit(struct
AtomicBitset
*set, uint32_t num);
36
int32_t atomicBitsetFindClearAndSet(struct
AtomicBitset
*set);
Completed in 346 milliseconds