Ignore:
Timestamp:
May 16, 2012, 4:26:34 PM (7 years ago)
Author:
ksherdy
Message:

Removed duplicate transpose.hpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/single_logbase2.py

    r2106 r2111  
     1import bitutil as pablo
     2
     3class Groups():
     4        starts = 0
     5        follows = 0
     6        follows_1 = 0
     7        follows_2 = 0
     8        follows_4 = 0
     9        follows_8 = 0
     10        follows_16 = 0
     11        follows_0 = 0
     12
     13def Gen_lgth_groups(groups):
     14
     15    starts = groups.starts
     16    remaining_follows = groups.follows
     17
     18    # Group symbols of length 1
     19    starts_1 = pablo.Advance(starts)
     20    groups.follows_1 = starts_1 & remaining_follows
     21    remaining_follows = remaining_follows & ~groups.follows_1
     22
     23    # Group symbols of length 2
     24    starts_2 = pablo.Advance(starts_1)
     25    groups.follows_2 = starts_2 & remaining_follows
     26    remaining_follows = remaining_follows & ~groups.follows_2
     27
     28    # Group symbols of length 3 to 4
     29    temp = starts_1 | starts_2
     30    temp32 = pablo.Advance32(temp)
     31    #starts_3_to_4 = pablo.Advance(pablo.Advance(temp))
     32    starts_3_to_4 = interpose32 (temp, temp32, 2)
     33    groups.follows_4 = starts_3_to_4 & remaining_follows
     34    remaining_follows = remaining_follows & ~groups.follows_4
Note: See TracChangeset for help on using the changeset viewer.