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 /*     DXFLOC */
17 /* ----------------------------------------------------------------------- */
18 /*     Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
19 /* ----------------------------------------------------------------------- */
dxfloc_(integer * nd,integer * ns,integer * np,integer * ncp)20 /* Subroutine */ int dxfloc_(integer *nd, integer *ns, integer *np, integer *
21 	ncp)
22 {
23     /* System generated locals */
24     integer i__1;
25 
26     /* Local variables */
27     static integer n, nsx;
28 
29     /* Parameter adjustments */
30     --np;
31     --ns;
32 
33     /* Function Body */
34     *ncp = np[1];
35     nsx = 1;
36     i__1 = *nd - 1;
37     for (n = 1; n <= i__1; ++n) {
38 	nsx *= ns[n];
39 	*ncp += (np[n + 1] - 1) * nsx;
40 /* L10: */
41     }
42     return 0;
43 } /* dxfloc_ */
44 
45