Skip to content
Snippets Groups Projects
Commit af68dc3b authored by Nick Pollard's avatar Nick Pollard Committed by CQ bot account: commit-bot@chromium.org
Browse files

[bt][common] Force DeviceAddress to be 8 bytes

The 'Type' enum class in common::DeviceAddress has only 4 options, but
defaults to a 32bit int, which due to alignment causes DeviceAddress to
be 12 bytes. Switching to an explicit uint16_t allows the entire class
to be packed into 8 bytes, which will allow it to fit in a 64-bit
register and is likely to generally improve memory usage and performance.

Change-Id: I6b1af5bde495bc57ee41db4f6b7e664d056f24cc
parent abc2a6cf
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment