]> git.proxmox.com Git - mirror_qemu.git/commit
qemu/bswap: Add const_le64()
authorIra Weiny <ira.weiny@intel.com>
Mon, 6 Feb 2023 17:28:14 +0000 (17:28 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Mar 2023 00:13:52 +0000 (19:13 -0500)
commit845d80a8c7b187f3003819463b40df91527affb4
tree5985baac4aa112cfce6a6fbd49d3f95e86071dc9
parent21063bcee849d2af9a65703f9c3438ad2d4dbd26
qemu/bswap: Add const_le64()

Gcc requires constant versions of cpu_to_le* calls.

Add a 64 bit version.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Gregory Price <gregory.price@memverge.com>
Tested-by: Gregory Price <gregory.price@memverge.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Message-Id: <20230206172816.8201-9-Jonathan.Cameron@huawei.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/qemu/bswap.h