inttypes.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. #ifndef _BITS_INTTYPE_H
  2. #define _BITS_INTTYPE_H
  3. #define PRId8 "hhd"
  4. #define PRId16 "hd"
  5. #define PRId32 "d"
  6. #define PRId64 "ld"
  7. #define PRIdLEAST8 "hhd"
  8. #define PRIdLEAST16 "hd"
  9. #define PRIdLEAST32 "d"
  10. #define PRIdLEAST64 "ld"
  11. #define PRIdFAST8 "hhd"
  12. #define PRIdFAST16 "hd"
  13. #define PRIdFAST32 "d"
  14. #define PRIdFAST64 "ld"
  15. #define PRIi8 "hhi"
  16. #define PRIi16 "hi"
  17. #define PRIi32 "i"
  18. #define PRIi64 "li"
  19. #define PRIiLEAST8 "hhi"
  20. #define PRIiLEAST16 "hi"
  21. #define PRIiLEAST32 "i"
  22. #define PRIiLEAST64 "li"
  23. #define PRIiFAST8 "hhi"
  24. #define PRIiFAST16 "hi"
  25. #define PRIiFAST32 "i"
  26. #define PRIiFAST64 "li"
  27. #define PRIo8 "hho"
  28. #define PRIo16 "ho"
  29. #define PRIo32 "o"
  30. #define PRIo64 "lo"
  31. #define PRIoLEAST8 "hho"
  32. #define PRIoLEAST16 "ho"
  33. #define PRIoLEAST32 "o"
  34. #define PRIoLEAST64 "lo"
  35. #define PRIoFAST8 "hho"
  36. #define PRIoFAST16 "ho"
  37. #define PRIoFAST32 "o"
  38. #define PRIoFAST64 "lo"
  39. #define PRIu8 "hhu"
  40. #define PRIu16 "hu"
  41. #define PRIu32 "u"
  42. #define PRIu64 "lu"
  43. #define PRIuLEAST8 "hhu"
  44. #define PRIuLEAST16 "hu"
  45. #define PRIuLEAST32 "u"
  46. #define PRIuLEAST64 "lu"
  47. #define PRIuFAST8 "hhu"
  48. #define PRIuFAST16 "hu"
  49. #define PRIuFAST32 "u"
  50. #define PRIuFAST64 "lu"
  51. #define PRIx8 "hhx"
  52. #define PRIx16 "hx"
  53. #define PRIx32 "x"
  54. #define PRIx64 "lx"
  55. #define PRIxLEAST8 "hhx"
  56. #define PRIxLEAST16 "hx"
  57. #define PRIxLEAST32 "x"
  58. #define PRIxLEAST64 "lx"
  59. #define PRIxFAST8 "hhx"
  60. #define PRIxFAST16 "hx"
  61. #define PRIxFAST32 "x"
  62. #define PRIxFAST64 "lx"
  63. #define PRIX8 "hhX"
  64. #define PRIX16 "hX"
  65. #define PRIX32 "X"
  66. #define PRIX64 "lX"
  67. #define PRIXLEAST8 "hhX"
  68. #define PRIXLEAST16 "hX"
  69. #define PRIXLEAST32 "X"
  70. #define PRIXLEAST64 "lX"
  71. #define PRIXFAST8 "hhX"
  72. #define PRIXFAST16 "hX"
  73. #define PRIXFAST32 "X"
  74. #define PRIXFAST64 "lX"
  75. #define PRIdMAX "jd"
  76. #define PRIiMAX "ji"
  77. #define PRIoMAX "jo"
  78. #define PRIuMAX "ju"
  79. #define PRIxMAX "jx"
  80. #define PRIXMAX "jX"
  81. #define PRIdPTR "td"
  82. #define PRIiPTR "ti"
  83. #define PRIoPTR "to"
  84. #define PRIuPTR "tu"
  85. #define PRIxPTR "tx"
  86. #define PRIXPTR "tX"
  87. #define SCNd8 PRId8
  88. #define SCNd16 PRId16
  89. #define SCNd32 PRId32
  90. #define SCNd64 PRId64
  91. #define SCNdLEAST8 PRIdLEAST8
  92. #define SCNdLEAST16 PRIdLEAST16
  93. #define SCNdLEAST32 PRIdLEAST32
  94. #define SCNdLEAST64 PRIdLEAST64
  95. #define SCNdFAST8 PRIdFAST8
  96. #define SCNdFAST16 PRIdFAST16
  97. #define SCNdFAST32 PRIdFAST32
  98. #define SCNdFAST64 PRIdFAST64
  99. #define SCNi8 PRIi8
  100. #define SCNi16 PRIi16
  101. #define SCNi32 PRIi32
  102. #define SCNi64 PRIi64
  103. #define SCNiLEAST8 PRIiLEAST8
  104. #define SCNiLEAST16 PRIiLEAST16
  105. #define SCNiLEAST32 PRIiLEAST32
  106. #define SCNiLEAST64 PRIiLEAST64
  107. #define SCNiFAST8 PRIiFAST8
  108. #define SCNiFAST16 PRIiFAST16
  109. #define SCNiFAST32 PRIiFAST32
  110. #define SCNiFAST64 PRIiFAST64
  111. #define SCNo8 PRIo8
  112. #define SCNo16 PRIo16
  113. #define SCNo32 PRIo32
  114. #define SCNo64 PRIo64
  115. #define SCNoLEAST8 PRIoLEAST8
  116. #define SCNoLEAST16 PRIoLEAST16
  117. #define SCNoLEAST32 PRIoLEAST32
  118. #define SCNoLEAST64 PRIoLEAST64
  119. #define SCNoFAST8 PRIoFAST8
  120. #define SCNoFAST16 PRIoFAST16
  121. #define SCNoFAST32 PRIoFAST32
  122. #define SCNoFAST64 PRIoFAST64
  123. #define SCNu8 PRIu8
  124. #define SCNu16 PRIu16
  125. #define SCNu32 PRIu32
  126. #define SCNu64 PRIu64
  127. #define SCNuLEAST8 PRIuLEAST8
  128. #define SCNuLEAST16 PRIuLEAST16
  129. #define SCNuLEAST32 PRIuLEAST32
  130. #define SCNuLEAST64 PRIuLEAST64
  131. #define SCNuFAST8 PRIuFAST8
  132. #define SCNuFAST16 PRIuFAST16
  133. #define SCNuFAST32 PRIuFAST32
  134. #define SCNuFAST64 PRIuFAST64
  135. #define SCNx8 PRIx8
  136. #define SCNx16 PRIx16
  137. #define SCNx32 PRIx32
  138. #define SCNx64 PRIx64
  139. #define SCNxLEAST8 PRIxLEAST8
  140. #define SCNxLEAST16 PRIxLEAST16
  141. #define SCNxLEAST32 PRIxLEAST32
  142. #define SCNxLEAST64 PRIxLEAST64
  143. #define SCNxFAST8 PRIxFAST8
  144. #define SCNxFAST16 PRIxFAST16
  145. #define SCNxFAST32 PRIxFAST32
  146. #define SCNxFAST64 PRIxFAST64
  147. #define SCNdMAX PRIdMAX
  148. #define SCNiMAX PRIiMAX
  149. #define SCNoMAX PRIoMAX
  150. #define SCNuMAX PRIuMAX
  151. #define SCNxMAX PRIxMAX
  152. #define SCNdPTR PRIdPTR
  153. #define SCNiPTR PRIiPTR
  154. #define SCNoPTR PRIoPTR
  155. #define SCNuPTR PRIuPTR
  156. #define SCNxPTR PRIxPTR
  157. #endif