kolibrios-gitea/programs/games/heliothryx/game/rs/rsbits.h
alpine 3fdf00fdeb First try.
Techdemo of Heliothryx game
by Roman Shuvalov



git-svn-id: svn://kolibrios.org@5225 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-12-08 18:32:05 +00:00

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