4
Revision 1.1.1.1 2001/11/19 19:50:15 smorlat
7
Revision 1.1.1.1 2001/08/08 21:29:08 simon
10
* Revision 1.1 1996/08/19 22:31:31 jaf
16
#ifdef P_R_O_T_O_T_Y_P_E_S
17
extern integer median_(integer *d1, integer *d2, integer *d3);
20
/* -- translated by f2c (version 19951025).
21
You must link the resulting object file with the libraries:
22
-lf2c -lm (in that order)
27
/* ********************************************************************* */
29
/* MEDIAN Version 45G */
32
/* Revision 1.1.1.1 2001/11/19 19:50:15 smorlat
35
/* Revision 1.1.1.1 2001/08/08 21:29:08 simon
38
* Revision 1.1 1996/08/19 22:31:31 jaf
41
/* Revision 1.2 1996/03/14 22:30:22 jaf */
42
/* Just rearranged the comments and local variable declarations a bit. */
44
/* Revision 1.1 1996/02/07 14:47:53 jaf */
45
/* Initial revision */
48
/* ********************************************************************* */
50
/* Find median of three values */
53
/* D1,D2,D3 - Three input values */
55
/* MEDIAN - Median value */
57
integer median_(integer *d1, integer *d2, integer *d3)
59
/* System generated locals */
64
if (*d2 > *d1 && *d2 > *d3) {
69
} else if (*d2 < *d1 && *d2 < *d3) {