inttypes.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. /****************************************************************************
  2. * arch/misoc/include/inttypes.h
  3. *
  4. * Copyright (C) 2016 Omni Hoverboards Inc. All rights reserved.
  5. * Author: Paul Alexander Patience <paul-a.patience@polymtl.ca>
  6. *
  7. * Redistribution and use in source and binary forms, with or without
  8. * modification, are permitted provided that the following conditions
  9. * are met:
  10. *
  11. * 1. Redistributions of source code must retain the above copyright
  12. * notice, this list of conditions and the following disclaimer.
  13. * 2. Redistributions in binary form must reproduce the above copyright
  14. * notice, this list of conditions and the following disclaimer in
  15. * the documentation and/or other materials provided with the
  16. * distribution.
  17. * 3. Neither the name NuttX nor the names of its contributors may be
  18. * used to endorse or promote products derived from this software
  19. * without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24. * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  25. * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  26. * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  27. * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  28. * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  29. * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
  31. * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  32. * POSSIBILITY OF SUCH DAMAGE.
  33. *
  34. ****************************************************************************/
  35. #ifndef __ARCH_MISOC_INCLUDE_INTTYPES_H
  36. #define __ARCH_MISOC_INCLUDE_INTTYPES_H
  37. /****************************************************************************
  38. * Included Files
  39. ****************************************************************************/
  40. /****************************************************************************
  41. * Pre-processor Definitions
  42. ****************************************************************************/
  43. #define PRId8 "d"
  44. #define PRId16 "d"
  45. #define PRId32 "d"
  46. #define PRId64 "lld"
  47. #define PRIdLEAST8 "d"
  48. #define PRIdLEAST16 "d"
  49. #define PRIdLEAST32 "d"
  50. #define PRIdLEAST64 "lld"
  51. #define PRIdFAST8 "d"
  52. #define PRIdFAST16 "d"
  53. #define PRIdFAST32 "d"
  54. #define PRIdFAST64 "lld"
  55. #define PRIdMAX "lld"
  56. #define PRIdPTR "d"
  57. #define PRIi8 "i"
  58. #define PRIi16 "i"
  59. #define PRIi32 "i"
  60. #define PRIi64 "lli"
  61. #define PRIiLEAST8 "i"
  62. #define PRIiLEAST16 "i"
  63. #define PRIiLEAST32 "i"
  64. #define PRIiLEAST64 "lli"
  65. #define PRIiFAST8 "i"
  66. #define PRIiFAST16 "i"
  67. #define PRIiFAST32 "i"
  68. #define PRIiFAST64 "lli"
  69. #define PRIiMAX "lli"
  70. #define PRIiPTR "i"
  71. #define PRIo8 "o"
  72. #define PRIo16 "o"
  73. #define PRIo32 "o"
  74. #define PRIo64 "llo"
  75. #define PRIoLEAST8 "o"
  76. #define PRIoLEAST16 "o"
  77. #define PRIoLEAST32 "o"
  78. #define PRIoLEAST64 "llo"
  79. #define PRIoFAST8 "o"
  80. #define PRIoFAST16 "o"
  81. #define PRIoFAST32 "o"
  82. #define PRIoFAST64 "llo"
  83. #define PRIoMAX "llo"
  84. #define PRIoPTR "o"
  85. #define PRIu8 "u"
  86. #define PRIu16 "u"
  87. #define PRIu32 "u"
  88. #define PRIu64 "llu"
  89. #define PRIuLEAST8 "u"
  90. #define PRIuLEAST16 "u"
  91. #define PRIuLEAST32 "u"
  92. #define PRIuLEAST64 "llu"
  93. #define PRIuFAST8 "u"
  94. #define PRIuFAST16 "u"
  95. #define PRIuFAST32 "u"
  96. #define PRIuFAST64 "llu"
  97. #define PRIuMAX "llu"
  98. #define PRIuPTR "u"
  99. #define PRIx8 "x"
  100. #define PRIx16 "x"
  101. #define PRIx32 "x"
  102. #define PRIx64 "llx"
  103. #define PRIxLEAST8 "x"
  104. #define PRIxLEAST16 "x"
  105. #define PRIxLEAST32 "x"
  106. #define PRIxLEAST64 "llx"
  107. #define PRIxFAST8 "x"
  108. #define PRIxFAST16 "x"
  109. #define PRIxFAST32 "x"
  110. #define PRIxFAST64 "llx"
  111. #define PRIxMAX "llx"
  112. #define PRIxPTR "x"
  113. #define PRIX8 "X"
  114. #define PRIX16 "X"
  115. #define PRIX32 "X"
  116. #define PRIX64 "llX"
  117. #define PRIXLEAST8 "X"
  118. #define PRIXLEAST16 "X"
  119. #define PRIXLEAST32 "X"
  120. #define PRIXLEAST64 "llX"
  121. #define PRIXFAST8 "X"
  122. #define PRIXFAST16 "X"
  123. #define PRIXFAST32 "X"
  124. #define PRIXFAST64 "llX"
  125. #define PRIXMAX "llX"
  126. #define PRIXPTR "X"
  127. #define SCNd8 "hhd"
  128. #define SCNd16 "hd"
  129. #define SCNd32 "d"
  130. #define SCNd64 "lld"
  131. #define SCNdLEAST8 "hhd"
  132. #define SCNdLEAST16 "hd"
  133. #define SCNdLEAST32 "d"
  134. #define SCNdLEAST64 "lld"
  135. #define SCNdFAST8 "hhd"
  136. #define SCNdFAST16 "hd"
  137. #define SCNdFAST32 "d"
  138. #define SCNdFAST64 "lld"
  139. #define SCNdMAX "lld"
  140. #define SCNdPTR "d"
  141. #define SCNi8 "hhi"
  142. #define SCNi16 "hi"
  143. #define SCNi32 "i"
  144. #define SCNi64 "lli"
  145. #define SCNiLEAST8 "hhi"
  146. #define SCNiLEAST16 "hi"
  147. #define SCNiLEAST32 "i"
  148. #define SCNiLEAST64 "lli"
  149. #define SCNiFAST8 "hhi"
  150. #define SCNiFAST16 "hi"
  151. #define SCNiFAST32 "i"
  152. #define SCNiFAST64 "lli"
  153. #define SCNiMAX "lli"
  154. #define SCNiPTR "i"
  155. #define SCNo8 "hho"
  156. #define SCNo16 "ho"
  157. #define SCNo32 "o"
  158. #define SCNo64 "llo"
  159. #define SCNoLEAST8 "hho"
  160. #define SCNoLEAST16 "ho"
  161. #define SCNoLEAST32 "o"
  162. #define SCNoLEAST64 "llo"
  163. #define SCNoFAST8 "hho"
  164. #define SCNoFAST16 "ho"
  165. #define SCNoFAST32 "o"
  166. #define SCNoFAST64 "llo"
  167. #define SCNoMAX "llo"
  168. #define SCNoPTR "o"
  169. #define SCNu8 "hhu"
  170. #define SCNu16 "hu"
  171. #define SCNu32 "u"
  172. #define SCNu64 "llu"
  173. #define SCNuLEAST8 "hhu"
  174. #define SCNuLEAST16 "hu"
  175. #define SCNuLEAST32 "u"
  176. #define SCNuLEAST64 "llu"
  177. #define SCNuFAST8 "hhu"
  178. #define SCNuFAST16 "hu"
  179. #define SCNuFAST32 "u"
  180. #define SCNuFAST64 "llu"
  181. #define SCNuMAX "llu"
  182. #define SCNuPTR "u"
  183. #define SCNx8 "hhx"
  184. #define SCNx16 "hx"
  185. #define SCNx32 "x"
  186. #define SCNx64 "llx"
  187. #define SCNxLEAST8 "hhx"
  188. #define SCNxLEAST16 "hx"
  189. #define SCNxLEAST32 "x"
  190. #define SCNxLEAST64 "llx"
  191. #define SCNxFAST8 "hhx"
  192. #define SCNxFAST16 "hx"
  193. #define SCNxFAST32 "x"
  194. #define SCNxFAST64 "llx"
  195. #define SCNxMAX "llx"
  196. #define SCNxPTR "x"
  197. #endif /* __ARCH_MISOC_INCLUDE_INTTYPES_H */