Subversion Repositories Kolibri OS

Rev

Rev 8687 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8687 Rev 8718
1
#ifndef _STDINT_H_
1
#ifndef _STDINT_H_
2
#define _STDINT_H_
2
#define _STDINT_H_
3
 
3
 
4
#include 
4
#include 
5
 
5
 
6
#define INT8_MIN        (-128)
6
#define INT8_MIN        (-128)
7
#define INT8_MAX         (127)
7
#define INT8_MAX         (127)
8
#define UINT8_MAX        (255)
8
#define UINT8_MAX        (255)
9
 
9
 
10
#define INT16_MIN       (-32768)
10
#define INT16_MIN       (-32768)
11
#define INT16_MAX        (32767)
11
#define INT16_MAX        (32767)
12
#define UINT16_MAX       (65535)
12
#define UINT16_MAX       (65535)
13
 
13
 
14
#define INT32_MIN        (-2147483647L-1)
14
#define INT32_MIN        (-2147483647L-1)
15
#define INT32_MAX        (2147483647L)
15
#define INT32_MAX        (2147483647L)
16
#define UINT32_MAX       (4294967295UL)
16
#define UINT32_MAX       (4294967295UL)
17
 
17
 
18
#if __have_long64
18
#if __have_long64
19
#define INT64_MIN       (-9223372036854775807L-1L)
19
#define INT64_MIN       (-9223372036854775807L-1L)
20
#define INT64_MAX        (9223372036854775807L)
20
#define INT64_MAX        (9223372036854775807L)
21
#define UINT64_MAX      (18446744073709551615U)
21
#define UINT64_MAX      (18446744073709551615U)
22
#elif __have_longlong64
22
#elif __have_longlong64
23
#define INT64_MIN       (-9223372036854775807LL-1LL)
23
#define INT64_MIN       (-9223372036854775807LL-1LL)
24
#define INT64_MAX        (9223372036854775807LL)
24
#define INT64_MAX        (9223372036854775807LL)
25
#define UINT64_MAX      (18446744073709551615ULL)
25
#define UINT64_MAX      (18446744073709551615ULL)
-
 
26
#else
-
 
27
#define INT64_MAX       0x7fffffffffffffffLL
-
 
28
#define INT64_MIN       (-INT64_MAX - 1LL)
-
 
29
#define UINT64_MAX      (__CONCAT(INT64_MAX, U) * 2ULL + 1ULL) 
26
#endif
30
#endif
27
 
31
 
28
#endif /* _STDINT_H_*/
32
#endif /* _STDINT_H_*/