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.

51 lines
1.4 KiB

  1. #include "EM_types.h"
  2. #include "EM_support.h"
  3. #include "EM_prototypes.h"
  4. typedef struct _BUNDLE {
  5. EM_uint64_t BundleLow;
  6. EM_uint64_t BundleHigh;
  7. } BUNDLE;
  8. #ifdef WIN32_OR_WIN64
  9. typedef struct __declspec(align(16)) _FLOAT128_TYPE {
  10. #else
  11. typedef struct _FLOAT128_TYPE {
  12. #endif
  13. EM_uint64_t loFlt64;
  14. EM_uint64_t hiFlt64;
  15. } FLOAT128_TYPE;
  16. typedef struct fp_state_low_preserved_s {
  17. FLOAT128_TYPE fp_lp[4]; // f2-f5; f2=fp_lp[0], f3=fp_lp[1], ...
  18. } FP_STATE_LOW_PRESERVED;
  19. typedef struct fp_state_low_volatile_s {
  20. FLOAT128_TYPE fp_lv[10]; // f6-f15; f6=fp_lv[0], f7=fp_lv[1], ...
  21. } FP_STATE_LOW_VOLATILE;
  22. typedef struct fp_state_high_preserved_s {
  23. FLOAT128_TYPE fp_hp[16]; // f16-f31; f16=fp_hp[0], f17=fp_hp[1], ...
  24. } FP_STATE_HIGH_PRESERVED;
  25. typedef struct fp_state_high_volatile_s {
  26. FLOAT128_TYPE fp_hv[96]; // f32-f127; f32=fp_hv[0], f33=fp_hv[1], ...
  27. } FP_STATE_HIGH_VOLATILE;
  28. typedef struct fp_state_s {
  29. __int64 bitmask_low64; // f2-f63
  30. __int64 bitmask_high64; // f64-f127
  31. FP_STATE_LOW_PRESERVED *fp_state_low_preserved; // f2-f5
  32. FP_STATE_LOW_VOLATILE *fp_state_low_volatile; // f6-f15
  33. FP_STATE_HIGH_PRESERVED *fp_state_high_preserved; // f16-f31
  34. FP_STATE_HIGH_VOLATILE *fp_state_high_volatile; // f32-f127
  35. } FP_STATE;
  36. typedef struct {
  37. EM_int64_t retval; // r8
  38. EM_uint64_t err1; // r9
  39. EM_uint64_t err2; // r10
  40. EM_uint64_t err3; // r11
  41. } PAL_RETURN;