changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / sys/include/ape/stdint.h

changeset 7368: d15d7627dee1
parent: 3a93f7ea1bf2
child: 3d96c36e0cc3
author: Ori Bernstein <ori@eigenstate.org>'
date: Fri, 06 Sep 2019 16:33:11 -0700
permissions: -rw-r--r--
description: Add missing UINTsz_MIN defines to 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 UINT8_MIN 0
24 #define UINT16_MIN 0
25 #define UINT32_MIN 0
26 #define UINT64_MIN 0
27 
28 #define INT8_MAX 0x7f
29 #define INT16_MAX 0x7fff
30 #define INT32_MAX 0x7fffffff
31 #define INT64_MAX 0x7fffffffffffffffULL
32 
33 #define UINT8_MAX 0xff
34 #define UINT16_MAX 0xffff
35 #define UINT32_MAX 0xffffffffL
36 #define UINT64_MAX 0xffffffffffffffffULL
37 
38 #endif