Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/sys/bitset_test.c
Show All 9 Lines | |||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/_bitset.h> | #include <sys/_bitset.h> | ||||
#include <sys/bitset.h> | #include <sys/bitset.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <atf-c.h> | #include <atf-c.h> | ||||
#define BIT_CLR __BIT_CLR | |||||
#define BIT_FILL __BIT_FILL | |||||
#define BIT_FOREACH_COUNT __BIT_FOREACH_COUNT | |||||
#define BIT_FOREACH_ISCLR __BIT_FOREACH_ISCLR | |||||
#define BIT_FOREACH_ISSET __BIT_FOREACH_ISSET | |||||
#define BIT_ISSET __BIT_ISSET | |||||
#define BIT_SET __BIT_SET | |||||
#define BIT_ZERO __BIT_ZERO | |||||
BITSET_DEFINE(bs256, 256); | BITSET_DEFINE(bs256, 256); | ||||
ATF_TC_WITHOUT_HEAD(bit_foreach); | ATF_TC_WITHOUT_HEAD(bit_foreach); | ||||
ATF_TC_BODY(bit_foreach, tc) | ATF_TC_BODY(bit_foreach, tc) | ||||
{ | { | ||||
struct bs256 bs0, bs1, bsrand; | struct bs256 bs0, bs1, bsrand; | ||||
int setc, clrc, i; | int setc, clrc, i; | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |