scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

stdint.h (2711B)


      1 #define INT8_MAX  0x7F
      2 #define INT8_MIN  (-INT8_MAX - 1)
      3 #define UINT8_MAX 0xFF
      4 
      5 #define INT16_MAX  0x7FFF
      6 #define INT16_MIN  (-INT16_MAX - 1)
      7 #define UINT16_MAX 0xFFFF
      8 
      9 #define INT32_MAX  0x7FFFFFFF
     10 #define INT32_MIN  (-INT32_MAX - 1)
     11 #define UINT32_MAX 0xFFFFFFFF
     12 
     13 #define INT64_MAX  0x7FFFFFFFFFFFFFFF
     14 #define INT64_MIN  (-INT64_MAX - 1)
     15 #define UINT64_MAX 0xFFFFFFFFFFFFFFFF
     16 
     17 #define INT_LEAST8_MIN  INT8_MIN
     18 #define INT_LEAST8_MAX  INT8_MAX
     19 #define UINT_LEAST8_MAX UINT8_MAX
     20 
     21 #define INT_LEAST16_MIN  INT16_MIN
     22 #define INT_LEAST16_MAX  INT16_MAX
     23 #define UINT_LEAST16_MAX UINT16_MAX
     24 
     25 #define INT_LEAST32_MIN  INT32_MIN
     26 #define INT_LEAST32_MAX  INT32_MAX
     27 #define UINT_LEAST32_MAX UINT32_MAX
     28 
     29 #define INT_LEAST64_MIN  INT64_MIN
     30 #define INT_LEAST64_MAX  INT64_MAX
     31 #define UINT_LEAST64_MAX UINT64_MAX
     32 
     33 #define INT_FAST8_MIN  INT8_MIN
     34 #define INT_FAST8_MAX  INT8_MAX
     35 #define UINT_FAST8_MAX UINT8_MAX
     36 
     37 #define INT_FAST16_MIN  INT32_MIN
     38 #define INT_FAST16_MAX  INT32_MAX
     39 #define UINT_FAST16_MAX UINT32_MAX
     40 
     41 #define INT_FAST32_MIN  INT32_MIN
     42 #define INT_FAST32_MAX  INT32_MAX
     43 #define UINT_FAST32_MAX UINT32_MAX
     44 
     45 #define INT_FAST64_MIN  INT64_MIN
     46 #define INT_FAST64_MAX  INT64_MAX
     47 #define UINT_FAST64_MAX UINT64_MAX
     48 
     49 #define INTPTR_MIN  INT32_MIN
     50 #define INTPTR_MAX  INT32_MAX
     51 #define UINTPTR_MAX UINT32_MAX
     52 
     53 #define INTMAX_MIN  INT64_MIN
     54 #define INTMAX_MAX  INT64_MAX
     55 #define UINTMAX_MAX UINT64_MAX
     56 
     57 #define PTRDIFF_MIN INT32_MIN
     58 #define PTRDIFF_MAX INT32_MAX
     59 
     60 #define SIG_ATOMIC_MIN INT32_MIN
     61 #define SIG_ATOMIC_MAX INT32_MAX
     62 
     63 #define SIZE_MAX UINT32_MAX
     64 
     65 #define INT8_C(x)  x
     66 #define INT16_C(x) x
     67 #define INT32_C(x) x
     68 #define INT64_C(x) x ## LL
     69 
     70 #define UINT8_C(x)  x
     71 #define UINT16_C(x) x
     72 #define UINT32_C(x) x ## U
     73 #define UINT64_C(x) x ## ULL
     74 
     75 #define INTMAX_C(x)  x ## LL
     76 #define UINTMAX_C(x) x ## ULL
     77 
     78 typedef signed char int8_t;
     79 typedef short int16_t;
     80 typedef int int32_t;
     81 typedef long long int64_t;
     82 
     83 typedef unsigned char uint8_t;
     84 typedef unsigned short uint16_t;
     85 typedef unsigned int uint32_t;
     86 typedef unsigned long long uint64_t;
     87 
     88 typedef signed char int_least8_t;
     89 typedef short int_least16_t;
     90 typedef int int_least32_t;
     91 typedef long long int_least64_t;
     92 
     93 typedef unsigned char uint_least8_t;
     94 typedef unsigned short uint_least16_t;
     95 typedef unsigned int uint_least32_t;
     96 typedef unsigned long long uint_least64_t;
     97 
     98 typedef signed char int_fast8_t;
     99 typedef int int_fast16_t;
    100 typedef int int_fast32_t;
    101 typedef long long int_fast64_t;
    102 
    103 typedef unsigned char uint_fast8_t;
    104 typedef unsigned int uint_fast16_t;
    105 typedef unsigned int uint_fast32_t;
    106 typedef unsigned long long uint_fast64_t;
    107 
    108 typedef long intptr_t;
    109 typedef unsigned long uintptr_t;
    110 
    111 typedef long long intmax_t;
    112 typedef unsigned long long uintmax_t;