1 /* -- translated by f2c (version 20100827).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
5 or, if you install libf2c.a in a standard place, with -lf2c -lm
6 -- in that order, at the end of the command line, as in
7 cc *.o -lf2c -lm
8 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
9
10 http://www.netlib.org/f2c/libf2c.zip
11 */
12
13 #include "libtinyf2c.h"
14
15 /* ----------------------------------------------------------------------- */
16 /* IMIN */
17 /* ----------------------------------------------------------------------- */
18 /* Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
19 /* ----------------------------------------------------------------------- */
imin_(integer * ix,integer * n,integer * jx)20 integer imin_(integer *ix, integer *n, integer *jx)
21 {
22 /* System generated locals */
23 integer ret_val;
24
25 /* Local variables */
26 extern integer imin0_(integer *, integer *, integer *), imin1_(integer *,
27 integer *, integer *);
28 static logical lmiss;
29 extern /* Subroutine */ int gllget_(char *, logical *, ftnlen);
30
31 /* Parameter adjustments */
32 --ix;
33
34 /* Function Body */
35 gllget_("LMISS", &lmiss, (ftnlen)5);
36 if (lmiss) {
37 ret_val = imin1_(&ix[1], n, jx);
38 } else {
39 ret_val = imin0_(&ix[1], n, jx);
40 }
41 return ret_val;
42 } /* imin_ */
43
44