Skip to content
Snippets Groups Projects

Ensure that the refmvs_refpair union is packed

Merged Cameron Cawley requested to merge ccawley2011/dav1d:refmvs-pack into master
1 unresolved thread

When building for RISC OS, the refmvs_refpair union is padded to a multiple of 4 bytes, which leads to the padding being included in the otherwise packed refmvs_block structure.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
189 189 #ifndef static_assert
190 190 #define CHECK_OFFSET(type, field, name) \
191 191 struct check_##type##_##field { int x[(name == offsetof(type, field)) ? 1 : -1]; }
192 #define CHECK_SIZE(type, name) \
193 struct check_##type##_size { int x[(name == sizeof(type)) ? 1 : -1]; }
192 194 #else
193 195 #define CHECK_OFFSET(type, field, name) \
194 196 static_assert(name == offsetof(type, field), #field)
197 #define CHECK_SIZE(type, name) \
198 static_assert(name == sizeof(type), #type)
  • changed milestone to %1.5.0

  • Please register or sign in to reply
    Loading