Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 07-Sep-2021 | - | ||||
Notice | H A D | 07-Sep-2021 | 1.2 KiB | 24 | 20 | |
README | H A D | 07-Sep-2021 | 3.5 KiB | 87 | 67 | |
Version.c | H A D | 07-Sep-2021 | 1.2 KiB | 28 | 1 | |
abort_.c | H A D | 07-Sep-2021 | 276 | 19 | 15 | |
c_abs.c | H A D | 07-Sep-2021 | 203 | 15 | 11 | |
c_cos.c | H A D | 07-Sep-2021 | 264 | 17 | 13 | |
c_div.c | H A D | 07-Sep-2021 | 727 | 37 | 33 | |
c_exp.c | H A D | 07-Sep-2021 | 277 | 20 | 15 | |
c_log.c | H A D | 07-Sep-2021 | 294 | 17 | 14 | |
c_sin.c | H A D | 07-Sep-2021 | 262 | 17 | 13 | |
c_sqrt.c | H A D | 07-Sep-2021 | 545 | 35 | 30 | |
cabs.c | H A D | 07-Sep-2021 | 473 | 29 | 26 | |
d_abs.c | H A D | 07-Sep-2021 | 158 | 13 | 11 | |
d_acos.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_asin.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_atan.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_atn2.c | H A D | 07-Sep-2021 | 206 | 14 | 12 | |
d_cnjg.c | H A D | 07-Sep-2021 | 168 | 13 | 11 | |
d_cos.c | H A D | 07-Sep-2021 | 174 | 14 | 12 | |
d_cosh.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_dim.c | H A D | 07-Sep-2021 | 167 | 11 | 9 | |
d_exp.c | H A D | 07-Sep-2021 | 174 | 14 | 12 | |
d_imag.c | H A D | 07-Sep-2021 | 136 | 11 | 9 | |
d_int.c | H A D | 07-Sep-2021 | 204 | 14 | 12 | |
d_lg10.c | H A D | 07-Sep-2021 | 224 | 16 | 13 | |
d_log.c | H A D | 07-Sep-2021 | 174 | 14 | 12 | |
d_mod.c | H A D | 07-Sep-2021 | 641 | 42 | 40 | |
d_nint.c | H A D | 07-Sep-2021 | 224 | 15 | 13 | |
d_prod.c | H A D | 07-Sep-2021 | 141 | 11 | 9 | |
d_sign.c | H A D | 07-Sep-2021 | 205 | 13 | 11 | |
d_sin.c | H A D | 07-Sep-2021 | 174 | 14 | 12 | |
d_sinh.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_sqrt.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
d_tan.c | H A D | 07-Sep-2021 | 174 | 14 | 12 | |
d_tanh.c | H A D | 07-Sep-2021 | 178 | 14 | 12 | |
derf_.c | H A D | 07-Sep-2021 | 172 | 13 | 11 | |
derfc_.c | H A D | 07-Sep-2021 | 186 | 15 | 11 | |
ef1asc_.c | H A D | 07-Sep-2021 | 490 | 23 | 17 | |
ef1cmc_.c | H A D | 07-Sep-2021 | 362 | 16 | 12 | |
erf_.c | H A D | 07-Sep-2021 | 158 | 13 | 11 | |
erfc_.c | H A D | 07-Sep-2021 | 163 | 13 | 11 | |
f2c.h | H A D | 07-Sep-2021 | 4.2 KiB | 227 | 185 | |
f2ch.add | H A D | 07-Sep-2021 | 5.9 KiB | 163 | 161 | |
getarg_.c | H A D | 07-Sep-2021 | 532 | 31 | 22 | |
getenv_.c | H A D | 07-Sep-2021 | 1 KiB | 55 | 36 | |
h_abs.c | H A D | 07-Sep-2021 | 158 | 13 | 11 | |
h_dim.c | H A D | 07-Sep-2021 | 165 | 11 | 9 | |
h_dnnt.c | H A D | 07-Sep-2021 | 228 | 15 | 13 | |
h_indx.c | H A D | 07-Sep-2021 | 415 | 29 | 25 | |
h_len.c | H A D | 07-Sep-2021 | 140 | 12 | 10 | |
h_mod.c | H A D | 07-Sep-2021 | 142 | 11 | 9 | |
h_nint.c | H A D | 07-Sep-2021 | 216 | 15 | 13 | |
h_sign.c | H A D | 07-Sep-2021 | 205 | 13 | 11 | |
hl_ge.c | H A D | 07-Sep-2021 | 287 | 14 | 12 | |
hl_gt.c | H A D | 07-Sep-2021 | 286 | 14 | 12 | |
hl_le.c | H A D | 07-Sep-2021 | 287 | 14 | 12 | |
hl_lt.c | H A D | 07-Sep-2021 | 286 | 14 | 12 | |
i_abs.c | H A D | 07-Sep-2021 | 154 | 13 | 11 | |
i_dim.c | H A D | 07-Sep-2021 | 160 | 11 | 9 | |
i_dnnt.c | H A D | 07-Sep-2021 | 226 | 15 | 13 | |
i_indx.c | H A D | 07-Sep-2021 | 403 | 29 | 25 | |
i_len.c | H A D | 07-Sep-2021 | 138 | 12 | 10 | |
i_mod.c | H A D | 07-Sep-2021 | 146 | 11 | 9 | |
i_nint.c | H A D | 07-Sep-2021 | 214 | 15 | 13 | |
i_sign.c | H A D | 07-Sep-2021 | 199 | 13 | 11 | |
iargc_.c | H A D | 07-Sep-2021 | 131 | 12 | 10 | |
l_ge.c | H A D | 07-Sep-2021 | 275 | 14 | 12 | |
l_gt.c | H A D | 07-Sep-2021 | 274 | 14 | 12 | |
l_le.c | H A D | 07-Sep-2021 | 275 | 14 | 12 | |
l_lt.c | H A D | 07-Sep-2021 | 274 | 14 | 12 | |
libF77.xsum | H A D | 07-Sep-2021 | 2.5 KiB | 119 | 118 | |
main.c | H A D | 07-Sep-2021 | 2 KiB | 126 | 105 | |
makefile | H A D | 07-Sep-2021 | 3 KiB | 80 | 59 | |
pow_ci.c | H A D | 07-Sep-2021 | 357 | 22 | 17 | |
pow_dd.c | H A D | 07-Sep-2021 | 210 | 14 | 12 | |
pow_di.c | H A D | 07-Sep-2021 | 425 | 36 | 32 | |
pow_hh.c | H A D | 07-Sep-2021 | 433 | 33 | 29 | |
pow_ii.c | H A D | 07-Sep-2021 | 427 | 33 | 29 | |
pow_qq.c | H A D | 07-Sep-2021 | 427 | 33 | 29 | |
pow_ri.c | H A D | 07-Sep-2021 | 412 | 35 | 32 | |
pow_zi.c | H A D | 07-Sep-2021 | 780 | 52 | 47 | |
pow_zz.c | H A D | 07-Sep-2021 | 495 | 24 | 19 | |
r_abs.c | H A D | 07-Sep-2021 | 146 | 13 | 11 | |
r_acos.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_asin.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_atan.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_atn2.c | H A D | 07-Sep-2021 | 188 | 14 | 12 | |
r_cnjg.c | H A D | 07-Sep-2021 | 155 | 12 | 10 | |
r_cos.c | H A D | 07-Sep-2021 | 162 | 14 | 12 | |
r_cosh.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_dim.c | H A D | 07-Sep-2021 | 149 | 11 | 9 | |
r_exp.c | H A D | 07-Sep-2021 | 162 | 14 | 12 | |
r_imag.c | H A D | 07-Sep-2021 | 124 | 11 | 9 | |
r_int.c | H A D | 07-Sep-2021 | 192 | 14 | 12 | |
r_lg10.c | H A D | 07-Sep-2021 | 212 | 16 | 13 | |
r_log.c | H A D | 07-Sep-2021 | 162 | 14 | 12 | |
r_mod.c | H A D | 07-Sep-2021 | 633 | 42 | 40 | |
r_nint.c | H A D | 07-Sep-2021 | 212 | 15 | 13 | |
r_sign.c | H A D | 07-Sep-2021 | 187 | 13 | 11 | |
r_sin.c | H A D | 07-Sep-2021 | 162 | 14 | 12 | |
r_sinh.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_sqrt.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
r_tan.c | H A D | 07-Sep-2021 | 162 | 14 | 12 | |
r_tanh.c | H A D | 07-Sep-2021 | 166 | 14 | 12 | |
s_cat.c | H A D | 07-Sep-2021 | 453 | 27 | 24 | |
s_cmp.c | H A D | 07-Sep-2021 | 735 | 50 | 43 | |
s_copy.c | H A D | 07-Sep-2021 | 431 | 29 | 22 | |
s_paus.c | H A D | 07-Sep-2021 | 1.3 KiB | 66 | 60 | |
s_rnge.c | H A D | 07-Sep-2021 | 735 | 28 | 23 | |
s_stop.c | H A D | 07-Sep-2021 | 534 | 35 | 31 | |
sig_die.c | H A D | 07-Sep-2021 | 597 | 39 | 32 | |
signal_.c | H A D | 07-Sep-2021 | 331 | 21 | 16 | |
system_.c | H A D | 07-Sep-2021 | 392 | 24 | 18 | |
z_abs.c | H A D | 07-Sep-2021 | 199 | 13 | 11 | |
z_cos.c | H A D | 07-Sep-2021 | 273 | 15 | 13 | |
z_div.c | H A D | 07-Sep-2021 | 736 | 37 | 32 | |
z_exp.c | H A D | 07-Sep-2021 | 286 | 18 | 15 | |
z_log.c | H A D | 07-Sep-2021 | 305 | 17 | 14 | |
z_sin.c | H A D | 07-Sep-2021 | 271 | 15 | 13 | |
z_sqrt.c | H A D | 07-Sep-2021 | 523 | 30 | 27 |
README
1If your compiler does not recognize ANSI C headers, 2compile with KR_headers defined: either add -DKR_headers 3to the definition of CFLAGS in the makefile, or insert 4 5#define KR_headers 6 7at the top of f2c.h , cabs.c , main.c , and sig_die.c . 8 9 10If you have a really ancient K&R C compiler that does not understand 11void, add -Dvoid=int to the definition of CFLAGS in the makefile. 12 13If you use a C++ compiler, first create a local f2c.h by appending 14f2ch.add to the usual f2c.h, e.g., by issuing the command 15 make f2c.h 16which assumes f2c.h is installed in /usr/include . 17 18If your system lacks onexit() and you are not using an ANSI C 19compiler, then you should compile main.c with NO_ONEXIT defined. 20See the comments about onexit in the makefile. 21 22If your system has a double drem() function such that drem(a,b) 23is the IEEE remainder function (with double a, b), then you may 24wish to compile r_mod.c and d_mod.c with IEEE_drem defined. 25On some systems, you may also need to compile with -Ddrem=remainder . 26 27To check for transmission errors, issue the command 28 make check 29This assumes you have the xsum program whose source, xsum.c, 30is distributed as part of "all from f2c/src". If you do not 31have xsum, you can obtain xsum.c by sending the following E-mail 32message to netlib@research.att.com 33 send xsum.c from f2c/src 34 35The makefile assumes you have installed f2c.h in a standard 36place (and does not cause recompilation when f2c.h is changed); 37f2c.h comes with "all from f2c" (the source for f2c) and is 38available separately ("f2c.h from f2c"). 39 40Most of the routines in libF77 are support routines for Fortran 41intrinsic functions or for operations that f2c chooses not 42to do "in line". There are a few exceptions, summarized below -- 43functions and subroutines that appear to your program as ordinary 44external Fortran routines. 45 461. CALL ABORT prints a message and causes a core dump. 47 482. ERF(r) and DERF(d) and the REAL and DOUBLE PRECISION 49 error functions (with x REAL and d DOUBLE PRECISION); 50 DERF must be declared DOUBLE PRECISION in your program. 51 Both ERF and DERF assume your C library provides the 52 underlying erf() function (which not all systems do). 53 543. ERFC(r) and DERFC(d) are the complementary error functions: 55 ERFC(r) = 1 - ERF(r) and DERFC(d) = 1.d0 - DERFC(d) 56 (except that their results may be more accurate than 57 explicitly evaluating the above formulae would give). 58 Again, ERFC and r are REAL, and DERFC and d are DOUBLE 59 PRECISION (and must be declared as such in your program), 60 and ERFC and DERFC rely on your system's erfc(). 61 624. CALL GETARG(n,s), where n is an INTEGER and s is a CHARACTER 63 variable, sets s to the n-th command-line argument (or to 64 all blanks if there are fewer than n command-line arguments); 65 CALL GETARG(0,s) sets s to the name of the program (on systems 66 that support this feature). See IARGC below. 67 685. CALL GETENV(name, value), where name and value are of type 69 CHARACTER, sets value to the environment value, $name, of 70 name (or to blanks if $name has not been set). 71 726. NARGS = IARGC() sets NARGS to the number of command-line 73 arguments (an INTEGER value). 74 757. CALL SIGNAL(n,func), where n is an INTEGER and func is an 76 EXTERNAL procedure, arranges for func to be invoked when 77 signal n occurs (on systems where this makes sense). 78 798. CALL SYSTEM(cmd), where cmd is of type CHARACTER, passes 80 cmd to the system's command processor (on systems where 81 this can be done). 82 83The makefile does not attempt to compile pow_qq.c, which is meant 84for use with INTEGER*8. To use it, you must modify f2c.h to 85declare longint appropriately; then add pow_qq.o to the POW = 86line in the makefile. 87