Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
c in the iout array (3,1,3,1,3,1,3,1)
c Note: the bit mask is shifted to always start counting on a '1' bit.
c
c--- Uses the library routines and() and rshift() for bit manipulation
c--- Uses the library routines and() and ishft() for bit manipulation
c which are present in most fortran libraries as extensions to f77.
dimension iout(*)
ibitold = and(1,imask)
if(ibitold.NE.0) go to 5
nshft = n
imask = rshift(imask,1)
imask = ishft(imask,-1)
end do
5 nout = 0
ibitold = ibit
nbits = nbits + 1
c--- Add final bit(s) to end of 16 bits checked
c--- Now append any zero bits shifted out originally