Changeset 316


Ignore:
Timestamp:
Sep 29, 2009, 9:03:07 AM (10 years ago)
Author:
ksherdy
Message:

Add EOF mask method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/bitutil.py

    r313 r316  
    4343                strm >>= 1
    4444        return zeroes
     45
     46def EOF_mask(strm_lgth):
     47        mask = 1
     48        mask <<= (strm_lgth + 1)
     49        mask -= 1
     50        return mask
    4551
    4652def extract_bit(strm, pos):
Note: See TracChangeset for help on using the changeset viewer.