Added bits() macro - bits range mask.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@159 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent a8849ef4e0
commit e2528368b3

@ -52,5 +52,6 @@
#endif
#define bit(x) (1 << x)
#define bits(h,l) (((1 << (h + 1)) - 1) & ~((1 << l) - 1))
#endif /* COMMON_H */

Loading…
Cancel
Save