Changeset 40907 in vbox for trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
- Timestamp:
- Apr 13, 2012 8:50:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r40274 r40907 162 162 do \ 163 163 { \ 164 printf("info: %s::%s offset %#x (%d) sizeof %d\n", #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \ 165 } while (0) 166 164 printf("info: %10s::%-24s offset %#6x (%6d) sizeof %4d\n", #strct, #member, (int)RT_OFFSETOF(strct, member), (int)RT_OFFSETOF(strct, member), (int)RT_SIZEOFMEMB(strct, member)); \ 165 } while (0) 167 166 168 167 … … 336 335 337 336 /* pdm */ 337 PRINT_OFFSET(PDMDEVINS, Internal); 338 PRINT_OFFSET(PDMDEVINS, achInstanceData); 338 339 CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64); 339 340 CHECK_PADDING(PDMDEVINS, Internal, 1); 340 CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 16); 341 342 PRINT_OFFSET(PDMUSBINS, Internal); 343 PRINT_OFFSET(PDMUSBINS, achInstanceData); 344 CHECK_MEMBER_ALIGNMENT(PDMUSBINS, achInstanceData, 32); 341 345 CHECK_PADDING(PDMUSBINS, Internal, 1); 342 CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 16); 346 347 PRINT_OFFSET(PDMDRVINS, Internal); 348 PRINT_OFFSET(PDMDRVINS, achInstanceData); 349 CHECK_MEMBER_ALIGNMENT(PDMDRVINS, achInstanceData, 32); 343 350 CHECK_PADDING(PDMDRVINS, Internal, 1); 351 344 352 CHECK_PADDING2(PDMCRITSECT); 345 353
Note:
See TracChangeset
for help on using the changeset viewer.