26 SUBROUTINE gbyte(IPACKD,IUNPKD,NOFF,NBITS)
37 jshift = -1 * nint(alog(float(nbitsw)) / alog(2.0))
40 masks(i) = 2 * masks(i-1) + 1
55 index = ishft(noff,jshift)
68 iunpkd = iand(ishft(ipackd(index+1),-mover),mask)
72 ELSE IF (mover.LT.0)
THEN
74 mover = nbitsw - movel
75 iunpkd = iand(ior(ishft(ipackd(index+1),movel),
76 & ishft(ipackd(index+2),-mover)),mask)
81 iunpkd = iand(ipackd(index+1),mask)
subroutine gbyte(ipackd, iunpkd, noff, nbits)
This is the fortran version of gbyte.