Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
952 B

  1. /******************************
  2. Intel Confidential
  3. ******************************/
  4. #ifndef _EM_PUBLIC_H
  5. #define _EM_PUBLIC_H
  6. // MACH
  7. // #define IN_KERNEL
  8. // MACH
  9. #define LITTLE_ENDIAN
  10. #ifndef INLINE
  11. #define INLINE
  12. #endif
  13. #if !(defined(BIG_ENDIAN) || defined(LITTLE_ENDIAN))
  14. #error Endianness not established; define BIG_ENDIAN or LITTLE_ENDIAN
  15. #endif
  16. /************************/
  17. /* System Include Files */
  18. /************************/
  19. #include <stdio.h>
  20. #include <memory.h>
  21. #ifndef unix
  22. #include <setjmp.h>
  23. #endif
  24. /*********************/
  25. /* Type Declarations */
  26. /*********************/
  27. #include "fetypes.h"
  28. #include "festate.h"
  29. #include "fesupprt.h"
  30. #include "fehelper.h"
  31. #include "feproto.h"
  32. #define U64_lsh(val, bits) ((bits) > 63 ? 0 : (EM_uint64_t)(val) << (bits))
  33. #define fp_U64_rsh(val, bits) ((bits) > 63 ? 0 : (EM_uint64_t)(val) >> (bits))
  34. #define LL_SSHR(val, bits) ((EM_uint64_t)(val) >> ((bits) > 63 ? 63 : (bits)))
  35. #endif