mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-24 23:56:49 +03:00
bc0cb70b13
Developer: Roman Shuvalov git-svn-id: svn://kolibrios.org@5235 a494cfbc-eb01-0410-851d-a64ba20cac60
12 lines
361 B
C
Executable File
12 lines
361 B
C
Executable File
#ifndef RSBITS_H_INCLUDED
|
|
#define RSBITS_H_INCLUDED
|
|
|
|
#define BIT_SET(var,mask) { var |= (mask); }
|
|
#define BIT_CLEAR(var,mask) { var &= ~(mask); }
|
|
#define BIT_TOGGLE(var,mask) { var ^= (mask); }
|
|
|
|
#define IS_BIT_SET(var,mask) ( (var) & (mask) )
|
|
#define IS_BIT_CLEARED(var,mask) (!( (var) & (mask) ))
|
|
|
|
#endif // RSBITS_H_INCLUDED
|