10 lines
194 B
C
10 lines
194 B
C
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#define SET(X, Y) X |= (1 << Y)
|
|
#define CLR(X, Y) X &= ~(1 << Y)
|
|
#define CHK(X, Y) X & (1 << Y)
|
|
#define TOG(X, Y) X ^= (1 << Y)
|
|
|
|
#endif /* COMMON_H */
|