3#include <cgv/type/standard_types.h>
14# define __INT64_C(c) c ## L
15# define __UINT64_C(c) c ## UL
17# define __INT64_C(c) c ## LL
18# define __UINT64_C(c) c ## ULL
22#define _I16_MAX (32767)
23#define _I32_MAX (2147483647)
24#define _I64_MAX (__INT64_C(9223372036854775807))
26#define _UI16_MAX (65535)
27#define _UI32_MAX (4294967295U)
28#define _UI64_MAX (__UINT64_C(18446744073709551615))
37 template <
typename T>
struct max {};
50 template <>
struct max_fct<float> {
static float get_value() {
return FLT_MAX; } };
51 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
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.