Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
limits.h
Go to the documentation of this file.
1#ifndef _STD_LIMITS_H
2#define _STD_LIMITS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#define CHAR_BIT 8
9
10#define SCHAR_MIN (-0x7F - 1)
11#define SCHAR_MAX 0x7F
12#define UCHAR_MAX 0xFF
13
14#define CHAR_MIN 0
15#define CHAR_MAX SCHAR_MAX
16
17#define SHRT_MIN (-0x7FFF - 1)
18#define SHRT_MAX 0x7FFF
19#define USHRT_MAX 0xFFFF
20
21#define INT_MIN (-0x7FFFFFFF - 1)
22#define INT_MAX 0x7FFFFFFF
23#define UINT_MAX 0xFFFFFFFF
24
25#define LONG_MIN (-0x7FFFFFFFL - 1)
26#define LONG_MAX 0x7FFFFFFFL
27#define ULONG_MAX 0xFFFFFFFFUL
28
29#define LLONG_MIN (-0x7FFFFFFFFFFFFFFFLL - 1)
30#define LLONG_MAX 0x7FFFFFFFFFFFFFFFLL
31#define ULLONG_MAX 0xFFFFFFFFFFFFFFFFULL
32
33#ifdef __cplusplus
34}
35
36namespace std {
37template <typename T>
39public:
40 inline static T min();
41 inline static T max();
42};
43
44template <>
46public:
47 inline static char min() { return -0x80; }
48 inline static char max() { return 0x7F; }
49};
50
51template <>
53public:
54 inline static short min() { return -0x8000; }
55 inline static short max() { return 0x7FFF; }
56};
57
58template <>
60public:
61 inline static int min() { return -0x80000000; }
62 inline static int max() { return 0x7FFFFFFF; }
63};
64
65template <>
67public:
68 inline static long min() { return -0x80000000; }
69 inline static long max() { return 0x7FFFFFFF; }
70};
71
72template <>
74public:
75 inline static unsigned char min() { return 0x0; }
76 inline static unsigned char max() { return 0xFF; }
77};
78
79template <>
81public:
82 inline static unsigned short min() { return 0x0; }
83 inline static unsigned short max() { return 0xFFFF; }
84};
85
86template <>
88public:
89 inline static unsigned int min() { return 0x0; }
90 inline static unsigned int max() { return 0xFFFFFFFF; }
91};
92
93template <>
95public:
96 inline static unsigned long min() { return 0x0; }
97 inline static unsigned long max() { return 0xFFFFFFFF; }
98};
99
100} // namespace std
101#endif
102#endif
T cLib_calcTimer(T *value)
Definition c_lib.h:74
static char max()
Definition limits.h:48
static char min()
Definition limits.h:47
static int min()
Definition limits.h:61
static int max()
Definition limits.h:62
static long max()
Definition limits.h:69
static long min()
Definition limits.h:68
static short max()
Definition limits.h:55
static short min()
Definition limits.h:54
static unsigned char max()
Definition limits.h:76
static unsigned char min()
Definition limits.h:75
static unsigned int min()
Definition limits.h:89
static unsigned int max()
Definition limits.h:90
static unsigned long max()
Definition limits.h:97
static unsigned long min()
Definition limits.h:96
static unsigned short min()
Definition limits.h:82
static unsigned short max()
Definition limits.h:83
Definition limits.h:38
static const double T[]
Definition k_tan.c:106
Definition d_a_e_wb.cpp:12