27 #ifndef SC_TEMPORARY_H
28 #define SC_TEMPORARY_H
79 bytes_n = (bytes_n + 7) & ((std::size_t)(-8));
166 inline sc_vpool(
int log2, T* pool_p=0 );
170 inline std::size_t
size();
175 , m_pool_p( pool_p ? pool_p : new T[static_cast<std::size_t>(1) << log2] )
176 , m_wrap( ~(static_cast<std::size_t>(-1) << log2) )
190 result_p = &m_pool_p[m_pool_i];
191 m_pool_i = (m_pool_i + 1) & m_wrap;
226 #endif // SC_TEMPORARY_H
void initialize(std::size_t heap_size=0x100000)
sc_vpool(int log2, T *pool_p=0)
sc_byte_heap(std::size_t heap_size)
char * allocate(std::size_t bytes_n)