mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Replace 1024, 1024u32.pow(2), and 1024u32.pow(3) with 1u32 << 10, 1u32 << 20, and 1u32 << 30 in get_cache_size. The shift form makes the binary (KiB/MiB/GiB) nature of the conversion immediately obvious and is easier to read at a glance. Signed-off-by: Anirudh Rayabharam <anrayabh@microsoft.com>