mirror of https://github.com/xemu-project/xemu.git
Move HOST_LONG_BITS to compiler.h
This will help to make common code independent. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
77a19c6aa4
commit
519655970e
|
@ -7,6 +7,11 @@
|
||||||
#ifndef COMPILER_H
|
#ifndef COMPILER_H
|
||||||
#define COMPILER_H
|
#define COMPILER_H
|
||||||
|
|
||||||
|
#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__
|
#if defined __clang_analyzer__ || defined __COVERITY__
|
||||||
#define QEMU_STATIC_ANALYSIS 1
|
#define QEMU_STATIC_ANALYSIS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -244,9 +244,6 @@ extern "C" {
|
||||||
#define TIME_MAX TYPE_MAXIMUM(time_t)
|
#define TIME_MAX TYPE_MAXIMUM(time_t)
|
||||||
#endif
|
#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
|
/* Mac OSX has a <stdint.h> bug that incorrectly defines SIZE_MAX with
|
||||||
* the wrong type. Our replacement isn't usable in preprocessor
|
* the wrong type. Our replacement isn't usable in preprocessor
|
||||||
* expressions, but it is sufficient for our needs. */
|
* expressions, but it is sufficient for our needs. */
|
||||||
|
|
Loading…
Reference in New Issue