1 /* Test count operations from stdbit.h
3 type: unsigned short, unsigned int, unsigned long, unsigned long long
8 #ifdef __SDCC // Todo: Enable for all C23 implementations
18 #ifdef __SDCC // Todo: Enable for all C23 implementations
21 ASSERT (stdc_count_ones(i
) == 1);
22 ASSERT (stdc_count_zeros(j
) == 1);
23 ASSERT (stdc_has_single_bit(i
));
24 ASSERT (!stdc_has_single_bit(j
));
28 ASSERT (stdc_count_ones(i
) == 8);
29 ASSERT (stdc_count_zeros(j
) == 8);
30 ASSERT (!stdc_has_single_bit(i
));
31 ASSERT (!stdc_has_single_bit(j
));