/*
 * setbit.h
 *
 * Created: 14.06.2016 19:43:39
 *  Author: Johannes
 */ 


#ifndef SETBIT_H_
#define SETBIT_H_

#define BIT(x)			(1 << (x))
#define SETBITS(x,y)	((x) |= (y))
#define CLEARBITS(x,y)	((x) &= (~(y)))
#define TOGGLEBITS(x,y)	((x) ^= (y))
#define SETBIT(x,y)		SETBITS((x), (BIT((y))))
#define CLEARBIT(x,y)	CLEARBITS((x), (BIT((y))))
#define TOGGLEBIT(x,y)	TOGGLEBITS((x), (BIT((y))))



#endif /* SETBIT_H_ */