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

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

Updated Makefile. Updated comments.

File size: 611 bytes
Line 
1#ifndef BUFFER_HPP
2#define BUFFER_HPP
3
4///////////////////////////////////////////////////////////////////////////
5// Buffer Management
6///////////////////////////////////////////////////////////////////////////
7#define PADDING_BLOCKS 1
8#define PADDING_SIZE BLOCK_SIZE * PADDING_BLOCKS
9#define LOOKBACK_BLOCKS 1
10#define LOOKBACK_SIZE BLOCK_SIZE * LOOKBACK_BLOCKS
11#define SEGMENT_BLOCKS 5000                             // 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.