]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MINICERN/packlib/kernlib/kerngen/tcgen/sungs/locbyt.F
This commit was generated by cvs2svn to compensate for changes in r2,
[u/mrichter/AliRoot.git] / MINICERN / packlib / kernlib / kerngen / tcgen / sungs / locbyt.F
CommitLineData
fe4da5cc 1*
2* $Id$
3*
4* $Log$
5* Revision 1.1.1.1 1996/02/15 17:49:58 mclareni
6* Kernlib
7*
8*
9 FUNCTION LOCBYT (IT,IA,N,NW,LA,NBITS)
10C
11C CERN PROGLIB# M428 LOCBYT .VERSION KERNSUN 1.06 920511
12C ORIG. 22/09/88, JZ
13C
14 DIMENSION IA(9)
15C
16C
17 IF (N.EQ.0) GO TO 19
18#if defined(CERNLIB_BUGLRSHFT)
19 MASK = LSHIFT (ishft(-1,-32+NBITS),LA-1)
20#endif
21#if !defined(CERNLIB_BUGLRSHFT)
22 MASK = LSHIFT (lrshft(-1,32-NBITS),LA-1)
23#endif
24 ITSH = LSHIFT (IT,LA-1)
25
26 DO 18 J=1,N,NW
27 IF (AND(IA(J),MASK).EQ.ITSH) GO TO 21
28 18 CONTINUE
29 19 LOCBYT= 0
30 RETURN
31C
32 21 LOCBYT= J
33 RETURN
34 END