Skip to contentSkip to conversation

Move HOST_LONG_BITS to compiler.h

PATCH In review [email protected] 2 participants 2 messages Mar 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 13/27 Move HOST_LONG_BITS to compiler.h

From: Marc-André Lureau <[email protected]>

This will help to make common code independent.

---
 include/qemu/compiler.h | 3 +++
 include/qemu/osdep.h    | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)
include/qemu/compiler.h +3 -0
index 7fdd88adb368..d9359859d435 100644
@@ -9,6 +9,9 @@
 
 #define HOST_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
 
+/* HOST_LONG_BITS is the size of a native pointer in bits. */
+#define HOST_LONG_BITS (__SIZEOF_POINTER__ * 8)
+
 #if defined __clang_analyzer__ || defined __COVERITY__
 #define QEMU_STATIC_ANALYSIS 1
 #endif
include/qemu/osdep.h +0 -3
index de0c0ab02f4d..06cf59ba1ea8 100644
@@ -250,9 +250,6 @@ extern "C" {
 #define TIME_MAX TYPE_MAXIMUM(time_t)
 #endif
 
-/* HOST_LONG_BITS is the size of a native pointer in bits. */
-#define HOST_LONG_BITS (__SIZEOF_POINTER__ * 8)
-
 /* Mac OSX has a <stdint.h> bug that incorrectly defines SIZE_MAX with
  * the wrong type. Our replacement isn't usable in preprocessor
  * expressions, but it is sufficient for our needs. */
Signature · 1 line
2.35.1.273.ge6ebfd0e8cbb
Reviewed-by on v1 13/27
#1 lore raw
Quoted 10 lines · On 16/3/22 10:53, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

This will help to make common code independent.

---
  include/qemu/compiler.h | 3 +++
  include/qemu/osdep.h    | 3 ---
  2 files changed, 3 insertions(+), 3 deletions(-)