Ignore:
Timestamp:
Nov 2, 2011, 8:16:21 PM (8 years ago)
Author:
vla24
Message:

SymbolTable?: Integrated symbol table with the new IDISA architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/SymbolTable/symtab_hash_template.cpp

    r1491 r1648  
    1 #define TEMPLATED_SIMD_LIB
    2 
    3 #include <stdio.h>
    4 #include <stdlib.h>
    5 #include <errno.h>
    6 #include <sys/types.h>
    7 #include <sys/stat.h>
    8 #include <../lib_simd.h>
     1#include "../symtab_global.h"
    92#include <hash_symbol_table.h>
    10 #include <queue>
    11 #include <string>
    12 using namespace std;
    13 
    14 #define DEBUG 0
    15 #define BLOCK_SIZE (sizeof(SIMD_type) * 8)
    16 #define SEGMENT_BLOCKS 12
    17 #define BUFFER_SIZE (BLOCK_SIZE * SEGMENT_BLOCKS)
    18 #define OVERLAP_BUFSIZE 2*(sizeof(SIMD_type))
    19 
    20 #include <../carryQ.h>
    21 #include <xmldecl.h>
    22 #include <namechars.h>
    23 #include <../perflib/perfsec.h>
    24 #include <../s2p.h>
    25 
    26 #include <TagMatcher.h>
    27 #include <LineColTracker.h>
    28 #include <ErrorUtil.h>
    29 #include <ErrorTracker.h>
    30 #include <XMLTestSuiteError.h>
    313
    324#ifdef BUFFER_PROFILING
     
    5123TagMatcher matcher;
    5224ErrorTracker error_tracker;
    53 BitBlock EOF_mask = simd_const_1(1);
     25BitBlock EOF_mask = simd<1>::constant<1>();
    5426
    5527queue <size_t> elem_starts_buf;
     
    525497    block_base = block_pos;
    526498    if (remaining > 0 || @any_carry) {
    527           EOF_mask = sisd_srl(simd_const_1(1),sisd_from_int(BLOCK_SIZE-remaining));
    528           s2p_do_final_block((BytePack *) &srcbuf[block_pos], basis_bits, EOF_mask);
     499          EOF_mask = bitblock::srl(simd<1>::constant<1>(), convert(BLOCK_SIZE-remaining));
     500          s2p_do_final_block((BytePack *) &srcbuf[block_pos], basis_bits, EOF_mask);
    529501          @final_block_stmts
    530502          postprocess_do_block(lex, ctCDPI_Callouts, ref_Callouts, check_streams, tag_Callouts, chars_avail);
Note: See TracChangeset for help on using the changeset viewer.