diff options
| author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2023-01-11 17:31:42 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2023-01-26 13:25:07 +0100 |
| commit | 6366ca31ef31bb69d30356c736bf902f15c1c792 (patch) | |
| tree | e20c770b766a58f1eb952270415d44d45d18e468 /python/qemu/qmp/protocol.py | |
| parent | 2b5e0c9ff8299bbfa1a6b0c9cac385adb733152a (diff) | |
| download | focaccia-qemu-6366ca31ef31bb69d30356c736bf902f15c1c792.tar.gz focaccia-qemu-6366ca31ef31bb69d30356c736bf902f15c1c792.zip | |
qemu/bswap: Replace bswapXX() by compiler __builtin_bswap()
Use the compiler built-in function to byte swap values, as the compiler is clever and will fold constants. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230111163147.71761-2-philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'python/qemu/qmp/protocol.py')
0 files changed, 0 insertions, 0 deletions