regressions: Additional changes for 32-bit targets.

ck_pring
Samy Al Bahra 14 years ago
parent 69e5c56acb
commit 5fd2de18bf

@ -36,6 +36,7 @@
#include "../../common.h" #include "../../common.h"
#if defined(CK_F_PR_INC_64) && defined(CK_F_PR_LOAD_64)
static int done = 0; static int done = 0;
static struct affinity a; static struct affinity a;
static int nthr; static int nthr;
@ -128,4 +129,13 @@ main(int argc, char *argv[])
return (0); return (0);
} }
#else
int
main(void)
{
fputs("Unsupported.", stderr);
return 0;
}
#endif

@ -9,7 +9,7 @@
#include <stdlib.h> #include <stdlib.h>
int int
main(int void) main(void)
{ {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

@ -38,9 +38,9 @@
#endif #endif
struct example { struct example {
uint64_t a; unsigned int a;
uint64_t b; unsigned int b;
uint64_t c; unsigned int c;
}; };
static struct example global CK_CC_CACHELINE; static struct example global CK_CC_CACHELINE;
@ -136,8 +136,8 @@ main(int argc, char *argv[])
*/ */
ck_sequence_write_begin(&seqlock); ck_sequence_write_begin(&seqlock);
global.a = counter++; global.a = counter++;
ck_pr_store_64(&global.b, global.a + 1000); ck_pr_store_uint(&global.b, global.a + 1000);
ck_pr_store_64(&global.c, global.b + global.a); ck_pr_store_uint(&global.c, global.b + global.a);
ck_sequence_write_end(&seqlock); ck_sequence_write_end(&seqlock);
if (counter == 1) if (counter == 1)

Loading…
Cancel
Save