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

Pipeline #508151 passed

Pipeline passed for 0255c2b2 on ccawley2011:refmvs-pack

Test coverage 91.23% (-0.21%) from 1 job
Approved by

Merged by Ronald S. BultjeRonald S. Bultje 5 months ago (Aug 29, 2024 8:27pm UTC)

Merge details

  • Changes merged into master with 0255c2b2.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #508154 passed

Pipeline passed for 0255c2b2 on master

Test coverage 91.62% (-0.21%) from 1 job

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