view example/regex/grep.h @ 1891:e0d465efc57e draft

directory reogranization for Cell/Fifo/ManyCore/Gpu
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 04 Jan 2014 19:10:32 +0900
parents e55b9d2cb33e
children
line wrap: on
line source


typedef struct grepenv {
    struct grepenv *self;
    int size;             // remaining file size
    int division_size;    // for each word count task
    int division_out_size;    
    int out_size;    
    int task_num;         // remaining task count
    int task_blocks;      // spawn task one at a time
    int status_num; 
    int task_spwaned;
    unsigned long long *o_data;
    unsigned long long *head_tail_flag;
    int out_task_num;
    int pad; 
    char * file_mmap;
    int file_size;
    HTaskPtr t_print;


  bool print_count;
  bool print_filename;
  int count;
  char *filename;
} ENV, *ENVP;