diff --git a/regressions/ck_barrier/benchmark/throughput.c b/regressions/ck_barrier/benchmark/throughput.c index 3d4ffc6..4710250 100644 --- a/regressions/ck_barrier/benchmark/throughput.c +++ b/regressions/ck_barrier/benchmark/throughput.c @@ -36,6 +36,7 @@ #include "../../common.h" +#if defined(CK_F_PR_INC_64) && defined(CK_F_PR_LOAD_64) static int done = 0; static struct affinity a; static int nthr; @@ -128,4 +129,13 @@ main(int argc, char *argv[]) return (0); } +#else +int +main(void) +{ + + fputs("Unsupported.", stderr); + return 0; +} +#endif diff --git a/regressions/ck_pr/benchmark/ck_pr_cas_64.c b/regressions/ck_pr/benchmark/ck_pr_cas_64.c index 33f6761..90dcb64 100644 --- a/regressions/ck_pr/benchmark/ck_pr_cas_64.c +++ b/regressions/ck_pr/benchmark/ck_pr_cas_64.c @@ -9,7 +9,7 @@ #include int -main(int void) +main(void) { exit(EXIT_FAILURE); } diff --git a/regressions/ck_sequence/validate/ck_sequence.c b/regressions/ck_sequence/validate/ck_sequence.c index 9c0f481..0316e5a 100644 --- a/regressions/ck_sequence/validate/ck_sequence.c +++ b/regressions/ck_sequence/validate/ck_sequence.c @@ -38,9 +38,9 @@ #endif struct example { - uint64_t a; - uint64_t b; - uint64_t c; + unsigned int a; + unsigned int b; + unsigned int c; }; static struct example global CK_CC_CACHELINE; @@ -136,8 +136,8 @@ main(int argc, char *argv[]) */ ck_sequence_write_begin(&seqlock); global.a = counter++; - ck_pr_store_64(&global.b, global.a + 1000); - ck_pr_store_64(&global.c, global.b + global.a); + ck_pr_store_uint(&global.b, global.a + 1000); + ck_pr_store_uint(&global.c, global.b + global.a); ck_sequence_write_end(&seqlock); if (counter == 1)