source: trunk/symbol_table/src/buffer.hpp @ 2114

Last change on this file since 2114 was 2114, checked in by ksherdy, 7 years ago

Minor update to test script and buffer.hpp

File size: 613 bytes
Line 
1#ifndef BUFFER_HPP
2#define BUFFER_HPP
3
4///////////////////////////////////////////////////////////////////////////
5// Buffer Management
6///////////////////////////////////////////////////////////////////////////
7#define PADDING_BLOCKS 0
8#define PADDING_SIZE BLOCK_SIZE * PADDING_BLOCKS
9#define LOOKBACK_BLOCKS 4
10#define LOOKBACK_SIZE BLOCK_SIZE * LOOKBACK_BLOCKS
11#define SEGMENT_BLOCKS  10                              // Slurp file
12#define SEGMENT_SIZE BLOCK_SIZE * (SEGMENT_BLOCKS)      // A multiple of BLOCK_SIZE (n bytes)
13#define SEGMENT_ALLOC_SIZE (LOOKBACK_SIZE + SEGMENT_SIZE + PADDING_SIZE) // / sizeof(BitBlock)
14
15#endif // BUFFER_HPP
Note: See TracBrowser for help on using the repository browser.