home *** CD-ROM | disk | FTP | other *** search
- /*
- * This file is part of the Livermore Loops transliteration into C.
- * Copyright (C) 1991 by Martin Fouts
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 1, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
- #include "params.h"
- Float Time[NTESTS];
-
- Int in_lp;
-
- Float loops[NTESTS];
-
- Float nrops[NTESTS] = {
- 5.,4.,2.,2.,2.,2.,16.,36.,17.,9.,1.,1.,
- 7.,11.,33.,7.,9.,44.,6.,26.,2.,17.,11.,1.,
- };
-
- Float wt[] = {
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
- 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
- };
-
- Float csum[NTESTS];
-
- Float skale[47] = {
- 0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,
- 0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,
- 0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1 ,0.1,
- };
-
- Float bias[47] = {
- 0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,
- 0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,
- 0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0 ,0.0,
- };
-
- Int ispan[NTESTS] = {
- l1, l2, l1, l1, l1, l13, m7, m2,
- l2, l2, l1, m1, l13, l1, l2, l16,
- l2, m2, l2, m1, l21, l2, m2, l1, 0,
- };
-
- Int isp2[NTESTS] = {
- 101, 101, 101, 101, 101, 32, 101, 100,
- 101, 101, 101, 100, 32, 101, 101, 40,
- 101, 100, 101, 100, 20, 101, 100, 101, 0,
- };
-
- Int isp3[NTESTS] = {
- 27, 15, 27, 27, 27, 8, 21, 14,
- 15, 15, 27, 26, 8, 27, 15, 15,
- 15, 14, 15, 26, 15, 15, 14, 27, 0,
- };
-
- Int ipass[NTESTS] = {
- 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 0,
- };
-
- Int ion, j5, k2, k3, lp, m, kr, n13h, n, n1, n13, n213, n813;
- Int n16, n416, n21, nt1, nt2, n2;
- Float a11,a12,a13,a21,a22,a23,a31,a32,a33,ar,br,c0,cr,di,dk;
- Float dm22,dm23,dm24,dm25,dm26,dm27,dm28,dn,e3,e6,expmax,flx;
- Float q,qa,r,ri,s,scale,sig,stb5,t,xnc,xnei,xnm;
-
- Int e[96], f[96], ix[1001], ir[1001], zone[300];
- Float u[1001], v[1001], w[1001];
- Float x[1001], y[1001], z[1001], g[1001];
- Float du1[101], du2[101], du3[101], grd[1001], dex[1001];
- Float xi[1001], ex[1001], ex1[1001], dex1[1001];
- Float vx[1001], xx[1001], rx[1001], rh[1001];
- Float vsp[101], vstp[101], vxne[101], vxnd[101];
- Float ve3[101], vlr[101], vlin[101], b5[101];
- Float plan[300], d[300], sa[101], sb[101];
- Float p[4][512], px[25][101], cx[25][101];
- Float vy[101][25], vh[101][7], vf[101][7], vg[101][7], vs[101][7];
- Float za[101][7] , zp[101][7], zq[101][7], zr[101][7], zm[101][7];
- Float zb[101][7] , zu[101][7], zv[101][7], zz[101][7];
- Float b[64][64], c[64][64], h[64][64];
- Float u1[5][101][2], u2[5][101][2], u3[5][101][2];
-