home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0638.ZIP / CCE_0638 / UPDATE / UPDATE30.ZOO / include / diffh
Text File  |  1993-05-21  |  17KB  |  868 lines

  1. ===================================================================
  2. RCS file: /net/acae127/home/bammi/etc/src/master/atari/include/PatchLev.h,v
  3. retrieving revision 1.49
  4. diff -c -r1.49 PatchLev.h
  5. *** 1.49    1993/03/29 03:21:52
  6. --- PatchLev.h    1993/05/21 12:53:20
  7. ***************
  8. *** 1,5 ****
  9.   
  10. ! #define    PatchLevel "88"
  11.   
  12.   /*
  13.    *
  14. --- 1,5 ----
  15.   
  16. ! #define    PatchLevel "89"
  17.   
  18.   /*
  19.    *
  20. ===================================================================
  21. RCS file: /net/acae127/home/bammi/etc/src/master/atari/include/math-68881.h,v
  22. retrieving revision 1.4
  23. diff -c -r1.4 math-68881.h
  24. *** 1.4    1992/06/03 15:23:13
  25. --- math-68881.h    1993/05/21 12:53:22
  26. ***************
  27. *** 1,6 ****
  28.   /******************************************************************\
  29.   *                                   *
  30. ! *  <math-68881.h>        last modified: 18 May 1989.       *
  31.   *                                   *
  32.   *  Copyright (C) 1989 by Matthew Self.                   *
  33.   *  You may freely distribute verbatim copies of this software       *
  34. --- 1,9 ----
  35. + #ifndef _MATH_68881_H
  36. + #define _MATH_68881_H
  37.   /******************************************************************\
  38.   *                                   *
  39. ! *  <math-68881.h>        last modified: 23 May 1992.       *
  40.   *                                   *
  41.   *  Copyright (C) 1989 by Matthew Self.                   *
  42.   *  You may freely distribute verbatim copies of this software       *
  43. ***************
  44. *** 19,27 ****
  45.   *                                   *
  46.   \******************************************************************/
  47.   
  48. ! /* Modified by Richard Stallman, November 1990, to initialize HUGE_VAL
  49. !    specially on a Sun.
  50. !    December 1989, add parens around `&' in pow.  */
  51.   
  52.   #include <errno.h>
  53.   
  54. --- 22,36 ----
  55.   *                                   *
  56.   \******************************************************************/
  57.   
  58. ! /* If you find this in GCC,
  59. !    please send bug reports to bug-gcc@prep.ai.mit.edu.  */
  60. ! /* Changed by Richard Stallman: % inserted before a #.
  61. !    New function `hypot' added.
  62. !    Nans written in hex to avoid 0rnan.
  63. !    May 1992, use %! for fpcr register.  Break lines before function names.
  64. !    December 1989, add parens around `&' in pow.
  65. !    November 1990, added alternate definition of HUGE_VAL for Sun.  */
  66.   
  67.   #include <errno.h>
  68.   
  69. ***************
  70. *** 38,44 ****
  71.   ({                                    \
  72.     double huge_val;                            \
  73.                                       \
  74. !   __asm ("fmove%.d #0x7ff0000000000000,%0"    /* Infinity */        \
  75.        : "=f" (huge_val)                        \
  76.        : /* no inputs */);                        \
  77.     huge_val;                                \
  78. --- 47,53 ----
  79.   ({                                    \
  80.     double huge_val;                            \
  81.                                       \
  82. !   __asm ("fmove%.d %#0x7ff0000000000000,%0"    /* Infinity */        \
  83.        : "=f" (huge_val)                        \
  84.        : /* no inputs */);                        \
  85.     huge_val;                                \
  86. ***************
  87. *** 46,52 ****
  88.   #endif
  89.   #endif
  90.   
  91. ! __inline static const double sin (double x)
  92.   {
  93.     double value;
  94.   
  95. --- 55,62 ----
  96.   #endif
  97.   #endif
  98.   
  99. ! __inline static const double
  100. ! sin (double x)
  101.   {
  102.     double value;
  103.   
  104. ***************
  105. *** 56,62 ****
  106.     return value;
  107.   }
  108.   
  109. ! __inline static const double cos (double x)
  110.   {
  111.     double value;
  112.   
  113. --- 66,73 ----
  114.     return value;
  115.   }
  116.   
  117. ! __inline static const double
  118. ! cos (double x)
  119.   {
  120.     double value;
  121.   
  122. ***************
  123. *** 66,72 ****
  124.     return value;
  125.   }
  126.   
  127. ! __inline static const double tan (double x)
  128.   {
  129.     double value;
  130.   
  131. --- 77,84 ----
  132.     return value;
  133.   }
  134.   
  135. ! __inline static const double
  136. ! tan (double x)
  137.   {
  138.     double value;
  139.   
  140. ***************
  141. *** 76,82 ****
  142.     return value;
  143.   }
  144.   
  145. ! __inline static const double asin (double x)
  146.   {
  147.     double value;
  148.   
  149. --- 88,95 ----
  150.     return value;
  151.   }
  152.   
  153. ! __inline static const double
  154. ! asin (double x)
  155.   {
  156.     double value;
  157.   
  158. ***************
  159. *** 86,92 ****
  160.     return value;
  161.   }
  162.   
  163. ! __inline static const double acos (double x)
  164.   {
  165.     double value;
  166.   
  167. --- 99,106 ----
  168.     return value;
  169.   }
  170.   
  171. ! __inline static const double
  172. ! acos (double x)
  173.   {
  174.     double value;
  175.   
  176. ***************
  177. *** 96,102 ****
  178.     return value;
  179.   }
  180.   
  181. ! __inline static const double atan (double x)
  182.   {
  183.     double value;
  184.   
  185. --- 110,117 ----
  186.     return value;
  187.   }
  188.   
  189. ! __inline static const double
  190. ! atan (double x)
  191.   {
  192.     double value;
  193.   
  194. ***************
  195. *** 106,112 ****
  196.     return value;
  197.   }
  198.   
  199. ! __inline static const double atan2 (double y, double x)
  200.   {
  201.     double pi, pi_over_2;
  202.   
  203. --- 121,128 ----
  204.     return value;
  205.   }
  206.   
  207. ! __inline static const double
  208. ! atan2 (double y, double x)
  209.   {
  210.     double pi, pi_over_2;
  211.   
  212. ***************
  213. *** 152,157 ****
  214. --- 168,174 ----
  215.           {
  216.             double value;
  217.   
  218. +           errno = EDOM;
  219.             __asm ("fmove%.d %#0x7fffffffffffffff,%0"     /* quiet NaN */
  220.                : "=f" (value)
  221.                : /* no inputs */);
  222. ***************
  223. *** 161,167 ****
  224.       }
  225.   }
  226.   
  227. ! __inline static const double sinh (double x)
  228.   {
  229.     double value;
  230.   
  231. --- 178,185 ----
  232.       }
  233.   }
  234.   
  235. ! __inline static const double
  236. ! sinh (double x)
  237.   {
  238.     double value;
  239.   
  240. ***************
  241. *** 171,177 ****
  242.     return value;
  243.   }
  244.   
  245. ! __inline static const double cosh (double x)
  246.   {
  247.     double value;
  248.   
  249. --- 189,196 ----
  250.     return value;
  251.   }
  252.   
  253. ! __inline static const double
  254. ! cosh (double x)
  255.   {
  256.     double value;
  257.   
  258. ***************
  259. *** 181,187 ****
  260.     return value;
  261.   }
  262.   
  263. ! __inline static const double tanh (double x)
  264.   {
  265.     double value;
  266.   
  267. --- 200,207 ----
  268.     return value;
  269.   }
  270.   
  271. ! __inline static const double
  272. ! tanh (double x)
  273.   {
  274.     double value;
  275.   
  276. ***************
  277. *** 191,197 ****
  278.     return value;
  279.   }
  280.   
  281. ! __inline static const double atanh (double x)
  282.   {
  283.     double value;
  284.   
  285. --- 211,218 ----
  286.     return value;
  287.   }
  288.   
  289. ! __inline static const double
  290. ! atanh (double x)
  291.   {
  292.     double value;
  293.   
  294. ***************
  295. *** 201,207 ****
  296.     return value;
  297.   }
  298.   
  299. ! __inline static const double exp (double x)
  300.   {
  301.     double value;
  302.   
  303. --- 222,229 ----
  304.     return value;
  305.   }
  306.   
  307. ! __inline static const double
  308. ! exp (double x)
  309.   {
  310.     double value;
  311.   
  312. ***************
  313. *** 211,217 ****
  314.     return value;
  315.   }
  316.   
  317. ! __inline static const double expm1 (double x)
  318.   {
  319.     double value;
  320.   
  321. --- 233,240 ----
  322.     return value;
  323.   }
  324.   
  325. ! __inline static const double
  326. ! expm1 (double x)
  327.   {
  328.     double value;
  329.   
  330. ***************
  331. *** 221,227 ****
  332.     return value;
  333.   }
  334.   
  335. ! __inline static const double log (double x)
  336.   {
  337.     double value;
  338.   
  339. --- 244,251 ----
  340.     return value;
  341.   }
  342.   
  343. ! __inline static const double
  344. ! log (double x)
  345.   {
  346.     double value;
  347.   
  348. ***************
  349. *** 231,237 ****
  350.     return value;
  351.   }
  352.   
  353. ! __inline static const double log1p (double x)
  354.   {
  355.     double value;
  356.   
  357. --- 255,262 ----
  358.     return value;
  359.   }
  360.   
  361. ! __inline static const double
  362. ! log1p (double x)
  363.   {
  364.     double value;
  365.   
  366. ***************
  367. *** 241,247 ****
  368.     return value;
  369.   }
  370.   
  371. ! __inline static const double log10 (double x)
  372.   {
  373.     double value;
  374.   
  375. --- 266,273 ----
  376.     return value;
  377.   }
  378.   
  379. ! __inline static const double
  380. ! log10 (double x)
  381.   {
  382.     double value;
  383.   
  384. ***************
  385. *** 251,257 ****
  386.     return value;
  387.   }
  388.   
  389. ! __inline static const double sqrt (double x)
  390.   {
  391.     double value;
  392.   
  393. --- 277,284 ----
  394.     return value;
  395.   }
  396.   
  397. ! __inline static const double
  398. ! sqrt (double x)
  399.   {
  400.     double value;
  401.   
  402. ***************
  403. *** 261,273 ****
  404.     return value;
  405.   }
  406.   
  407. ! __inline static const double hypot (const double x, const double y)
  408.   {
  409. !     return sqrt(x*x + y*y);
  410.   }
  411.   
  412. ! __inline static const double pow (const double x, const double y)
  413.   {
  414.     if (x > 0)
  415.       return exp (y * log (x));
  416. --- 288,301 ----
  417.     return value;
  418.   }
  419.   
  420. ! __inline static const double
  421. ! hypot (const double x, const double y)
  422.   {
  423. !   return sqrt (x*x + y*y);
  424.   }
  425.   
  426. ! __inline static const double
  427. ! pow (const double x, const double y)
  428.   {
  429.     if (x > 0)
  430.       return exp (y * log (x));
  431. ***************
  432. *** 279,285 ****
  433.       {
  434.         double value;
  435.   
  436. !           __asm ("fmove%.d %#0x7fffffffffffffff,%0"     /* quiet NaN */
  437.            : "=f" (value)
  438.            : /* no inputs */);
  439.         return value;
  440. --- 307,314 ----
  441.       {
  442.         double value;
  443.   
  444. !       errno = EDOM;
  445. !       __asm ("fmove%.d %#0x7fffffffffffffff,%0"        /* quiet NaN */
  446.            : "=f" (value)
  447.            : /* no inputs */);
  448.         return value;
  449. ***************
  450. *** 305,311 ****
  451.           {
  452.         double value;
  453.   
  454. !           __asm ("fmove%.d %#0x7fffffffffffffff,%0"     /* quiet NaN */
  455.            : "=f" (value)
  456.            : /* no inputs */);
  457.         return value;
  458. --- 334,341 ----
  459.           {
  460.         double value;
  461.   
  462. !       errno = EDOM;
  463. !       __asm ("fmove%.d %#0x7fffffffffffffff,%0"        /* quiet NaN */
  464.            : "=f" (value)
  465.            : /* no inputs */);
  466.         return value;
  467. ***************
  468. *** 313,319 ****
  469.       }
  470.   }
  471.   
  472. ! __inline static const double fabs (double x)
  473.   {
  474.     double value;
  475.   
  476. --- 343,350 ----
  477.       }
  478.   }
  479.   
  480. ! __inline static const double
  481. ! fabs (double x)
  482.   {
  483.     double value;
  484.   
  485. ***************
  486. *** 323,393 ****
  487.     return value;
  488.   }
  489.   
  490. ! __inline static const double ceil (double x)
  491.   {
  492.     int rounding_mode, round_up;
  493.     double value;
  494.   
  495. !   __asm volatile ("fmove%.l fpcr,%0"
  496.             : "=dm" (rounding_mode)
  497.             : /* no inputs */ );
  498.     round_up = rounding_mode | 0x30;
  499. !   __asm volatile ("fmove%.l %0,fpcr"
  500.             : /* no outputs */
  501.             : "dmi" (round_up));
  502.     __asm volatile ("fint%.x %1,%0"
  503.             : "=f" (value)
  504.             : "f" (x));
  505. !   __asm volatile ("fmove%.l %0,fpcr"
  506.             : /* no outputs */
  507.             : "dmi" (rounding_mode));
  508.     return value;
  509.   }
  510.   
  511. ! __inline static const double floor (double x)
  512.   {
  513.     int rounding_mode, round_down;
  514.     double value;
  515.   
  516. !   __asm volatile ("fmove%.l fpcr,%0"
  517.             : "=dm" (rounding_mode)
  518.             : /* no inputs */ );
  519.     round_down = (rounding_mode & ~0x10)
  520.           | 0x20;
  521. !   __asm volatile ("fmove%.l %0,fpcr"
  522.             : /* no outputs */
  523.             : "dmi" (round_down));
  524.     __asm volatile ("fint%.x %1,%0"
  525.             : "=f" (value)
  526.             : "f" (x));
  527. !   __asm volatile ("fmove%.l %0,fpcr"
  528.             : /* no outputs */
  529.             : "dmi" (rounding_mode));
  530.     return value;
  531.   }
  532.   
  533. ! __inline static const double rint (double x)
  534.   {
  535.     int rounding_mode, round_nearest;
  536.     double value;
  537.   
  538. !   __asm volatile ("fmove%.l fpcr,%0"
  539.             : "=dm" (rounding_mode)
  540.             : /* no inputs */ );
  541.     round_nearest = rounding_mode & ~0x30;
  542. !   __asm volatile ("fmove%.l %0,fpcr"
  543.             : /* no outputs */
  544.             : "dmi" (round_nearest));
  545.     __asm volatile ("fint%.x %1,%0"
  546.             : "=f" (value)
  547.             : "f" (x));
  548. !   __asm volatile ("fmove%.l %0,fpcr"
  549.             : /* no outputs */
  550.             : "dmi" (rounding_mode));
  551.     return value;
  552.   }
  553.   
  554. ! __inline static const double fmod (double x, double y)
  555.   {
  556.     double value;
  557.   
  558. --- 354,428 ----
  559.     return value;
  560.   }
  561.   
  562. ! __inline static const double
  563. ! ceil (double x)
  564.   {
  565.     int rounding_mode, round_up;
  566.     double value;
  567.   
  568. !   __asm volatile ("fmove%.l %!,%0"
  569.             : "=dm" (rounding_mode)
  570.             : /* no inputs */ );
  571.     round_up = rounding_mode | 0x30;
  572. !   __asm volatile ("fmove%.l %0,%!"
  573.             : /* no outputs */
  574.             : "dmi" (round_up));
  575.     __asm volatile ("fint%.x %1,%0"
  576.             : "=f" (value)
  577.             : "f" (x));
  578. !   __asm volatile ("fmove%.l %0,%!"
  579.             : /* no outputs */
  580.             : "dmi" (rounding_mode));
  581.     return value;
  582.   }
  583.   
  584. ! __inline static const double
  585. ! floor (double x)
  586.   {
  587.     int rounding_mode, round_down;
  588.     double value;
  589.   
  590. !   __asm volatile ("fmove%.l %!,%0"
  591.             : "=dm" (rounding_mode)
  592.             : /* no inputs */ );
  593.     round_down = (rounding_mode & ~0x10)
  594.           | 0x20;
  595. !   __asm volatile ("fmove%.l %0,%!"
  596.             : /* no outputs */
  597.             : "dmi" (round_down));
  598.     __asm volatile ("fint%.x %1,%0"
  599.             : "=f" (value)
  600.             : "f" (x));
  601. !   __asm volatile ("fmove%.l %0,%!"
  602.             : /* no outputs */
  603.             : "dmi" (rounding_mode));
  604.     return value;
  605.   }
  606.   
  607. ! __inline static const double
  608. ! rint (double x)
  609.   {
  610.     int rounding_mode, round_nearest;
  611.     double value;
  612.   
  613. !   __asm volatile ("fmove%.l %!,%0"
  614.             : "=dm" (rounding_mode)
  615.             : /* no inputs */ );
  616.     round_nearest = rounding_mode & ~0x30;
  617. !   __asm volatile ("fmove%.l %0,%!"
  618.             : /* no outputs */
  619.             : "dmi" (round_nearest));
  620.     __asm volatile ("fint%.x %1,%0"
  621.             : "=f" (value)
  622.             : "f" (x));
  623. !   __asm volatile ("fmove%.l %0,%!"
  624.             : /* no outputs */
  625.             : "dmi" (rounding_mode));
  626.     return value;
  627.   }
  628.   
  629. ! __inline static const double
  630. ! fmod (double x, double y)
  631.   {
  632.     double value;
  633.   
  634. ***************
  635. *** 398,404 ****
  636.     return value;
  637.   }
  638.   
  639. ! __inline static const double drem (double x, double y)
  640.   {
  641.     double value;
  642.   
  643. --- 433,440 ----
  644.     return value;
  645.   }
  646.   
  647. ! __inline static const double
  648. ! drem (double x, double y)
  649.   {
  650.     double value;
  651.   
  652. ***************
  653. *** 409,415 ****
  654.     return value;
  655.   }
  656.   
  657. ! __inline static const double scalb (double x, int n)
  658.   {
  659.     double value;
  660.   
  661. --- 445,452 ----
  662.     return value;
  663.   }
  664.   
  665. ! __inline static const double
  666. ! scalb (double x, int n)
  667.   {
  668.     double value;
  669.   
  670. ***************
  671. *** 420,426 ****
  672.     return value;
  673.   }
  674.   
  675. ! __inline static double logb (double x)
  676.   {
  677.     double exponent;
  678.   
  679. --- 457,464 ----
  680.     return value;
  681.   }
  682.   
  683. ! __inline static double
  684. ! logb (double x)
  685.   {
  686.     double exponent;
  687.   
  688. ***************
  689. *** 430,436 ****
  690.     return exponent;
  691.   }
  692.   
  693. ! __inline static const double ldexp (double x, int n)
  694.   {
  695.     double value;
  696.   
  697. --- 468,475 ----
  698.     return exponent;
  699.   }
  700.   
  701. ! __inline static const double
  702. ! ldexp (double x, int n)
  703.   {
  704.     double value;
  705.   
  706. ***************
  707. *** 441,447 ****
  708.     return value;
  709.   }
  710.   
  711. ! __inline static double frexp (double x, int *exp)
  712.   {
  713.     double float_exponent;
  714.     int int_exponent;
  715. --- 480,487 ----
  716.     return value;
  717.   }
  718.   
  719. ! __inline static double
  720. ! frexp (double x, int *exp)
  721.   {
  722.     double float_exponent;
  723.     int int_exponent;
  724. ***************
  725. *** 465,471 ****
  726.     return mantissa;
  727.   }
  728.   
  729. ! __inline static double modf (double x, double *ip)
  730.   {
  731.     double temp;
  732.   
  733. --- 505,512 ----
  734.     return mantissa;
  735.   }
  736.   
  737. ! __inline static double
  738. ! modf (double x, double *ip)
  739.   {
  740.     double temp;
  741.   
  742. ***************
  743. *** 475,477 ****
  744. --- 516,520 ----
  745.     *ip = temp;
  746.     return x - temp;
  747.   }
  748. + #endif /* _MATH_68881_H */
  749. ===================================================================
  750. RCS file: /net/acae127/home/bammi/etc/src/master/atari/include/math.h,v
  751. retrieving revision 1.16
  752. diff -c -r1.16 math.h
  753. *** 1.16    1992/10/09 20:53:12
  754. --- math.h    1993/05/21 12:53:23
  755. ***************
  756. *** 100,112 ****
  757.   
  758.   extern const double _infinitydf;    /* in normdf.cpp */
  759.   
  760. - #define HUGE_VAL  (_infinitydf)
  761. - #define HUGE HUGE_VAL
  762.   
  763. ! #ifdef _M68881
  764. ! #include <math-68881.h>
  765.   #endif
  766.   
  767.   #ifdef __GNUC__
  768.   # ifndef __cplusplus
  769.   #  ifndef max
  770. --- 100,114 ----
  771.   
  772.   extern const double _infinitydf;    /* in normdf.cpp */
  773.   
  774.   
  775. ! #if defined(_M68881) || defined(__M68881__)
  776. ! #  include <math-68881.h>
  777. ! #else
  778. ! #  define HUGE_VAL  (_infinitydf)
  779.   #endif
  780.   
  781. + #define HUGE HUGE_VAL
  782.   #ifdef __GNUC__
  783.   # ifndef __cplusplus
  784.   #  ifndef max
  785. ***************
  786. *** 116,122 ****
  787.   # endif
  788.   #endif
  789.   
  790. ! #ifndef _M68881
  791.   __EXTERN double    acos    __PROTO((double));
  792.   __EXTERN double asin    __PROTO((double));
  793.   __EXTERN double atan    __PROTO((double));
  794. --- 118,124 ----
  795.   # endif
  796.   #endif
  797.   
  798. ! #if !(defined(_M68881) || defined(__M68881__))
  799.   __EXTERN double    acos    __PROTO((double));
  800.   __EXTERN double asin    __PROTO((double));
  801.   __EXTERN double atan    __PROTO((double));
  802. ***************
  803. *** 148,154 ****
  804.   
  805.   #ifndef __STRICT_ANSI__
  806.   
  807. ! #ifdef _M68881
  808.   #  define dabs(x) fabs(x)
  809.   #endif
  810.   
  811. --- 150,156 ----
  812.   
  813.   #ifndef __STRICT_ANSI__
  814.   
  815. ! #if defined(_M68881) || defined(__M68881__)
  816.   #  define dabs(x) fabs(x)
  817.   #endif
  818.   
  819. ***************
  820. *** 184,190 ****
  821.   
  822.   #endif /* __STRICT_ANSI__ */
  823.   
  824. ! #ifndef _M68881
  825.   __EXTERN double modf    __PROTO((double, double *));
  826.   __EXTERN double ldexp    __PROTO((double, int));
  827.   __EXTERN double frexp    __PROTO((double, int *));
  828. --- 186,192 ----
  829.   
  830.   #endif /* __STRICT_ANSI__ */
  831.   
  832. ! #if !(defined(_M68881) || defined(__M68881__))
  833.   __EXTERN double modf    __PROTO((double, double *));
  834.   __EXTERN double ldexp    __PROTO((double, int));
  835.   __EXTERN double frexp    __PROTO((double, int *));
  836. ===================================================================
  837. RCS file: /net/acae127/home/bammi/etc/src/master/atari/include/vdibind.h,v
  838. retrieving revision 1.12
  839. diff -c -r1.12 vdibind.h
  840. *** 1.12    1993/02/22 06:24:52
  841. --- vdibind.h    1993/05/21 15:17:12
  842. ***************
  843. *** 332,339 ****
  844.    * Set FSM error mode.
  845.    * mode=1: (default) errors go to screen.
  846.    * mode=0: errors reported in error variable `errorvar'.
  847.    */
  848. ! __EXTERN void vst_error __PROTO((int handle, int mode, int *errorvar));
  849.   
  850.   /*
  851.    * v_gtext with optional shadow attribute
  852. --- 332,341 ----
  853.    * Set FSM error mode.
  854.    * mode=1: (default) errors go to screen.
  855.    * mode=0: errors reported in error variable `errorvar'.
  856. +  *   NOTICE: the pointer for errorvar is a pointer to short
  857. +  *           (in 32 bit mode it would make a difference)
  858.    */
  859. ! __EXTERN void vst_error __PROTO((int handle, int mode, short *errorvar));
  860.   
  861.   /*
  862.    * v_gtext with optional shadow attribute
  863.