OmniSketch  0.1
Oh my sketch!
utils.cpp File Reference

Implementation of utils. More...

#include <cassert>
#include <common/logger.h>
#include <common/utils.h>
#include <fmt/core.h>
Include dependency graph for utils.cpp:

Namespaces

 OmniSketch
 
 OmniSketch::Util
 Utils of manipulating integers, parsing configuration files and so on.
 

Functions

bool OmniSketch::Util::IsPrime (int32_t n)
 Compute primality of a 32-bit number. More...
 
int32_t OmniSketch::Util::NextPrime (int32_t n)
 Find the next prime number. More...
 
uint16_t OmniSketch::Util::Net2Host16 (uint16_t val)
 Convert a 2-byte word from network endian to the host endian. More...
 
uint32_t OmniSketch::Util::Net2Host32 (uint32_t val)
 Convert a 4-byte word from network endian to host endian. More...
 

Detailed Description

Implementation of utils.

Author
FerricIon (you@d.nosp@m.omai.nosp@m.n.com)