[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/16] qemu/bswap: Undefine CPU_CONVERT() once done
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 01/16] qemu/bswap: Undefine CPU_CONVERT() once done |
Date: |
Fri, 4 Oct 2024 01:41:56 +0200 |
Better undefined macros once we are done with them,
like we do few lines later with DO_STN_LDN_P().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/qemu/bswap.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h
index ad22910a5d1..b915835bead 100644
--- a/include/qemu/bswap.h
+++ b/include/qemu/bswap.h
@@ -140,6 +140,8 @@ CPU_CONVERT(le, 16, uint16_t)
CPU_CONVERT(le, 32, uint32_t)
CPU_CONVERT(le, 64, uint64_t)
+#undef CPU_CONVERT
+
/*
* Same as cpu_to_le{16,32,64}, except that gcc will figure the result is
* a compile-time constant if you pass in a constant. So this can be
--
2.45.2
- [PATCH 00/16] misc: Use explicit endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/03
- [PATCH 01/16] qemu/bswap: Undefine CPU_CONVERT() once done,
Philippe Mathieu-Daudé <=
- [PATCH 02/16] exec/memop: Remove unused memop_big_endian() helper, Philippe Mathieu-Daudé, 2024/10/03
- [PATCH 03/16] linux-user/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/03
- [PATCH 04/16] hw/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/03
- [PATCH 05/16] target/i386: Use explicit little-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/03
- [PATCH 06/16] hw/m68k: Use explicit big-endian LD/ST API, Philippe Mathieu-Daudé, 2024/10/03