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_pbgs_div_template.cpp

    r1499 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 <pbgs_div_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
     
    5123LineColTracker tracker;
    5224TagMatcher matcher;
    53 BitBlock EOF_mask = simd_const_1(1);
     25BitBlock EOF_mask = simd<1>::constant<1>();
    5426ErrorTracker error_tracker;
    5527
     
    152124{
    153125    BitBlock s = block[0];
    154     BitBlock temp = simd_and(s, simd<128>::sll(simd<2>::constant<3>(), sisd_from_int(pos)));
     126    BitBlock temp = simd_and(s, simd<128>::sll(simd<2>::constant<3>(), convert(pos)));
    155127
    156128    if (bitblock_has_bit(temp))
     
    668640    block_base = block_pos;
    669641    if (remaining > 0 || @any_carry) {
    670           EOF_mask = sisd_srl(simd_const_1(1),sisd_from_int(BLOCK_SIZE-remaining));
     642          EOF_mask = bitblock::srl(simd<1>::constant<1>(),convert(BLOCK_SIZE-remaining));
    671643          s2p_do_final_block((BytePack *) &srcbuf[block_pos], basis_bits, EOF_mask);
    672644          @final_block_stmts
Note: See TracChangeset for help on using the changeset viewer.