CIRCT 24.0.0git
Loading...
Searching...
No Matches
esi::utils Namespace Reference

Classes

class  TSQueue
 Thread safe queue. More...
class  ReadyIdSet
 Multi-producer / single-consumer dirty-set of channel ids, with CV-style blocking drain semantics. More...

Functions

void encodeBase64 (const void *data, size_t size, std::string &out)
size_t hash_combine (size_t h1, size_t h2)
 C++'s stdlib doesn't have a hash_combine function. This is a simple one.
uint64_t bitsToBytes (uint64_t bits)
 Compute ceil(bits/8).

Function Documentation

◆ bitsToBytes()

uint64_t esi::utils::bitsToBytes ( uint64_t bits)
inline

Compute ceil(bits/8).

Definition at line 232 of file Utils.h.

Referenced by esi::ChannelPort::getFrameSizeBytes().

◆ encodeBase64()

void esi::utils::encodeBase64 ( const void * data,
size_t size,
std::string & out )

Definition at line 23 of file Utils.cpp.

References Table.

Referenced by esi::backends::trace::TraceAccelerator::Impl::write().

◆ hash_combine()

size_t esi::utils::hash_combine ( size_t h1,
size_t h2 )
inline

C++'s stdlib doesn't have a hash_combine function. This is a simple one.

Definition at line 36 of file Utils.h.

Referenced by NB_MODULE().