Changeset 65956
- Timestamp:
- Oct 14, 2010, 3:21:56 PM (12 years ago)
- Author:
- cppljevans
- Message:
-
Shows effect of sorting by alignment to minimize
padding:
A_type
===========
*components*
num size align sum_size
1 4 4 4
2 8 8 12
3 8 8 20
4 8 8 28
*composite*
num size align pad sum_pad offset
5 32 8 0 0 _
4 32 8 0 0 24
3 24 8 0 0 16
2 16 8 4 4 8
1 4 4 0 4 0
0 0 1 _ _ _
A_bools_type
===========
*components*
num size align sum_size
1 4 4 4
2 8 8 12
3 8 8 20
4 8 8 28
5 1 1 29
6 1 1 30
7 1 1 31
8 1 1 32
*composite*
num size align pad sum_pad offset
9 40 8 4 4 _
8 36 8 0 4 35
7 35 8 0 4 34
6 34 8 0 4 33
5 33 8 0 4 32
4 32 8 0 4 24
3 24 8 0 4 16
2 16 8 4 8 8
1 4 4 0 8 0
0 0 1 _ _ _
bools_A_type
===========
*components*
num size align sum_size
1 1 1 1
2 1 1 2
3 1 1 3
4 1 1 4
5 4 4 8
6 8 8 16
7 8 8 24
8 8 8 32
*composite*
num size align pad sum_pad offset
9 32 8 0 0 _
8 32 8 0 0 24
7 24 8 0 0 16
6 16 8 0 0 8
5 8 4 0 0 4
4 4 1 0 0 3
3 3 1 0 0 2
2 2 1 0 0 1
1 1 1 0 0 0
0 0 1 _ _ _
A_sort_bools_type
===========
*components*
num size align sum_size
1 8 8 8
2 8 8 16
3 8 8 24
4 4 4 28
5 1 1 29
6 1 1 30
7 1 1 31
8 1 1 32
*composite*
num size align pad sum_pad offset
9 32 8 0 0 _
8 32 8 0 0 31
7 31 8 0 0 30
6 30 8 0 0 29
5 29 8 0 0 28
4 28 8 0 0 24
3 24 8 0 0 16
2 16 8 0 0 8
1 8 8 0 0 0
0 0 1 _ _ _
- (No files)
-