home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / astrnomy / de118i.zip / EHEAD.H < prev    next >
C/C++ Source or Header  |  1992-05-16  |  1KB  |  42 lines

  1.  
  2. /* Include file for extended precision arithmetic programs.
  3.  */
  4.  
  5. /* Number of 16 bit words in external x type format */
  6. #define NE 6
  7.  
  8. /* Number of 16 bit words in internal format */
  9. #define NI (NE+3)
  10.  
  11. /* Array offset to exponent */
  12. #define E 1
  13.  
  14. /* Array offset to high guard word */
  15. #define M 2
  16.  
  17. /* Number of bits of precision */
  18. #define NBITS ((NI-4)*16)
  19.  
  20. /* Maximum number of decimal digits in ASCII conversion
  21.  * = NBITS*log10(2)
  22.  */
  23. #define NDEC (NBITS*8/27)
  24.  
  25. /* The exponent of 1.0 */
  26. #define EXONE (0x3fff)
  27.  
  28. void eadd(), esub(), emul(), ediv();
  29. int ecmp(), enormlz(), eshift();
  30. void eshup1(), eshup8(), eshup6(), eshdn1(), eshdn8(), eshdn6();
  31. void eabs(), eneg(), emov(), eclear(), einfin(), efloor();
  32. void eldexp(), efrexp(), eifrac(), ltoe();
  33. void esqrt(), elog(), eexp(), etanh(), epow();
  34. void asctoe(), asctoe24(), asctoe53(), asctoe64();
  35. void etoasc(), e24toasc(), e53toasc(), e64toasc();
  36. void etoe64(), etoe53(), etoe24(), e64toe(), e53toe(), e24toe();
  37. void mtherr();
  38. extern unsigned short ezero[], ehalf[], eone[], etwo[];
  39. extern unsigned short elog2[], esqrt2[];
  40.  
  41. /* Copyright 1986 - 1988 by Stephen L. Moshier. */
  42.