crosvm/common/data_model
Daniel Verkamp 800f2bec5f data_model: inline endian conversions
The Le16/Le32/Le64 <-> u16/u32/u64 conversions should be no-ops on
little endian platforms, and even the big-endian conversions can be
efficiently implemented with a single byte-swap or MOVBE instruction in
most cases, so it should almost always be beneficial to inline the
conversion functions.

BUG=None
TEST=cargo build --release; view SplitQueue::add_used assembly

Change-Id: Ia028670e99f93754e729b3ff1fbdae2bcef74917
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4679848
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2023-07-12 23:10:51 +00:00
..
src data_model: inline endian conversions 2023-07-12 23:10:51 +00:00
Cargo.toml crosvm: Partially convert DataInit to zerocopy (1/n) 2023-02-02 19:28:57 +00:00
LICENSE crosvm: add licensing/description to alpha crates 2023-01-14 02:05:06 +00:00