#include <stdio.h>
struct cache_line_aligned {
int version;
// char padding[60];
} __attribute__ ((aligned (64)));
int main(void)
{
struct cache_line_aligned s;
struct cache_line_aligned a[2];
printf("sizeof(struct cache_line_aligned) = %d\n", (int)sizeof(struct cache_line_aligned
)); printf("sizeof(s) = %d\n", (int)sizeof(s
)); printf("sizeof(a[0]) = %d\n", (int)sizeof(a
[0])); printf("sizeof(a) = %d\n", (int)sizeof(a
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgY2FjaGVfbGluZV9hbGlnbmVkIHsKICBpbnQgdmVyc2lvbjsKLy8gIGNoYXIgcGFkZGluZ1s2MF07Cn0gX19hdHRyaWJ1dGVfXyAoKGFsaWduZWQgKDY0KSkpOwoKaW50IG1haW4odm9pZCkKewogIHN0cnVjdCBjYWNoZV9saW5lX2FsaWduZWQgczsKICBzdHJ1Y3QgY2FjaGVfbGluZV9hbGlnbmVkIGFbMl07CiAgcHJpbnRmKCJzaXplb2Yoc3RydWN0IGNhY2hlX2xpbmVfYWxpZ25lZCkgPSAlZFxuIiwgKGludClzaXplb2Yoc3RydWN0IGNhY2hlX2xpbmVfYWxpZ25lZCkpOwogIHByaW50Zigic2l6ZW9mKHMpID0gJWRcbiIsIChpbnQpc2l6ZW9mKHMpKTsKICBwcmludGYoInNpemVvZihhWzBdKSA9ICVkXG4iLCAoaW50KXNpemVvZihhWzBdKSk7CiAgcHJpbnRmKCJzaXplb2YoYSkgPSAlZFxuIiwgKGludClzaXplb2YoYSkpOwogIHJldHVybiAwOwp9Cg==