L4Re - L4 Runtime Environment
|
Files | |
file | bitops.h |
bit manipulation functions | |
Functions | |
void | l4util_set_bit (int b, volatile l4_umword_t *dest) |
Set bit in memory. More... | |
void | l4util_clear_bit (int b, volatile l4_umword_t *dest) |
Clear bit in memory. More... | |
void | l4util_complement_bit (int b, volatile l4_umword_t *dest) |
Complement bit in memory. More... | |
int | l4util_test_bit (int b, const volatile l4_umword_t *dest) |
Test bit (return value of bit) More... | |
int | l4util_bts (int b, volatile l4_umword_t *dest) |
Bit test and set. More... | |
int | l4util_btr (int b, volatile l4_umword_t *dest) |
Bit test and reset. More... | |
int | l4util_btc (int b, volatile l4_umword_t *dest) |
Bit test and complement. More... | |
int | l4util_bsr (l4_umword_t word) |
Bit scan reverse. More... | |
int | l4util_bsf (l4_umword_t word) |
Bit scan forward. More... | |
int | l4util_find_first_set_bit (const void *dest, l4_size_t size) |
Find the first set bit in a memory region. More... | |
int | l4util_find_first_zero_bit (const void *dest, l4_size_t size) |
Find the first zero bit in a memory region. More... | |
int | l4util_next_power2 (const unsigned long val) |
Find the next power of 2 for a given number. More... | |
|
inline |
Bit scan forward.
word | value (machine size) |
"bit scan forward", find least significant bit set in word.
Definition at line 316 of file bitops.h.
Referenced by l4util_splitlog2_size().
|
inline |
Bit scan reverse.
word | value (machine size) |
"bit scan reverse", find most significant set bit in word (-> LOG2(word))
Definition at line 299 of file bitops.h.
Referenced by l4util_splitlog2_size().
|
inline |
|
inline |
Bit test and reset.
b | bit position |
dest | destination operand |
Reset bit b and return old value.
Definition at line 278 of file bitops.h.
References l4util_cmpxchg().
|
inline |
Bit test and set.
b | bit position |
dest | destination operand |
Set the b bit of dest to 1 and return the old value.
Definition at line 256 of file bitops.h.
References l4util_cmpxchg().
|
inline |
Clear bit in memory.
b | bit position |
dest | destination operand |
Definition at line 226 of file bitops.h.
References l4util_cmpxchg().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set bit in memory.
b | bit position |
dest | destination operand |
Definition at line 207 of file bitops.h.
References l4util_cmpxchg().
|
inline |