Guest User

Untitled

a guest
Oct 26th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. struct X {
  2. int x; /* 0 4 */
  3.  
  4. /* XXX 4 bytes hole, try to pack */
  5.  
  6. double * p; /* 8 8 */
  7.  
  8. /* size: 16, cachelines: 1, members: 2 */
  9. /* sum members: 12, holes: 1, sum holes: 4 */
  10. /* last cacheline: 16 bytes */
  11. };
  12. struct Y {
  13. double * p; /* 0 8 */
  14. int x; /* 8 4 */
  15.  
  16. /* size: 16, cachelines: 1, members: 2 */
  17. /* padding: 4 */
  18. /* last cacheline: 16 bytes */
  19. };
Advertisement
Add Comment
Please, Sign In to add comment