home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / math / m36.pro < prev    next >
Encoding:
Text File  |  1988-05-03  |  4.9 KB  |  105 lines

  1.  
  2. -------- SIMTEL20 Ada Software Repository Prologue ------------
  3. --                                                           -*
  4. -- Unit name    : Emulation of Machine Arithmetic
  5. -- Version      : 1.0
  6. -- Author       : SYSCON Corp
  7. --              : 3990 Sherman Street
  8. --              : San Diego, CA 92110
  9. --              : John Reddan
  10. --              : (619) 296-0085
  11. --              : Contact: Lt. Colonel Falgiano
  12. --              : ESD/SCW
  13. --              : Hanscom AFB, MA  01731
  14. -- DDN Address  :
  15. -- Copyright    : (c) 1985, SYSCON Corp
  16. -- Date created : June, 1985
  17. -- Release date : June, 1985
  18. -- Last update  : June, 1985
  19. -- Machine/System Compiled/Run on : VAX/VMS TeleSoft
  20. --                                                           -*
  21. ---------------------------------------------------------------
  22. --                                                           -*
  23. -- Keywords     : 
  24. ----------------:
  25. --
  26. -- Abstract   : 
  27. ----------------: The purpose of this package is to emulate
  28. ----------------: 36 bit machine host arithmetic on a 32 
  29. ----------------: bit host machine.  This package will provide 
  30. ----------------: support for 36 bit integer, real, and double 
  31. ----------------: precision real numbers in the form of the 
  32. ----------------: standard predefined arithmetic operations.
  33. ----------------: The ranges of the supported types are as 
  34. ----------------: follows:
  35. ----------------: 
  36. ----------------:   Integer
  37. ----------------:      range of -2**35 to 2**35-1
  38. ----------------:   Real
  39. ----------------:      range of 10**-38 to 10**38 and 0
  40. ----------------:      mantissa => 27 bit binary fraction
  41. ----------------:      exponent => -128 to 127
  42. ----------------:   Double Precision Real
  43. ----------------:      range of 10**-38 to 10**38 and 0
  44. ----------------:      mantissa => 63 bit binary fraction
  45. ----------------:      exponent => -128 to 127
  46. ----------------:
  47. ----------------: Any errors which occur during use of the arithmetic
  48. ----------------: exception declaration in the package specification can
  49. ----------------: be changed to a rename of the predefined exception
  50. ----------------: "NUMERIC_ERROR" for programs needing to handle
  51. ----------------: arithmetic errors in a general fashion.
  52. ----------------: Conversion functions are provided to assist in
  53. ----------------: programming mixed operand (32 and 36 bit)
  54. ----------------: arithmetic, and to facilitate IO.  These functions
  55. ----------------: should be renamed if they will be used extensively so
  56. ----------------: that the impact of the readability of a program's
  57. ----------------: arithmetic expressions is minimized.  The underlying
  58. ----------------: arithmetic will be performed in twos complement
  59. ----------------: arithmetic.
  60. ----------------: 
  61. ----------------: This tool was developed as a precursor for 
  62. ----------------: the WWMCCS Information System (WIS).  An
  63. ----------------: executable version of the tool has been 
  64. ----------------: demonstrated.  
  65. ----------------:
  66. --                                                           -*
  67. ------------------ Revision history ---------------------------
  68. --                                                           -*
  69. -- DATE           VERSION AUTHOR                  HISTORY 
  70. -- 6/85           1.0     SYSCON                  Initial Release
  71. --                                                           -*
  72. ------------------ Distribution and Copyright -----------------
  73. --                                                           -*
  74. -- This prologue must be included in all copies of this software.
  75. -- 
  76. -- This software is copyright by the author.
  77. -- 
  78. -- This software is released to the Ada community.
  79. -- This software is released to the Public Domain (note:
  80. --   software released to the Public Domain is not subject
  81. --   to copyright protection).
  82. -- Restrictions on use or distribution:  NONE
  83. --                                                           -*
  84. ----------------- Disclaimer ----------------------------------
  85. --                                                           -*
  86. -- This software and its documentation are provided "AS IS" and
  87. -- without any expressed or implied warranties whatsoever.
  88. --
  89. -- No warranties as to performance, merchantability, or fitness
  90. -- for a particular purpose exist.
  91. --
  92. -- Because of the diversity of conditions and hardware under
  93. -- which this software may be used, no warranty of fitness for
  94. -- a particular purpose is offered.  The user is advised to 
  95. -- test the software thoroughly before relying on it.  The user
  96. -- must assume the entire risk and liability of using this 
  97. -- software.
  98. --
  99. -- In no event shall any person or organization of people be
  100. -- held responsible for any direct, indirect, consequential
  101. -- or inconsequential damages or lost profits.
  102. --                                                          -*
  103. ----------------- END-PROLOGUE -------------------------------
  104.  
  105.