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 <stdio.h>
- #include "types.h"
- #include "externs.h"
-
- #define STOP { \
- fprintf(stdout,"Fatal Overstore\nData Loss. Test = %d %d %d\n", i, n, lp); \
- exit(1); \
- /*NOTREACHED*/ \
- }
-
- Void sizes(i)
- Int i;
- {
-
- if( (i<0) || (i>24) ) STOP
- if( (n<0) || (n>1001)) STOP
- if( (lp<0) || (lp> 30000)) STOP
-
- if( kr == 1 ) ispan[i]= isp2[i];
- if( kr== 2 ) ispan[i]= isp3[i];
- n = ispan[i];
- /*
- lp= ipass[i];
- lp= 1000;
- lp= 10000;
- lp= 1;
- lp= 100;
- */
- lp = in_lp;
-
- if( (n<0) || (n>1001)) STOP
- if( (lp<0) || (lp>10000)) STOP
- n1 = 1001;
- n2 = 101;
- n13 = 64;
- n13h= 32;
- n213= 96;
- n813= 512;
- n16 = 75;
- n416= 300;
- n21 = 25;
- nt1= 17*1001 +13*101 +2*300;
- nt2= 4*512 + 3*25*101 +121*101 +3*64*64;
-
- return;
- }
-