]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/stdint.h
libsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober...
[plan9front.git] / sys / include / ape / stdint.h
1 #ifndef _STDINT_H_
2 #define _STDINT_H_ 1
3
4 typedef int _intptr_t;
5 typedef unsigned int _uintptr_t;
6
7 typedef char int8_t;
8 typedef short int16_t;
9 typedef int int32_t;
10 typedef long long int64_t;
11 typedef unsigned char uint8_t;
12 typedef unsigned short uint16_t;
13 typedef unsigned int uint32_t;
14 typedef unsigned long long uint64_t;
15 typedef _intptr_t intptr_t;
16 typedef _uintptr_t uintptr_t;
17
18 #define INT8_MIN        0x80
19 #define INT16_MIN       0x8000
20 #define INT32_MIN       0x80000000
21 #define INT64_MIN       0x8000000000000000LL
22
23 #define INT8_MAX        0x7f
24 #define INT16_MAX       0x7fff
25 #define INT32_MAX       0x7fffffff
26 #define INT64_MAX       0x7fffffffffffffffULL
27
28 #define UINT8_MAX       0xff
29 #define UINT16_MAX      0xffff
30 #define UINT32_MAX      0xffffffffL
31 #define UINT64_MAX      0xffffffffffffffffULL
32
33 #endif