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/src/buffer.hpp

    r2140 r2141  
    1111#define PADDING_BLOCKS 0
    1212#define PADDING_SIZE (BLOCK_SIZE * PADDING_BLOCKS)
    13 #define COPYBACK_BLOCKS 10
     13#define COPYBACK_BLOCKS 2
    1414#define COPYBACK_SIZE (BLOCK_SIZE * COPYBACK_BLOCKS)
    15 #define SEGMENT_BLOCKS  1000
     15#define SEGMENT_BLOCKS  2
    1616#define SEGMENT_SIZE (BLOCK_SIZE * SEGMENT_BLOCKS)
    1717#define BUFFER_SIZE (COPYBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE)
     
    4242
    4343#define COPY_BACK_BYTE_BUFFER(copyback, base) \
    44 do {    void * src = copyback;\
    45         void * dest = (uint8_t *)base + (SEGMENT_SIZE - COPYBACK_SIZE);\
     44do {    void * dest = copyback;\
     45        void * src = (uint8_t *)base + (SEGMENT_SIZE - COPYBACK_SIZE);\
    4646        assert_bitblock_align(src);\
    4747        assert_bitblock_align(dest);\
    48         memmove(src, dest, COPYBACK_SIZE);\
     48        memmove(dest, src, COPYBACK_SIZE);\
    4949} while(0)
    5050
    5151#define COPY_BACK_BITBLOCK_BUFFER(copyback, base) \
    52 do {    void * src = copyback;\
    53         void * dest = (uint8_t *)base + ((SEGMENT_SIZE - COPYBACK_SIZE)/8);\
     52do {    void * dest = copyback;\
     53        void * src = (uint8_t *)base + ((SEGMENT_SIZE - COPYBACK_SIZE)/8);\
    5454        assert_bitblock_align(src);\
    5555        assert_bitblock_align(dest);\
    56         memmove(src, dest, COPYBACK_SIZE/8);\
     56        memmove(dest, src, COPYBACK_SIZE/8);\
    5757} while(0)
    5858
Note: See TracChangeset for help on using the changeset viewer.