home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-05-08 | 23.5 KB | 1,228 lines |
- Only in f2c/libF77: amath.h
- diff -a -d +context f2c_1/libF77/c_cos.c f2c/libF77/c_cos.c
- *** f2c_1/libF77/c_cos.c Mon Dec 10 15:28:22 1990
- --- f2c/libF77/c_cos.c Wed Apr 29 13:12:38 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID c_cos(r, z)
- complex *r, *z;
- {
- + #ifndef MFPU
- double sin(), cos(), sinh(), cosh();
- + #endif
-
- r->r = cos(z->r) * cosh(z->i);
- r->i = - sin(z->r) * sinh(z->i);
- diff -a -d +context f2c_1/libF77/c_exp.c f2c/libF77/c_exp.c
- *** f2c_1/libF77/c_exp.c Mon Dec 10 15:28:22 1990
- --- f2c/libF77/c_exp.c Wed Apr 29 13:13:35 1992
- ***************
- *** 1,10 ****
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID c_exp(r, z)
- complex *r, *z;
- {
- double expx;
- + #ifndef MFPU
- double exp(), cos(), sin();
- + #endif
-
- expx = exp(z->r);
- r->r = expx * cos(z->i);
- diff -a -d +context f2c_1/libF77/c_log.c f2c/libF77/c_log.c
- *** f2c_1/libF77/c_log.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/c_log.c Wed Apr 29 13:18:15 1992
- ***************
- *** 1,9 ****
- #include "f2c.h"
-
- VOID c_log(r, z)
- complex *r, *z;
- {
- ! double log(), cabs(), atan2();
-
- r->i = atan2(z->i, z->r);
- r->r = log( cabs(z->r, z->i) );
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID c_log(r, z)
- complex *r, *z;
- {
- ! double cabs();
- ! #ifndef MFPU
- ! double log(), atan2();
- ! #endif
-
- r->i = atan2(z->i, z->r);
- r->r = log( cabs(z->r, z->i) );
- diff -a -d +context f2c_1/libF77/c_sin.c f2c/libF77/c_sin.c
- *** f2c_1/libF77/c_sin.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/c_sin.c Wed Apr 29 13:19:36 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID c_sin(r, z)
- complex *r, *z;
- {
- + #ifndef MFPU
- double sin(), cos(), sinh(), cosh();
- + #endif
-
- r->r = sin(z->r) * cosh(z->i);
- r->i = cos(z->r) * sinh(z->i);
- diff -a -d +context f2c_1/libF77/c_sqrt.c f2c/libF77/c_sqrt.c
- *** f2c_1/libF77/c_sqrt.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/c_sqrt.c Wed Apr 29 13:20:23 1992
- ***************
- *** 1,9 ****
- #include "f2c.h"
-
- VOID c_sqrt(r, z)
- complex *r, *z;
- {
- ! double mag, t, sqrt(), cabs();
-
- if( (mag = cabs(z->r, z->i)) == 0.)
- r->r = r->i = 0.;
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID c_sqrt(r, z)
- complex *r, *z;
- {
- ! double mag, t, cabs();
- ! #ifndef MFPU
- ! double sqrt();
- ! #endif
-
- if( (mag = cabs(z->r, z->i)) == 0.)
- r->r = r->i = 0.;
- diff -a -d +context f2c_1/libF77/cabs.c f2c/libF77/cabs.c
- *** f2c_1/libF77/cabs.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/cabs.c Wed Apr 29 13:09:36 1992
- ***************
- *** 1,7 ****
- double cabs(real, imag)
- double real, imag;
- {
- ! double temp, sqrt();
-
- if(real < 0)
- real = -real;
- --- 1,16 ----
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double cabs(real, imag)
- double real, imag;
- {
- ! double temp;
- ! #ifndef LATTICE_50
- ! #ifndef MFPU
- ! double sqrt();
- ! #endif
- ! #endif
-
- if(real < 0)
- real = -real;
- diff -a -d +context f2c_1/libF77/d_acos.c f2c/libF77/d_acos.c
- *** f2c_1/libF77/d_acos.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/d_acos.c Wed Apr 29 13:20:55 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_acos(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double acos();
- + #endif
- return( acos(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_asin.c f2c/libF77/d_asin.c
- *** f2c_1/libF77/d_asin.c Mon Dec 10 15:28:24 1990
- --- f2c/libF77/d_asin.c Wed Apr 29 13:21:02 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_asin(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double asin();
- + #endif
- return( asin(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_atan.c f2c/libF77/d_atan.c
- *** f2c_1/libF77/d_atan.c Mon Dec 10 15:28:26 1990
- --- f2c/libF77/d_atan.c Wed Apr 29 13:21:09 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_atan(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double atan();
- + #endif
- return( atan(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_atn2.c f2c/libF77/d_atn2.c
- *** f2c_1/libF77/d_atn2.c Mon Dec 10 15:28:26 1990
- --- f2c/libF77/d_atn2.c Tue Apr 28 19:58:59 1992
- ***************
- *** 1,5 ****
- --- 1,9 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_atn2(x,y)
- doublereal *x, *y;
- {
- diff -a -d +context f2c_1/libF77/d_cos.c f2c/libF77/d_cos.c
- *** f2c_1/libF77/d_cos.c Mon Dec 10 15:28:26 1990
- --- f2c/libF77/d_cos.c Wed Apr 29 13:21:59 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_cos(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double cos();
- + #endif
- return( cos(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_cosh.c f2c/libF77/d_cosh.c
- *** f2c_1/libF77/d_cosh.c Mon Dec 10 15:28:26 1990
- --- f2c/libF77/d_cosh.c Wed Apr 29 13:22:12 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_cosh(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double cosh();
- + #endif
- return( cosh(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_exp.c f2c/libF77/d_exp.c
- *** f2c_1/libF77/d_exp.c Mon Dec 10 15:28:26 1990
- --- f2c/libF77/d_exp.c Wed Apr 29 13:22:23 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_exp(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double exp();
- + #endif
- return( exp(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_int.c f2c/libF77/d_int.c
- *** f2c_1/libF77/d_int.c Mon Dec 10 15:28:28 1990
- --- f2c/libF77/d_int.c Wed Apr 29 13:22:38 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_int(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x>0) ? floor(*x) : -floor(- *x) );
- }
- diff -a -d +context f2c_1/libF77/d_lg10.c f2c/libF77/d_lg10.c
- *** f2c_1/libF77/d_lg10.c Mon Dec 10 15:28:28 1990
- --- f2c/libF77/d_lg10.c Wed Apr 29 13:24:52 1992
- ***************
- *** 1,11 ****
- --- 1,17 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- #define log10e 0.43429448190325182765
-
- double d_lg10(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double log();
- + #endif
-
- return( log10e * log(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_log.c f2c/libF77/d_log.c
- *** f2c_1/libF77/d_log.c Mon Dec 10 15:28:28 1990
- --- f2c/libF77/d_log.c Wed Apr 29 13:24:59 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_log(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double log();
- + #endif
- return( log(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_mod.c f2c/libF77/d_mod.c
- *** f2c_1/libF77/d_mod.c Mon Dec 10 15:28:28 1990
- --- f2c/libF77/d_mod.c Wed Apr 29 13:25:34 1992
- ***************
- *** 1,5 ****
- --- 1,9 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_mod(x,y)
- doublereal *x, *y;
- {
- ***************
- *** 16,22 ****
- z -= ya;
- return z;
- #else
- ! double floor(), quotient;
- if( (quotient = *x / *y) >= 0)
- quotient = floor(quotient);
- else
- --- 20,29 ----
- z -= ya;
- return z;
- #else
- ! double quotient;
- ! #ifndef MFPU
- ! double floor();
- ! #endif
- if( (quotient = *x / *y) >= 0)
- quotient = floor(quotient);
- else
- diff -a -d +context f2c_1/libF77/d_nint.c f2c/libF77/d_nint.c
- *** f2c_1/libF77/d_nint.c Mon Dec 10 15:28:28 1990
- --- f2c/libF77/d_nint.c Wed Apr 29 13:25:44 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_nint(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- floor(*x + .5) : -floor(.5 - *x) );
- diff -a -d +context f2c_1/libF77/d_sin.c f2c/libF77/d_sin.c
- *** f2c_1/libF77/d_sin.c Mon Dec 10 15:28:30 1990
- --- f2c/libF77/d_sin.c Wed Apr 29 13:26:00 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_sin(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double sin();
- + #endif
- return( sin(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_sinh.c f2c/libF77/d_sinh.c
- *** f2c_1/libF77/d_sinh.c Mon Dec 10 15:28:30 1990
- --- f2c/libF77/d_sinh.c Wed Apr 29 13:26:08 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_sinh(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double sinh();
- + #endif
- return( sinh(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_sqrt.c f2c/libF77/d_sqrt.c
- *** f2c_1/libF77/d_sqrt.c Mon Dec 10 15:28:30 1990
- --- f2c/libF77/d_sqrt.c Wed Apr 29 13:26:46 1992
- ***************
- *** 1,8 ****
- --- 1,11 ----
- #include "f2c.h"
- + #include "amath.h"
-
- double d_sqrt(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double sqrt();
- + #endif
- return( sqrt(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_tan.c f2c/libF77/d_tan.c
- *** f2c_1/libF77/d_tan.c Mon Dec 10 15:28:30 1990
- --- f2c/libF77/d_tan.c Wed Apr 29 13:27:07 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_tan(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double tan();
- + #endif
- return( tan(*x) );
- }
- diff -a -d +context f2c_1/libF77/d_tanh.c f2c/libF77/d_tanh.c
- *** f2c_1/libF77/d_tanh.c Mon Dec 10 15:28:30 1990
- --- f2c/libF77/d_tanh.c Wed Apr 29 13:27:21 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double d_tanh(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double tanh();
- + #endif
- return( tanh(*x) );
- }
- Only in f2c/libF77: f2c.h
- diff -a -d +context f2c_1/libF77/h_dnnt.c f2c/libF77/h_dnnt.c
- *** f2c_1/libF77/h_dnnt.c Mon Dec 10 15:28:34 1990
- --- f2c/libF77/h_dnnt.c Wed Apr 29 13:42:45 1992
- ***************
- *** 1,4 ****
- --- 1,5 ----
- #include "f2c.h"
- + #include "amath.h"
-
- extern integer s_cmp();
-
- ***************
- *** 5,12 ****
- shortint h_dnnt(x)
- doublereal *x;
- {
- double floor();
-
- return( (*x)>=0 ?
- ! floor(*x + .5) : -floor(.5 - *x) );
- }
- --- 6,15 ----
- shortint h_dnnt(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- ! (shortint)(floor(*x + .5)) : (shortint)(-floor(.5 - *x)) );
- }
- diff -a -d +context f2c_1/libF77/h_nint.c f2c/libF77/h_nint.c
- *** f2c_1/libF77/h_nint.c Mon Dec 10 15:28:34 1990
- --- f2c/libF77/h_nint.c Wed Apr 29 13:47:27 1992
- ***************
- *** 1,12 ****
- #include "f2c.h"
-
- extern integer s_cmp();
-
- shortint h_nint(x)
- real *x;
- {
- double floor();
-
- return( (*x)>=0 ?
- ! floor(*x + .5) : -floor(.5 - *x) );
- }
- --- 1,18 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- extern integer s_cmp();
-
- shortint h_nint(x)
- real *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- ! (shortint)(floor(*x + .5)) : (shortint)(-floor(.5 - *x)) );
- }
- diff -a -d +context f2c_1/libF77/i_dnnt.c f2c/libF77/i_dnnt.c
- *** f2c_1/libF77/i_dnnt.c Mon Dec 10 15:28:38 1990
- --- f2c/libF77/i_dnnt.c Wed Apr 29 13:43:32 1992
- ***************
- *** 1,10 ****
- #include "f2c.h"
-
- integer i_dnnt(x)
- doublereal *x;
- {
- double floor();
-
- return( (*x)>=0 ?
- ! floor(*x + .5) : -floor(.5 - *x) );
- }
- --- 1,13 ----
- #include "f2c.h"
- + #include "amath.h"
-
- integer i_dnnt(x)
- doublereal *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- ! (integer)(floor(*x + .5)) : (integer)(-floor(.5 - *x)) );
- }
- diff -a -d +context f2c_1/libF77/i_nint.c f2c/libF77/i_nint.c
- *** f2c_1/libF77/i_nint.c Mon Dec 10 15:28:38 1990
- --- f2c/libF77/i_nint.c Wed Apr 29 13:46:34 1992
- ***************
- *** 1,10 ****
- #include "f2c.h"
-
- integer i_nint(x)
- real *x;
- {
- double floor();
-
- return( (*x)>=0 ?
- ! floor(*x + .5) : -floor(.5 - *x) );
- }
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- integer i_nint(x)
- real *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- ! (integer)(floor(*x + .5)) : (integer)(-floor(.5 - *x)) );
- }
- diff -a -d +context f2c_1/libF77/main.c f2c/libF77/main.c
- *** f2c_1/libF77/main.c Mon Dec 10 15:28:42 1990
- --- f2c/libF77/main.c Tue Apr 28 18:16:16 1992
- ***************
- *** 1,7 ****
- /* STARTUP PROCEDURE FOR UNIX FORTRAN PROGRAMS */
-
- ! #include "stdio.h"
- ! #include "signal.h"
-
- #ifndef SIGIOT
- #define SIGIOT SIGABRT
- --- 1,7 ----
- /* STARTUP PROCEDURE FOR UNIX FORTRAN PROGRAMS */
-
- ! #include <stdio.h>
- ! #include <signal.h>
-
- #ifndef SIGIOT
- #define SIGIOT SIGABRT
- ***************
- *** 70,83 ****
- --- 70,89 ----
- xargc = argc;
- xargv = argv;
- signal(SIGFPE, sigfdie); /* ignore underflow, enable overflow */
- + #ifndef AMIGA
- signal(SIGIOT, sigidie);
- + #endif
- #ifdef SIGQUIT
- if(signal(SIGQUIT,sigqdie) == SIG_IGN)
- signal(SIGQUIT, SIG_IGN);
- #endif
- +
- if(signal(SIGINT, sigindie) == SIG_IGN)
- signal(SIGINT, SIG_IGN);
- +
- + #ifndef AMIGA
- signal(SIGTERM,sigtdie);
- + #endif
-
- #ifdef pdp11
- ldfps(01200); /* detect overflow as an exception */
- Only in f2c/libF77: makefile.020
- Only in f2c/libF77: omlcmds
- diff -a -d +context f2c_1/libF77/pow_dd.c f2c/libF77/pow_dd.c
- *** f2c_1/libF77/pow_dd.c Mon Dec 10 15:28:42 1990
- --- f2c/libF77/pow_dd.c Wed Apr 29 14:04:06 1992
- ***************
- *** 1,9 ****
- #include "f2c.h"
-
- double pow_dd(ap, bp)
- doublereal *ap, *bp;
- {
- ! double pow();
-
- return(pow(*ap, *bp) );
- }
- --- 1,13 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double pow_dd(ap, bp)
- doublereal *ap, *bp;
- {
- ! double pow(double, double);
-
- return(pow(*ap, *bp) );
- }
- diff -a -d +context f2c_1/libF77/pow_zz.c f2c/libF77/pow_zz.c
- *** f2c_1/libF77/pow_zz.c Mon Dec 10 15:28:44 1990
- --- f2c/libF77/pow_zz.c Wed Apr 29 13:12:01 1992
- ***************
- *** 1,10 ****
- #include "f2c.h"
-
- VOID pow_zz(r,a,b)
- doublecomplex *r, *a, *b;
- {
- ! double logr, logi, x, y;
- ! double log(), exp(), cos(), sin(), atan2(), cabs();
-
- logr = log( cabs(a->r, a->i) );
- logi = atan2(a->i, a->r);
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID pow_zz(r,a,b)
- doublecomplex *r, *a, *b;
- {
- ! double logr, logi, x, y, cabs();
- ! #ifndef MFPU
- ! double log(), exp(), cos(), sin(), atan2();
- ! #endif
-
- logr = log( cabs(a->r, a->i) );
- logi = atan2(a->i, a->r);
- diff -a -d +context f2c_1/libF77/r_acos.c f2c/libF77/r_acos.c
- *** f2c_1/libF77/r_acos.c Mon Dec 10 15:28:46 1990
- --- f2c/libF77/r_acos.c Wed Apr 29 13:32:36 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_acos(x)
- real *x;
- {
- + #ifndef MFPU
- double acos();
- + #endif
- return( acos(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_asin.c f2c/libF77/r_asin.c
- *** f2c_1/libF77/r_asin.c Mon Dec 10 15:28:46 1990
- --- f2c/libF77/r_asin.c Wed Apr 29 13:32:57 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_asin(x)
- real *x;
- {
- + #ifndef MFPU
- double asin();
- + #endif
- return( asin(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_atan.c f2c/libF77/r_atan.c
- *** f2c_1/libF77/r_atan.c Mon Dec 10 15:28:46 1990
- --- f2c/libF77/r_atan.c Wed Apr 29 13:33:04 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_atan(x)
- real *x;
- {
- + #ifndef MFPU
- double atan();
- + #endif
- return( atan(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_atn2.c f2c/libF77/r_atn2.c
- *** f2c_1/libF77/r_atn2.c Mon Dec 10 15:28:46 1990
- --- f2c/libF77/r_atn2.c Wed Apr 29 13:52:56 1992
- ***************
- *** 1,5 ****
- --- 1,9 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_atn2(x,y)
- real *x, *y;
- {
- diff -a -d +context f2c_1/libF77/r_cos.c f2c/libF77/r_cos.c
- *** f2c_1/libF77/r_cos.c Mon Dec 10 15:28:48 1990
- --- f2c/libF77/r_cos.c Wed Apr 29 13:33:51 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_cos(x)
- real *x;
- {
- + #ifndef MFPU
- double cos();
- + #endif
- return( cos(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_cosh.c f2c/libF77/r_cosh.c
- *** f2c_1/libF77/r_cosh.c Mon Dec 10 15:28:48 1990
- --- f2c/libF77/r_cosh.c Wed Apr 29 13:34:07 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_cosh(x)
- real *x;
- {
- + #ifndef MFPU
- double cosh();
- + #endif
- return( cosh(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_exp.c f2c/libF77/r_exp.c
- *** f2c_1/libF77/r_exp.c Mon Dec 10 15:28:48 1990
- --- f2c/libF77/r_exp.c Wed Apr 29 13:34:19 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_exp(x)
- real *x;
- {
- + #ifndef MFPU
- double exp();
- + #endif
- return( exp(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_int.c f2c/libF77/r_int.c
- *** f2c_1/libF77/r_int.c Mon Dec 10 15:28:50 1990
- --- f2c/libF77/r_int.c Wed Apr 29 13:34:34 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_int(x)
- real *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x>0) ? floor(*x) : -floor(- *x) );
- }
- diff -a -d +context f2c_1/libF77/r_lg10.c f2c/libF77/r_lg10.c
- *** f2c_1/libF77/r_lg10.c Mon Dec 10 15:28:50 1990
- --- f2c/libF77/r_lg10.c Wed Apr 29 13:34:42 1992
- ***************
- *** 2,11 ****
- --- 2,17 ----
-
- #define log10e 0.43429448190325182765
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_lg10(x)
- real *x;
- {
- + #ifndef MFPU
- double log();
- + #endif
-
- return( log10e * log(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_log.c f2c/libF77/r_log.c
- *** f2c_1/libF77/r_log.c Mon Dec 10 15:28:50 1990
- --- f2c/libF77/r_log.c Wed Apr 29 13:34:52 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_log(x)
- real *x;
- {
- + #ifndef MFPU
- double log();
- + #endif
- return( log(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_mod.c f2c/libF77/r_mod.c
- *** f2c_1/libF77/r_mod.c Mon Dec 10 15:28:50 1990
- --- f2c/libF77/r_mod.c Wed Apr 29 13:35:21 1992
- ***************
- *** 16,22 ****
- z -= ya;
- return z;
- #else
- ! double floor(), quotient;
- if( (quotient = (double)*x / *y) >= 0)
- quotient = floor(quotient);
- else
- --- 16,25 ----
- z -= ya;
- return z;
- #else
- ! double quotient;
- ! #ifndef MFPU
- ! double floor();
- ! #endif
- if( (quotient = (double)*x / *y) >= 0)
- quotient = floor(quotient);
- else
- diff -a -d +context f2c_1/libF77/r_nint.c f2c/libF77/r_nint.c
- *** f2c_1/libF77/r_nint.c Mon Dec 10 15:28:50 1990
- --- f2c/libF77/r_nint.c Wed Apr 29 13:35:43 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_nint(x)
- real *x;
- {
- + #ifndef MFPU
- double floor();
- + #endif
-
- return( (*x)>=0 ?
- floor(*x + .5) : -floor(.5 - *x) );
- diff -a -d +context f2c_1/libF77/r_sin.c f2c/libF77/r_sin.c
- *** f2c_1/libF77/r_sin.c Mon Dec 10 15:28:52 1990
- --- f2c/libF77/r_sin.c Wed Apr 29 13:35:50 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_sin(x)
- real *x;
- {
- + #ifndef MFPU
- double sin();
- + #endif
- return( sin(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_sinh.c f2c/libF77/r_sinh.c
- *** f2c_1/libF77/r_sinh.c Mon Dec 10 15:28:52 1990
- --- f2c/libF77/r_sinh.c Wed Apr 29 13:35:55 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_sinh(x)
- real *x;
- {
- + #ifndef MFPU
- double sinh();
- + #endif
- return( sinh(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_sqrt.c f2c/libF77/r_sqrt.c
- *** f2c_1/libF77/r_sqrt.c Mon Dec 10 15:28:52 1990
- --- f2c/libF77/r_sqrt.c Wed Apr 29 13:36:01 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_sqrt(x)
- real *x;
- {
- + #ifndef MFPU
- double sqrt();
- + #endif
- return( sqrt(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_tan.c f2c/libF77/r_tan.c
- *** f2c_1/libF77/r_tan.c Mon Dec 10 15:28:52 1990
- --- f2c/libF77/r_tan.c Wed Apr 29 13:36:10 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_tan(x)
- real *x;
- {
- + #ifndef MFPU
- double tan();
- + #endif
- return( tan(*x) );
- }
- diff -a -d +context f2c_1/libF77/r_tanh.c f2c/libF77/r_tanh.c
- *** f2c_1/libF77/r_tanh.c Mon Dec 10 15:28:54 1990
- --- f2c/libF77/r_tanh.c Wed Apr 29 13:36:58 1992
- ***************
- *** 1,8 ****
- --- 1,14 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- double r_tanh(x)
- real *x;
- {
- + #ifndef MFPU
- double tanh();
- + #endif
- return( tanh(*x) );
- }
- diff -a -d +context f2c_1/libF77/sig_die.c f2c/libF77/sig_die.c
- *** f2c_1/libF77/sig_die.c Mon Dec 10 15:28:56 1990
- --- f2c/libF77/sig_die.c Tue Apr 28 18:18:42 1992
- ***************
- *** 18,25 ****
- --- 18,27 ----
-
- if(kill)
- {
- + #ifndef AMIGA
- /* now get a core */
- signal(SIGIOT, SIG_DFL);
- + #endif
- abort();
- }
- else
- diff -a -d +context f2c_1/libF77/z_cos.c f2c/libF77/z_cos.c
- *** f2c_1/libF77/z_cos.c Mon Dec 10 15:28:58 1990
- --- f2c/libF77/z_cos.c Wed Apr 29 13:28:59 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID z_cos(r, z)
- doublecomplex *r, *z;
- {
- + #ifndef MFPU
- double sin(), cos(), sinh(), cosh();
- + #endif
-
- r->r = cos(z->r) * cosh(z->i);
- r->i = - sin(z->r) * sinh(z->i);
- diff -a -d +context f2c_1/libF77/z_exp.c f2c/libF77/z_exp.c
- *** f2c_1/libF77/z_exp.c Mon Dec 10 15:28:58 1990
- --- f2c/libF77/z_exp.c Wed Apr 29 13:29:23 1992
- ***************
- *** 1,10 ****
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID z_exp(r, z)
- doublecomplex *r, *z;
- {
- double expx;
- + #ifndef MFPU
- double exp(), cos(), sin();
- + #endif
-
- expx = exp(z->r);
- r->r = expx * cos(z->i);
- diff -a -d +context f2c_1/libF77/z_log.c f2c/libF77/z_log.c
- *** f2c_1/libF77/z_log.c Mon Dec 10 15:29:00 1990
- --- f2c/libF77/z_log.c Wed Apr 29 13:29:56 1992
- ***************
- *** 1,9 ****
- #include "f2c.h"
-
- VOID z_log(r, z)
- doublecomplex *r, *z;
- {
- ! double log(), cabs(), atan2();
-
- r->i = atan2(z->i, z->r);
- r->r = log( cabs( z->r, z->i ) );
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID z_log(r, z)
- doublecomplex *r, *z;
- {
- ! double cabs();
- ! #ifndef MFPU
- ! double log(), atan2();
- ! #endif
-
- r->i = atan2(z->i, z->r);
- r->r = log( cabs( z->r, z->i ) );
- diff -a -d +context f2c_1/libF77/z_sin.c f2c/libF77/z_sin.c
- *** f2c_1/libF77/z_sin.c Mon Dec 10 15:29:00 1990
- --- f2c/libF77/z_sin.c Wed Apr 29 13:30:09 1992
- ***************
- *** 1,9 ****
- --- 1,15 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID z_sin(r, z)
- doublecomplex *r, *z;
- {
- + #ifndef MFPU
- double sin(), cos(), sinh(), cosh();
- + #endif
-
- r->r = sin(z->r) * cosh(z->i);
- r->i = cos(z->r) * sinh(z->i);
- diff -a -d +context f2c_1/libF77/z_sqrt.c f2c/libF77/z_sqrt.c
- *** f2c_1/libF77/z_sqrt.c Mon Dec 10 15:29:00 1990
- --- f2c/libF77/z_sqrt.c Wed Apr 29 13:30:42 1992
- ***************
- *** 1,9 ****
- #include "f2c.h"
-
- VOID z_sqrt(r, z)
- doublecomplex *r, *z;
- {
- ! double mag, sqrt(), cabs();
-
- if( (mag = cabs(z->r, z->i)) == 0.)
- r->r = r->i = 0.;
- --- 1,16 ----
- #include "f2c.h"
-
- + #ifdef AMIGA
- + #include "amath.h"
- + #endif
- +
- VOID z_sqrt(r, z)
- doublecomplex *r, *z;
- {
- ! double mag, cabs();
- ! #ifndef MFPU
- ! double sqrt();
- ! #endif
-
- if( (mag = cabs(z->r, z->i)) == 0.)
- r->r = r->i = 0.;
-