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 /* LINE TYPE ATTRIBUTE */
17 /* ----------------------------------------------------------------------- */
18 /* Copyright (C) 2000-2004 GFD Dennou Club. All rights reserved. */
19 /* ----------------------------------------------------------------------- */
szstyp_0_(int n__,integer * itype)20 /* Subroutine */ int szstyp_0_(int n__, integer *itype)
21 {
22 /* Initialized data */
23
24 static char cpat[32*4] = "11111111111111111111111111111111" "11111111111"
25 "100001111111111110000" "11001100110011001100110011001100" "11111"
26 "111100010001111111110001000";
27 static integer idashz = 0;
28 static logical lfrst = TRUE_;
29
30 static integer n, ipat[4];
31 extern /* Subroutine */ int bitpci_(char *, integer *, ftnlen);
32 static integer itypez;
33 extern /* Subroutine */ int szstyz_(integer *);
34
35 switch(n__) {
36 case 1: goto L_szqtyp;
37 }
38
39 if (lfrst) {
40 for (n = 1; n <= 4; ++n) {
41 bitpci_(cpat + (n - 1 << 5), &ipat[n - 1], (ftnlen)32);
42 /* L10: */
43 }
44 lfrst = FALSE_;
45 }
46 itypez = *itype;
47 if (1 <= itypez && itypez <= 4) {
48 idashz = ipat[itypez - 1];
49 } else {
50 idashz = itypez;
51 }
52 szstyz_(&idashz);
53 return 0;
54 /* ----------------------------------------------------------------------- */
55
56 L_szqtyp:
57 *itype = itypez;
58 return 0;
59 } /* szstyp_ */
60
szstyp_(integer * itype)61 /* Subroutine */ int szstyp_(integer *itype)
62 {
63 return szstyp_0_(0, itype);
64 }
65
szqtyp_(integer * itype)66 /* Subroutine */ int szqtyp_(integer *itype)
67 {
68 return szstyp_0_(1, itype);
69 }
70
71