Main Page   File List  

bitops.h File Reference

bit manipulation functions More...

Go to the source code of this file.

Defines

#define l4util_test_and_clear_bit(b, dest)   l4util_btr(b, dest)
 define some more usual names
#define l4util_test_and_set_bit(b, dest)   l4util_bts(b, dest)
#define l4util_test_and_change_bit(b, dest)   l4util_btc(b, dest)
#define l4util_log2(word)   l4util_bsr(word)

Functions

void l4util_set_bit (int b, volatile l4_umword_t *dest)
 Set bit in memory.
void l4util_set_bit32 (int b, volatile l4_uint32_t *dest)
void l4util_clear_bit (int b, volatile l4_umword_t *dest)
 Clear bit in memory.
void l4util_clear_bit32 (int b, volatile l4_uint32_t *dest)
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_test_bit32 (int b, const volatile l4_uint32_t *dest)
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.


Detailed Description

bit manipulation functions

Date:
07/03/2001
Author:
Lars Reuther <reuther@os.inf.tu-dresden.de>

Definition in file bitops.h.


L4 Utilities, part of DROPS  © 2000-2003