/* bitfield_test.c : PUBLIC DOMAIN - Jon Mayo - July 2005 * - You may remove any comments you wish, modify this code any way you wish, * and distribute any way you wish.*/ /* example of using bitfield.h macros */ #include #include #include #include "bitfield.h" #define NR(x) (sizeof(x)/sizeof*(x)) static void dump_bits(unsigned long *bits, unsigned bitcnt) { unsigned a; for(a=0;a