Parent Directory | Revision Log
First release in the PAMELA environment, some cleanup in the include files, module function and Makefile added
1 | cafagna | 1.1 | //Cut file determination/////////////////////////////// |
2 | #include "descript.h" | ||
3 | |||
4 | int restrict(int buffer3[], long long int numP[], int Rout) | ||
5 | { | ||
6 | int i; | ||
7 | int counter=0; | ||
8 | for (i=7;i<1017;i++) | ||
9 | { | ||
10 | if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[1]+1)|| | ||
11 | (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[0]+2)|| | ||
12 | (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1)) | ||
13 | {counter=i;} | ||
14 | } | ||
15 | return counter; | ||
16 | } |
ViewVC Help | |
Powered by ViewVC 1.1.23 |