home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / CMTEX330 / SOURCE / ARITH.H < prev    next >
Text File  |  1992-02-19  |  587b  |  37 lines

  1.  
  2. /*
  3.  * %Y%:%M%:%I%:%Q%
  4.  *
  5.  * Copyright 1987,1988,1991 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  *
  11.  */
  12.  
  13. #define UNITY    0200000
  14. #define TWO    0400000
  15.  
  16. int    half();
  17. scal    round_decimals();
  18. void    print_scaled();
  19.  
  20. global    bool    arith_error;
  21. global    scal    remainder;
  22.  
  23. scal    mult_and_add();
  24.  
  25. #define nx_plus_y(N,X,Y)    mult_and_add(N,X,Y,07777777777)
  26. #define mult_integers(N,X)    mult_and_add(N,X,0,017777777777)
  27.  
  28. scal    x_over_n();
  29. scal    xn_over_d();
  30.  
  31. #define INF_BAD    10000 
  32.  
  33. int    badness();
  34.  
  35. void    _arith_init();
  36. void    _arith_init_once();
  37.