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.

156 lines
5.0 KiB

  1. /* file: cvt__globals.c */
  2. /*
  3. **
  4. ** COPYRIGHT (c) 1989 BY
  5. ** DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASSACHUSETTS.
  6. ** ALL RIGHTS RESERVED.
  7. **
  8. ** THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED
  9. ** ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE
  10. ** INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER
  11. ** COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
  12. ** OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY
  13. ** TRANSFERRED.
  14. **
  15. ** THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE
  16. ** AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT
  17. ** CORPORATION.
  18. **
  19. ** DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS
  20. ** SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.
  21. **
  22. */
  23. /*
  24. **++
  25. ** Facility:
  26. **
  27. ** CVT Run-Time Library
  28. **
  29. ** Abstract:
  30. **
  31. **
  32. ** Authors:
  33. **
  34. ** Math RTL
  35. **
  36. ** Creation Date: December 5, 1989.
  37. **
  38. ** Modification History:
  39. **
  40. ** 1-001 Original created.
  41. ** MRTL 5-Dec-1989.
  42. **
  43. **--
  44. */
  45. #include "cvt.h"
  46. #include "cvtpvt.h"
  47. unsigned long vax_c[] = {
  48. 0x00008000, 0x00000000, 0x00000000, 0x00000000, /* ROPs */
  49. 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* zeros */
  50. 0xffff7fff, 0xffffffff, 0xffffffff, 0xffffffff, /* +huge */
  51. 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, /* -huge */
  52. };
  53. unsigned long ieee_s[] = {
  54. 0x7fbfffff, /* little endian ieee s nan */
  55. 0xffffbf7f, /* big endian ieee s nan */
  56. 0x00000000, /* le ieee s +zero */
  57. 0x00000000, /* be ieee s +zero */
  58. 0x80000000, /* le ieee s -zero */
  59. 0x00000080, /* be ieee s -zero */
  60. 0x7f7fffff, /* le ieee s +huge */
  61. 0xffff7f7f, /* be ieee s +huge */
  62. 0xff7fffff, /* le ieee s -huge */
  63. 0xffff7fff, /* be ieee s -huge */
  64. 0x7f800000, /* le ieee s +infinity */
  65. 0x0000807f, /* be ieee s +infinity */
  66. 0xff800000, /* le ieee s -infinity */
  67. 0x000080ff, /* be ieee s -infinity */
  68. };
  69. unsigned long ieee_t[] = {
  70. 0xffffffff, 0x7ff7ffff, /* le ieee t nan */
  71. 0xfffff77f, 0xffffffff, /* be ieee t nan */
  72. 0x00000000, 0x00000000, /* le ieee t +zero */
  73. 0x00000000, 0x00000000, /* be ieee t +zero */
  74. 0x00000000, 0x80000000, /* le ieee t -zero */
  75. 0x00000080, 0x00000000, /* be ieee t -zero */
  76. 0xffffffff, 0x7fefffff, /* le ieee s +huge */
  77. 0xffffef7f, 0xffffffff, /* be ieee s +huge */
  78. 0xffffffff, 0xffefffff, /* le ieee s -huge */
  79. 0xffffefff, 0xffffffff, /* be ieee s -huge */
  80. 0x00000000, 0x7ff00000, /* le ieee t +infinity */
  81. 0x0000f07f, 0x00000000, /* be ieee t +infinity */
  82. 0x00000000, 0xfff00000, /* le ieee t -infinity */
  83. 0x0000f0ff, 0x00000000, /* be ieee t -infinity */
  84. };
  85. unsigned long ibm_s[] = {
  86. 0x000000ff, /* ibm s invalid */
  87. 0x00000000, /* ibm s +zero */
  88. 0x00000080, /* ibm s -zero */
  89. 0xffffff7f, /* ibm s +huge */
  90. 0xffffffff, /* ibm s -huge */
  91. 0xffffff7f, /* ibm s +infinity */
  92. 0xffffffff, /* ibm s -infinity */
  93. };
  94. unsigned long ibm_l[] = {
  95. 0x000000ff, 0x00000000, /* ibm t invalid */
  96. 0x00000000, 0x00000000, /* ibm t +zero */
  97. 0x00000080, 0x00000000, /* ibm t -zero */
  98. 0xffffff7f, 0xffffffff, /* ibm t +huge */
  99. 0xffffffff, 0xffffffff, /* ibm t -huge */
  100. 0xffffff7f, 0xffffffff, /* ibm t +infinity */
  101. 0xffffffff, 0xffffffff, /* ibm t -infinity */
  102. };
  103. unsigned long cray[] = {
  104. 0x00000060, 0x00000000, /* cray invalid */
  105. 0x00000000, 0x00000000, /* cray +zero */
  106. 0x00000080, 0x00000000, /* cray -zero */
  107. 0xffffff5f, 0xffffffff, /* cray +huge */
  108. 0xffffffdf, 0xffffffff, /* cray -huge */
  109. 0x00000060, 0x00000000, /* cray +infinity */
  110. 0x000000e0, 0x00000000, /* cray -infinity */
  111. };
  112. unsigned long int_c[] = {
  113. 0x00000000, /* le int nan */
  114. 0x00000000, /* be int nan */
  115. 0x00000000, /* le int zero */
  116. 0x00000000, /* be int zero */
  117. 0x7fffffff, /* le int +huge */
  118. 0xffffff7f, /* be int +huge */
  119. 0x80000000, /* le int -huge */
  120. 0x00000080, /* be int -huge */
  121. 0x7fffffff, /* le int +infinity */
  122. 0xffffff7f, /* be int +infinity */
  123. 0x80000000, /* le int -infinity */
  124. 0x00000080, /* be int -infinity */
  125. };