Leaked source code of windows server 2003
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.

81 lines
1.8 KiB

  1. /***
  2. * Copyright (c) 1992-2001, Microsoft Corporation. All rights reserved.
  3. *
  4. * Module Name:
  5. *
  6. * debug.h
  7. *
  8. * Abstract:
  9. *
  10. * This module contains XMMI debugging definitions.
  11. *
  12. * Author:
  13. *
  14. * Ping L. Sager
  15. *
  16. * Revision History:
  17. *
  18. --*/
  19. #include <stdio.h>
  20. #include <conio.h>
  21. extern
  22. ULONG DebugImm8;
  23. extern
  24. ULONG DebugFlag;
  25. extern
  26. ULONG Console;
  27. extern
  28. ULONG NotOk;
  29. //Debugging
  30. #define XMMI_INFO 0x00000001
  31. #define XMMI_ERROR 0x00000002
  32. #define XMMI_WARNING 0x00000004
  33. void print_Rounding(PXMMI_ENV XmmiEnv);
  34. void print_Precision(PXMMI_ENV XmmiEnv);
  35. void print_CauseEnable(PXMMI_ENV XmmiEnv);
  36. void print_Status(PXMMI_ENV XmmiEnv);
  37. void print_Operations(PXMMI_ENV XmmiEnv);
  38. void print_Operand1(PXMMI_ENV XmmiEnv);
  39. void print_Operand2(PXMMI_ENV XmmiEnv);
  40. void print_Result(PXMMI_ENV XmmiEnv, BOOL Exception);
  41. void print_FPIEEE_RECORD_EXCEPTION (PXMMI_ENV XmmiEnv);
  42. void print_FPIEEE_RECORD_NO_EXCEPTION (PXMMI_ENV XmmiEnv);
  43. void print_FPIEEE_RECORD (PXMMI_ENV XmmiEnv);
  44. void dump_Data(PTEMP_EXCEPTION_POINTERS p);
  45. void dump_DataXMMI2(PTEMP_EXCEPTION_POINTERS p);
  46. void dump_Control(PTEMP_EXCEPTION_POINTERS p);
  47. void dump_XmmiFpEnv(PXMMI_FP_ENV XmmiFpEnv);
  48. void dump_fpieee_record(_FPIEEE_RECORD *pieee);
  49. void dump_OpLocation(POPERAND Operand);
  50. void dump_Format(_FPIEEE_VALUE *Operand);
  51. void print_FPIEEE_RECORD_EXCEPTION1 (PXMMI_ENV, ULONG, ULONG, ULONG);
  52. void print_FPIEEE_RECORD_EXCEPTION2 (PXMMI_ENV, ULONG, ULONG);
  53. void print_FPIEEE_RECORD_EXCEPTION3 (PXMMI_ENV, ULONG, ULONG);
  54. void print_FPIEEE_RECORD_NO_EXCEPTION1 (PXMMI_ENV, ULONG, ULONG, ULONG);
  55. void print_FPIEEE_RECORD_NO_EXCEPTION2 (PXMMI_ENV, ULONG, ULONG);
  56. void print_FPIEEE_RECORD_NO_EXCEPTION3 (PXMMI_ENV, ULONG, ULONG);