Ignore:
Timestamp:
May 23, 2012, 5:09:56 PM (7 years ago)
Author:
ksherdy
Message:

Fixed 64 bit machine copyback. Updated default to index at follows pos w/o Makefile preprocessor define.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/symbol_table/main_template.cpp

    r2140 r2141  
    7979    uint8_t * COPYBACK;
    8080    uint8_t * src_buffer;
    81     ALLOC_STATIC_ALIGNED_BYTE_BUFFER(COPYBACK, src_buffer);
     81//    ALLOC_STATIC_ALIGNED_BYTE_BUFFER(COPYBACK, src_buffer);
     82        ATTRIBUTE_SIMD_ALIGN BitBlock aligned_base[BUFFER_SIZE];
     83        COPYBACK = (uint8_t *)aligned_base;
     84        memset(COPYBACK,0,COPYBACK_SIZE);
     85        src_buffer = &COPYBACK[COPYBACK_SIZE];
    8286
    8387    // hash 0
     
    159163        gid_type gid;
    160164
    161         #ifdef INDEX_AT_FOLLOWS
     165        #ifdef INDEX_AT_STARTS
     166            ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].starts));
     167        #else
    162168            ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].follows));
    163         #else
    164             ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].starts));
    165169        #endif
    166170
     
    222226        gid_type gid;
    223227
    224         #ifdef INDEX_AT_FOLLOWS
     228        #ifdef INDEX_AT_STARTS
     229            ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].starts));
     230        #else
    225231            ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].follows));
    226         #else
    227             ForwardScanner<BitBlock, scanword_t> scanner(&(groups[blk].starts));
    228232        #endif
    229233
Note: See TracChangeset for help on using the changeset viewer.