You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ck/regressions/ck_cc/validate/ck_cc.c

19 lines
314 B

#include <ck_pr.h>
#include <stdio.h>
#include "../../common.h"
int
main(void)
{
unsigned int x;
ck_pr_store_uint(&x, 4);
printf(" ffs = %d\n", ck_cc_ffs(x));
printf(" clz = %d\n", ck_cc_clz(x));
printf(" ctz = %d\n", ck_cc_ctz(x));
printf("popcount = %d\n", ck_cc_popcount(x));
return 0;
}