ehead.h 1.1 KB

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