3#include <cgv/type/standard_types.h>
19# define __INT64_C(c) c ## L
20# define __UINT64_C(c) c ## UL
22# define __INT64_C(c) c ## LL
23# define __UINT64_C(c) c ## ULL
27#define _I16_MAX (32767)
28#define _I32_MAX (2147483647)
29#define _I64_MAX (__INT64_C(9223372036854775807))
31#define _UI16_MAX (65535)
32#define _UI32_MAX (4294967295U)
33#define _UI64_MAX (__UINT64_C(18446744073709551615))
42 template <
typename T>
struct max {};
55 template <>
struct max_fct<float> {
static float get_value() {
return FLT_MAX; } };
56 template <>
struct max_fct<double> {
static double get_value() {
return DBL_MAX; } };
signed char int8_type
this type provides an 8 bit signed integer type
int int32_type
this type provides an 32 bit signed integer type
short int16_type
this type provides an 16 bit signed integer type
unsigned short uint16_type
this type provides an 16 bit unsigned integer type
unsigned long long uint64_type
this type provides an 64 bit unsigned integer type
unsigned int uint32_type
this type provides an 32 bit unsigned integer type
long long int64_type
this type provides an 64 bit signed integer type
unsigned char uint8_type
this type provides an 8 bit unsigned integer type
this header is dependency free
the max_fct traits provides a static function returning the maximal value of a type.
the max traits defines for each type in the static const member value, what the maximum value is.