boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

stdint.h (1265B)


      1 #ifndef _STDINT_H
      2 #define _STDINT_H
      3 typedef signed char        int8_t;
      4 typedef signed short       int16_t;
      5 typedef signed int         int32_t;
      6 typedef signed long long   int64_t;
      7 typedef unsigned char      uint8_t;
      8 typedef unsigned short     uint16_t;
      9 typedef unsigned int       uint32_t;
     10 typedef unsigned long long uint64_t;
     11 typedef long               intptr_t;
     12 typedef unsigned long      uintptr_t;
     13 typedef long long          intmax_t;
     14 typedef unsigned long long uintmax_t;
     15 /* tccelf.c re-typedefs uintptr_t unless __intptr_t_defined is set;
     16  * announce ours so the in-source decl is skipped. */
     17 #define __intptr_t_defined 1
     18 #define INT8_MIN    (-128)
     19 #define INT16_MIN   (-32768)
     20 #define INT32_MIN   (-2147483648)
     21 #define INT64_MIN   (-9223372036854775807LL-1)
     22 #define INT8_MAX    127
     23 #define INT16_MAX   32767
     24 #define INT32_MAX   2147483647
     25 #define INT64_MAX   9223372036854775807LL
     26 #define UINT8_MAX   255U
     27 #define UINT16_MAX  65535U
     28 #define UINT32_MAX  4294967295U
     29 #define UINT64_MAX  18446744073709551615ULL
     30 #define INTPTR_MIN  INT64_MIN
     31 #define INTPTR_MAX  INT64_MAX
     32 #define UINTPTR_MAX UINT64_MAX
     33 #define INTMAX_MAX  INT64_MAX
     34 #define UINTMAX_MAX UINT64_MAX
     35 #define SIZE_MAX    UINT64_MAX
     36 #define PTRDIFF_MAX INT64_MAX
     37 #define PTRDIFF_MIN INT64_MIN
     38 #endif