Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
utils.hpp File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <limits>
#include <sstream>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include <foxxll/common/types.hpp>
#include <foxxll/config.hpp>
+ Include dependency graph for utils.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 foxxll
 FOXXLL library namespace
 

Macros

#define LIKELY(c)   c
 
#define UNLIKELY(c)   c
 

Functions

int64_t atoi64 (const char *s)
 
uint64_t atouint64 (const char *s)
 
template<typename Integral , typename Integral2 >
std::remove_const< Integral >::type div_ceil (Integral n, Integral2 d)
 
size_t longhash1 (uint64_t key_)
 
template<class Container >
Container::value_type pop (Container &c)
 
template<class Container >
Container::value_type pop_back (Container &c)
 
template<class Container >
Container::value_type pop_begin (Container &c)
 
template<class Container >
Container::value_type pop_front (Container &c)
 
template<typename Integral >
Integral round_up_to_power_of_two (Integral n, unsigned power)
 round n up to next larger multiple of 2^power. example: (48,4) = 64, (48,3) = 48. More...
 
template<class Type >
void swap_1D_arrays (Type *a, Type *b, size_t size)
 
template<typename Type >
std::string to_str (const Type &t)
 Format any ostream-able type into a string. More...
 

Macro Definition Documentation

#define LIKELY (   c)    c

Definition at line 82 of file utils.hpp.