|
|
@ -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)
|
|
|
|