scc

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

stdint.h (2829B)


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