ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

bitset.h File Reference

Bitset of arbitrary size definitions. More...

Go to the source code of this file.

Defines

#define BITSET_WORD   GLuint
#define BITSET_WORDBITS   (sizeof (BITSET_WORD) * 8)
#define BITSET_DECLARE(name, size)   BITSET_WORD name[((size) + BITSET_WORDBITS - 1) / BITSET_WORDBITS]
#define BITSET_COPY(x, y)   _mesa_memcpy( (x), (y), sizeof (x) )
#define BITSET_EQUAL(x, y)   (_mesa_memcmp( (x), (y), sizeof (x) ) == 0)
#define BITSET_ZERO(x)   _mesa_memset( (x), 0, sizeof (x) )
#define BITSET_ONES(x)   _mesa_memset( (x), 0xff, sizeof (x) )
#define BITSET_BITWORD(b)   ((b) / BITSET_WORDBITS)
#define BITSET_BIT(b)   (1 << ((b) % BITSET_WORDBITS))
#define BITSET_TEST(x, b)   ((x)[BITSET_BITWORD(b)] & BITSET_BIT(b))
#define BITSET_SET(x, b)   ((x)[BITSET_BITWORD(b)] |= BITSET_BIT(b))
#define BITSET_CLEAR(x, b)   ((x)[BITSET_BITWORD(b)] &= ~BITSET_BIT(b))
#define BITSET_MASK(b)   ((b) == BITSET_WORDBITS ? ~0 : BITSET_BIT(b) - 1)
#define BITSET_RANGE(b, e)   (BITSET_MASK((e) + 1) & ~BITSET_MASK(b))
#define BITSET_TEST_RANGE(x, b, e)
#define BITSET_SET_RANGE(x, b, e)
#define BITSET_CLEAR_RANGE(x, b, e)
#define BITSET64_WORD   GLuint
#define BITSET64_WORDBITS   (sizeof (BITSET64_WORD) * 8)
#define BITSET64_DECLARE(name, size)   GLuint name[2]
#define BITSET64_COPY(x, y)   do { (x)[0] = (y)[0]; (x)[1] = (y)[1]; } while (0)
#define BITSET64_EQUAL(x, y)   ( (x)[0] == (y)[0] && (x)[1] == (y)[1] )
#define BITSET64_ZERO(x)   do { (x)[0] = 0; (x)[1] = 0; } while (0)
#define BITSET64_ONES(x)   do { (x)[0] = 0xFF; (x)[1] = 0xFF; } while (0)
#define BITSET64_BITWORD(b)   ((b) / BITSET64_WORDBITS)
#define BITSET64_BIT(b)   (1 << ((b) % BITSET64_WORDBITS))
#define BITSET64_TEST(x, b)   ((x)[BITSET64_BITWORD(b)] & BITSET64_BIT(b))
#define BITSET64_SET(x, b)   ((x)[BITSET64_BITWORD(b)] |= BITSET64_BIT(b))
#define BITSET64_CLEAR(x, b)   ((x)[BITSET64_BITWORD(b)] &= ~BITSET64_BIT(b))
#define BITSET64_MASK(b)   ((b) == BITSET64_WORDBITS ? ~0 : BITSET64_BIT(b) - 1)
#define BITSET64_RANGE(b, e)   (BITSET64_MASK((e) + 1) & ~BITSET64_MASK(b))
#define BITSET64_TEST_RANGE(x, b, e)
#define BITSET64_SET_RANGE(x, b, e)
#define BITSET64_CLEAR_RANGE(x, b, e)

Detailed Description

Bitset of arbitrary size definitions.

Author:
Michal Krol

Definition in file bitset.h.


Generated on Fri May 25 2012 04:55:58 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.