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.
19 lines
314 B
19 lines
314 B
7 years ago
|
#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;
|
||
|
}
|