Ignore:
Timestamp:
Mar 23, 2015, 8:37:57 PM (4 years ago)
Author:
cameron
Message:

Restructure to use a single process_block_state data area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/do_grep.h

    r4478 r4538  
    4242
    4343
    44 typedef void (*process_block_fcn)(const Basis_bits &basis_bits, BitBlock carry_q[], BitBlock advance_q[], Output &output);
     44typedef void (*process_block_fcn)(const Basis_bits &basis_bits, BitBlock process_block_state_data[], Output &output);
    4545
    4646
     
    4848class GrepExecutor {
    4949public:
    50     GrepExecutor(int carry_count, int advance_count, process_block_fcn process_block):
     50    GrepExecutor(size_t process_block_state_size, process_block_fcn process_block):
    5151    mCountOnlyOption(false), mShowFileNameOption(false), mShowLineNumberingOption(false),
    52     mCarries(carry_count), mAdvances(advance_count),
     52    mProcessBlockStateSize(process_block_state_size),
    5353    mProcessBlockFcn(process_block)
    5454    {}
     
    6969    bool mNormalizeLineBreaksOption;
    7070
    71     int mCarries;
    72     int mAdvances;
     71    size_t mProcessBlockStateSize;
    7372    process_block_fcn mProcessBlockFcn;
    7473   
Note: See TracChangeset for help on using the changeset viewer.