Files | |
file | ARCH-amd64/bitops_arch.h |
amd64 bit manipulation functions | |
file | ARCH-x86/bitops_arch.h |
x86 bit manipulation functions | |
file | bitops.h |
bit manipulation functions | |
Functions | |
void | l4util_set_bit (int b, volatile l4_umword_t *dest) |
Set bit in memory. | |
void | l4util_clear_bit (int b, volatile l4_umword_t *dest) |
Clear bit in memory. | |
void | l4util_complement_bit (int b, volatile l4_umword_t *dest) |
Complement bit in memory. | |
int | l4util_test_bit (int b, const volatile l4_umword_t *dest) |
Test bit (return value of bit). | |
int | l4util_bts (int b, volatile l4_umword_t *dest) |
Bit test and set. | |
int | l4util_btr (int b, volatile l4_umword_t *dest) |
Bit test and reset. | |
int | l4util_btc (int b, volatile l4_umword_t *dest) |
Bit test and complement. | |
int | l4util_bsr (l4_umword_t word) |
Bit scan reverse. | |
int | l4util_bsf (l4_umword_t word) |
Bit scan forward. | |
int | l4util_find_first_set_bit (const void *dest, l4_size_t size) |
Find the first set bit in a memory region. | |
int | l4util_find_first_zero_bit (const void *dest, l4_size_t size) |
Find the first zero bit in a memory region. |
void l4util_set_bit | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Set bit in memory.
b | bit position | |
dest | destination operand |
Definition at line 74 of file ARCH-amd64/bitops_arch.h.
void l4util_clear_bit | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Clear bit in memory.
b | bit position | |
dest | destination operand |
Definition at line 114 of file ARCH-amd64/bitops_arch.h.
void l4util_complement_bit | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Complement bit in memory.
b | bit position | |
dest | destination operand |
Definition at line 122 of file ARCH-amd64/bitops_arch.h.
int l4util_test_bit | ( | int | b, | |
const volatile l4_umword_t * | dest | |||
) | [inline] |
Test bit (return value of bit).
b | bit position | |
dest | destination operand |
Definition at line 183 of file ARCH-amd64/bitops_arch.h.
int l4util_bts | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Bit test and set.
b | bit position | |
dest | destination operand |
Definition at line 192 of file ARCH-amd64/bitops_arch.h.
int l4util_btr | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Bit test and reset.
b | bit position | |
dest | destination operand |
Definition at line 215 of file ARCH-amd64/bitops_arch.h.
int l4util_btc | ( | int | b, | |
volatile l4_umword_t * | dest | |||
) | [inline] |
Bit test and complement.
b | bit position | |
dest | destination operand |
Definition at line 238 of file ARCH-amd64/bitops_arch.h.
int l4util_bsr | ( | l4_umword_t | word | ) | [inline] |
Bit scan reverse.
word | value (machine size) |
Definition at line 261 of file ARCH-amd64/bitops_arch.h.
int l4util_bsf | ( | l4_umword_t | word | ) | [inline] |
Bit scan forward.
word | value (machine size) |
Definition at line 283 of file ARCH-amd64/bitops_arch.h.
int l4util_find_first_set_bit | ( | const void * | dest, | |
l4_size_t | size | |||
) | [inline] |
Find the first set bit in a memory region.
dest | bitstring | |
size | size of string in bits (must be a multiple of 32!) |
Definition at line 304 of file ARCH-amd64/bitops_arch.h.
int l4util_find_first_zero_bit | ( | const void * | dest, | |
l4_size_t | size | |||
) | [inline] |
Find the first zero bit in a memory region.
dest | bitstring | |
size | size of string in bits (must be a multiple of 32!) |
Definition at line 331 of file ARCH-amd64/bitops_arch.h.