Changeset 2111


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

Removed duplicate transpose.hpp

Location:
trunk/symbol_table
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/README.txt

    r2109 r2111  
     1
     2symbol_table
     3├── Compiler
     4├── demo_strms.py
     5├── bitutil.py
     6│
     7├── bit_byte_group_strms.py
     8├── div2_group_strms.py
     9├── div2_logbase2_group_strms.py
     10├── id_group_strms.py
     11├── logbase2_group_strms.py
     12├── group_strms_template.hpp
     13│
     14├── hash_strms.py
     15├── hash_strms_template.hpp
     16│
     17├── main_template.cpp
     18├── lib
     19├── libtest
     20│   â”œâ”€â”€ bitscantest.cpp
     21│   â”œâ”€â”€ byte_compare_generator.cpp
     22│   â”œâ”€â”€ byte_compare_template.cpp
     23│   â”œâ”€â”€ hash_test.cpp
     24│   â”œâ”€â”€ Makefile
     25│   â””── pool_test.cpp
     26│
     27├── marker_strms.py
     28├── marker_strms_template.hpp
     29
     30├── Makefile
     31├── README.txt
     32
     33├── src
     34│   â”œâ”€â”€ basis_bits.hpp
     35│   â”œâ”€â”€ buffer.hpp
     36│   â”œâ”€â”€ byte_pool.hpp
     37│   â”œâ”€â”€ compare_strategy.hpp
     38│   â”œâ”€â”€ gid.hpp
     39│   â”œâ”€â”€ group_strms.hpp
     40│   â”œâ”€â”€ hash_strategy.hpp
     41│   â”œâ”€â”€ hash_strms.hpp
     42│   â”œâ”€â”€ hash_table.hpp
     43│   â”œâ”€â”€ Makefile
     44│   â”œâ”€â”€ marker_strms.hpp
     45│   â”œâ”€â”€ strategy_types.hpp
     46│   â”œâ”€â”€ symbol_table.hpp
     47│   â””── transpose.hpp
     48├── test
     49│   â”œâ”€â”€ gen_test_file.py
     50│   â”œâ”€â”€ Makefile
     51│   â”œâ”€â”€ pin
     52│   â”‚   â””── (L_O_U)_1_1.test
     53│   â”œâ”€â”€ pout
     54│   â”‚   â””── (L_O_U)_1_1.test
     55│   â”œâ”€â”€ run_tests.py
     56│   â””── st_test_file_generator.py
     57└── transpose.hpp
  • 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.