#include <boost/cstdint.hpp>
#include <boost/type_traits.hpp>
#include <boost/utility/enable_if.hpp>
Go to the source code of this file.
Defines | |
#define | finline inline __attribute__((always_inline)) |
#define | if_is_base_of(X, Y) typename boost::enable_if<boost::is_base_of<X, Y> , int>::type __v = 0 |
#define | if_uint(X) |
#define | if_int(X) |
#define | CONVERT_SIGN(X, Y) |
Functions | |
CONVERT_SIGN (uint8_t, int8_t) | |
CONVERT_SIGN (uint16_t, int16_t) | |
CONVERT_SIGN (uint32_t, int32_t) | |
CONVERT_SIGN (uint64_t, int64_t) |
#define CONVERT_SIGN | ( | X, | |||
Y | ) |
#define finline inline __attribute__((always_inline)) |
Definition at line 48 of file Utilities.hpp.
#define if_int | ( | X | ) |
Value:
typename boost::enable_if<boost::is_integral<X>,void*>::type __i##X = NULL,\ typename boost::enable_if<boost::is_signed<X>,void*>::type __s##X = NULL
Definition at line 61 of file Utilities.hpp.
#define if_is_base_of | ( | X, | |||
Y | ) | typename boost::enable_if<boost::is_base_of<X, Y> , int>::type __v = 0 |
Definition at line 52 of file Utilities.hpp.
#define if_uint | ( | X | ) |
Value:
typename boost::enable_if<boost::is_integral<X>,int>::type __i##X = 0,\ typename boost::enable_if<boost::is_unsigned<X>,int>::type __u##X = 0
Definition at line 56 of file Utilities.hpp.
CONVERT_SIGN | ( | uint64_t | , | |
int64_t | ||||
) |
CONVERT_SIGN | ( | uint32_t | , | |
int32_t | ||||
) |
CONVERT_SIGN | ( | uint16_t | , | |
int16_t | ||||
) |
CONVERT_SIGN | ( | uint8_t | , | |
int8_t | ||||
) |