config.h 869 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _BOCHS_CONFIG_H
  2. #define _BOCHS_CONFIG_H
  3. #ifdef _WIN32
  4. typedef signed __int8 Bit8s;
  5. typedef signed __int16 Bit16s;
  6. typedef signed __int32 Bit32s;
  7. typedef signed __int64 Bit64s;
  8. typedef unsigned __int8 Bit8u;
  9. typedef unsigned __int16 Bit16u;
  10. typedef unsigned __int32 Bit32u;
  11. typedef unsigned __int64 Bit64u;
  12. typedef bool bx_bool;
  13. typedef Bit64u bx_address;
  14. #define BX_CPP_INLINE inline
  15. #else
  16. #include <stdint.h>
  17. typedef int8_t Bit8s;
  18. typedef int16_t Bit16s;
  19. typedef int32_t Bit32s;
  20. typedef int64_t Bit64s;
  21. typedef uint8_t Bit8u;
  22. typedef uint16_t Bit16u;
  23. typedef uint32_t Bit32u;
  24. typedef uint64_t Bit64u;
  25. typedef bool bx_bool;
  26. typedef Bit64u bx_address;
  27. #define BX_CPP_INLINE inline
  28. #endif
  29. #define BX_CONST64(x) (x##LL)
  30. #define GET32L(val64) ((Bit32u)(((Bit64u)(val64)) & 0xFFFFFFFF))
  31. #define GET32H(val64) ((Bit32u)(((Bit64u)(val64)) >> 32))
  32. #endif