1*1230bda5Schristos /* $NetBSD: int_fmtio.h,v 1.10 2018/07/15 00:36:13 christos Exp $ */ 2f06533a1Skleink 3f06533a1Skleink /*- 4f06533a1Skleink * Copyright (c) 2001 The NetBSD Foundation, Inc. 5f06533a1Skleink * All rights reserved. 6f06533a1Skleink * 7f06533a1Skleink * This code is derived from software contributed to The NetBSD Foundation 8f06533a1Skleink * by Klaus Klein. 9f06533a1Skleink * 10f06533a1Skleink * Redistribution and use in source and binary forms, with or without 11f06533a1Skleink * modification, are permitted provided that the following conditions 12f06533a1Skleink * are met: 13f06533a1Skleink * 1. Redistributions of source code must retain the above copyright 14f06533a1Skleink * notice, this list of conditions and the following disclaimer. 15f06533a1Skleink * 2. Redistributions in binary form must reproduce the above copyright 16f06533a1Skleink * notice, this list of conditions and the following disclaimer in the 17f06533a1Skleink * documentation and/or other materials provided with the distribution. 18f06533a1Skleink * 19f06533a1Skleink * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20f06533a1Skleink * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21f06533a1Skleink * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22f06533a1Skleink * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23f06533a1Skleink * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24f06533a1Skleink * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25f06533a1Skleink * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26f06533a1Skleink * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27f06533a1Skleink * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28f06533a1Skleink * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29f06533a1Skleink * POSSIBILITY OF SUCH DAMAGE. 30f06533a1Skleink */ 31f06533a1Skleink 32f06533a1Skleink #ifndef _ARM_INT_FMTIO_H_ 33f06533a1Skleink #define _ARM_INT_FMTIO_H_ 34f06533a1Skleink 35d87708c5Sjoerg #ifdef __INTPTR_FMTd__ 36d87708c5Sjoerg #include <sys/common_int_fmtio.h> 37d87708c5Sjoerg #else 38f06533a1Skleink /* 39f06533a1Skleink * 7.8.1 Macros for format specifiers 40f06533a1Skleink */ 41f06533a1Skleink 42f06533a1Skleink /* fprintf macros for signed integers */ 43f06533a1Skleink #define PRId8 "d" /* int8_t */ 44f06533a1Skleink #define PRId16 "d" /* int16_t */ 45f06533a1Skleink #define PRId32 "d" /* int32_t */ 46*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 47f06533a1Skleink #define PRId64 "lld" /* int64_t */ 48*1230bda5Schristos #else 49*1230bda5Schristos #define PRId64 "ld" /* int64_t */ 50*1230bda5Schristos #endif 51f06533a1Skleink #define PRIdLEAST8 "d" /* int_least8_t */ 52f06533a1Skleink #define PRIdLEAST16 "d" /* int_least16_t */ 53f06533a1Skleink #define PRIdLEAST32 "d" /* int_least32_t */ 54*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 55f06533a1Skleink #define PRIdLEAST64 "lld" /* int_least64_t */ 56*1230bda5Schristos #else 57*1230bda5Schristos #define PRIdLEAST64 "ld" /* int_least64_t */ 58*1230bda5Schristos #endif 5999054d7aSkleink #define PRIdFAST8 "d" /* int_fast8_t */ 6099054d7aSkleink #define PRIdFAST16 "d" /* int_fast16_t */ 6199054d7aSkleink #define PRIdFAST32 "d" /* int_fast32_t */ 62*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 6399054d7aSkleink #define PRIdFAST64 "lld" /* int_fast64_t */ 64f06533a1Skleink #define PRIdMAX "lld" /* intmax_t */ 65*1230bda5Schristos #else 66*1230bda5Schristos #define PRIdFAST64 "ld" /* int_fast64_t */ 67*1230bda5Schristos #define PRIdMAX "ld" /* intmax_t */ 68*1230bda5Schristos #endif 69d7c7a3eaSmatt #define PRIdPTR "ld" /* intptr_t */ 70f06533a1Skleink 71f06533a1Skleink #define PRIi8 "i" /* int8_t */ 72f06533a1Skleink #define PRIi16 "i" /* int16_t */ 73f06533a1Skleink #define PRIi32 "i" /* int32_t */ 74*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 75f06533a1Skleink #define PRIi64 "lli" /* int64_t */ 76*1230bda5Schristos #else 77*1230bda5Schristos #define PRIi64 "li" /* int64_t */ 78*1230bda5Schristos #endif 79f06533a1Skleink #define PRIiLEAST8 "i" /* int_least8_t */ 80f06533a1Skleink #define PRIiLEAST16 "i" /* int_least16_t */ 81f06533a1Skleink #define PRIiLEAST32 "i" /* int_least32_t */ 82*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 83f06533a1Skleink #define PRIiLEAST64 "lli" /* int_least64_t */ 84*1230bda5Schristos #else 85*1230bda5Schristos #define PRIiLEAST64 "li" /* int_least64_t */ 86*1230bda5Schristos #endif 8799054d7aSkleink #define PRIiFAST8 "i" /* int_fast8_t */ 8899054d7aSkleink #define PRIiFAST16 "i" /* int_fast16_t */ 8999054d7aSkleink #define PRIiFAST32 "i" /* int_fast32_t */ 90*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 9199054d7aSkleink #define PRIiFAST64 "lli" /* int_fast64_t */ 92f06533a1Skleink #define PRIiMAX "lli" /* intmax_t */ 93*1230bda5Schristos #else 94*1230bda5Schristos #define PRIiFAST64 "li" /* int_fast64_t */ 95*1230bda5Schristos #define PRIiMAX "li" /* intmax_t */ 96*1230bda5Schristos #endif 97d7c7a3eaSmatt #define PRIiPTR "li" /* intptr_t */ 98f06533a1Skleink 99f06533a1Skleink /* fprintf macros for unsigned integers */ 100f06533a1Skleink 101f06533a1Skleink #define PRIo8 "o" /* uint8_t */ 102f06533a1Skleink #define PRIo16 "o" /* uint16_t */ 103f06533a1Skleink #define PRIo32 "o" /* uint32_t */ 104*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 105f06533a1Skleink #define PRIo64 "llo" /* uint64_t */ 106*1230bda5Schristos #else 107*1230bda5Schristos #define PRIo64 "lo" /* uint64_t */ 108*1230bda5Schristos #endif 109f06533a1Skleink #define PRIoLEAST8 "o" /* uint_least8_t */ 110f06533a1Skleink #define PRIoLEAST16 "o" /* uint_least16_t */ 111f06533a1Skleink #define PRIoLEAST32 "o" /* uint_least32_t */ 112*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 113f06533a1Skleink #define PRIoLEAST64 "llo" /* uint_least64_t */ 114*1230bda5Schristos #else 115*1230bda5Schristos #define PRIoLEAST64 "lo" /* uint_least64_t */ 116*1230bda5Schristos #endif 11799054d7aSkleink #define PRIoFAST8 "o" /* uint_fast8_t */ 11899054d7aSkleink #define PRIoFAST16 "o" /* uint_fast16_t */ 11999054d7aSkleink #define PRIoFAST32 "o" /* uint_fast32_t */ 120*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 12199054d7aSkleink #define PRIoFAST64 "llo" /* uint_fast64_t */ 122f06533a1Skleink #define PRIoMAX "llo" /* uintmax_t */ 123*1230bda5Schristos #else 124*1230bda5Schristos #define PRIoFAST64 "lo" /* uint_fast64_t */ 125*1230bda5Schristos #define PRIoMAX "lo" /* uintmax_t */ 126*1230bda5Schristos #endif 127d7c7a3eaSmatt #define PRIoPTR "lo" /* uintptr_t */ 128f06533a1Skleink 129f06533a1Skleink #define PRIu8 "u" /* uint8_t */ 130f06533a1Skleink #define PRIu16 "u" /* uint16_t */ 131f06533a1Skleink #define PRIu32 "u" /* uint32_t */ 132*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 133f06533a1Skleink #define PRIu64 "llu" /* uint64_t */ 134*1230bda5Schristos #else 135*1230bda5Schristos #define PRIu64 "lu" /* uint64_t */ 136*1230bda5Schristos #endif 137f06533a1Skleink #define PRIuLEAST8 "u" /* uint_least8_t */ 138f06533a1Skleink #define PRIuLEAST16 "u" /* uint_least16_t */ 139f06533a1Skleink #define PRIuLEAST32 "u" /* uint_least32_t */ 140*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 141f06533a1Skleink #define PRIuLEAST64 "llu" /* uint_least64_t */ 142*1230bda5Schristos #else 143*1230bda5Schristos #define PRIuLEAST64 "lu" /* uint_least64_t */ 144*1230bda5Schristos #endif 14599054d7aSkleink #define PRIuFAST8 "u" /* uint_fast8_t */ 14699054d7aSkleink #define PRIuFAST16 "u" /* uint_fast16_t */ 14799054d7aSkleink #define PRIuFAST32 "u" /* uint_fast32_t */ 148*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 14999054d7aSkleink #define PRIuFAST64 "llu" /* uint_fast64_t */ 150f06533a1Skleink #define PRIuMAX "llu" /* uintmax_t */ 151*1230bda5Schristos #else 152*1230bda5Schristos #define PRIuFAST64 "lu" /* uint_fast64_t */ 153*1230bda5Schristos #define PRIuMAX "lu" /* uintmax_t */ 154*1230bda5Schristos #endif 155d7c7a3eaSmatt #define PRIuPTR "lu" /* uintptr_t */ 156f06533a1Skleink 157f06533a1Skleink #define PRIx8 "x" /* uint8_t */ 158f06533a1Skleink #define PRIx16 "x" /* uint16_t */ 159f06533a1Skleink #define PRIx32 "x" /* uint32_t */ 160*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 161f06533a1Skleink #define PRIx64 "llx" /* uint64_t */ 162*1230bda5Schristos #else 163*1230bda5Schristos #define PRIx64 "lx" /* uint64_t */ 164*1230bda5Schristos #endif 165f06533a1Skleink #define PRIxLEAST8 "x" /* uint_least8_t */ 166f06533a1Skleink #define PRIxLEAST16 "x" /* uint_least16_t */ 167f06533a1Skleink #define PRIxLEAST32 "x" /* uint_least32_t */ 168*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 169f06533a1Skleink #define PRIxLEAST64 "llx" /* uint_least64_t */ 170*1230bda5Schristos #else 171*1230bda5Schristos #define PRIxLEAST64 "lx" /* uint_least64_t */ 172*1230bda5Schristos #endif 17399054d7aSkleink #define PRIxFAST8 "x" /* uint_fast8_t */ 17499054d7aSkleink #define PRIxFAST16 "x" /* uint_fast16_t */ 17599054d7aSkleink #define PRIxFAST32 "x" /* uint_fast32_t */ 176*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 17799054d7aSkleink #define PRIxFAST64 "llx" /* uint_fast64_t */ 178f06533a1Skleink #define PRIxMAX "llx" /* uintmax_t */ 179*1230bda5Schristos #else 180*1230bda5Schristos #define PRIxFAST64 "lx" /* uint_fast64_t */ 181*1230bda5Schristos #define PRIxMAX "lx" /* uintmax_t */ 182*1230bda5Schristos #endif 183d7c7a3eaSmatt #define PRIxPTR "lx" /* uintptr_t */ 184f06533a1Skleink 185f06533a1Skleink #define PRIX8 "X" /* uint8_t */ 186f06533a1Skleink #define PRIX16 "X" /* uint16_t */ 187f06533a1Skleink #define PRIX32 "X" /* uint32_t */ 188*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 189f06533a1Skleink #define PRIX64 "llX" /* uint64_t */ 190*1230bda5Schristos #else 191*1230bda5Schristos #define PRIX64 "lX" /* uint64_t */ 192*1230bda5Schristos #endif 193f06533a1Skleink #define PRIXLEAST8 "X" /* uint_least8_t */ 194f06533a1Skleink #define PRIXLEAST16 "X" /* uint_least16_t */ 195f06533a1Skleink #define PRIXLEAST32 "X" /* uint_least32_t */ 196*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 197f06533a1Skleink #define PRIXLEAST64 "llX" /* uint_least64_t */ 198*1230bda5Schristos #else 199*1230bda5Schristos #define PRIXLEAST64 "lX" /* uint_least64_t */ 200*1230bda5Schristos #endif 20199054d7aSkleink #define PRIXFAST8 "X" /* uint_fast8_t */ 20299054d7aSkleink #define PRIXFAST16 "X" /* uint_fast16_t */ 20399054d7aSkleink #define PRIXFAST32 "X" /* uint_fast32_t */ 204*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 20599054d7aSkleink #define PRIXFAST64 "llX" /* uint_fast64_t */ 206f06533a1Skleink #define PRIXMAX "llX" /* uintmax_t */ 207*1230bda5Schristos #else 208*1230bda5Schristos #define PRIXFAST64 "lX" /* uint_fast64_t */ 209*1230bda5Schristos #define PRIXMAX "lX" /* uintmax_t */ 210*1230bda5Schristos #endif 211d7c7a3eaSmatt #define PRIXPTR "lX" /* uintptr_t */ 212f06533a1Skleink 213f06533a1Skleink /* fscanf macros for signed integers */ 214f06533a1Skleink 215f06533a1Skleink #define SCNd8 "hhd" /* int8_t */ 216f06533a1Skleink #define SCNd16 "hd" /* int16_t */ 217f06533a1Skleink #define SCNd32 "d" /* int32_t */ 218*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 219f06533a1Skleink #define SCNd64 "lld" /* int64_t */ 220*1230bda5Schristos #else 221*1230bda5Schristos #define SCNd64 "ld" /* int64_t */ 222*1230bda5Schristos #endif 223f06533a1Skleink #define SCNdLEAST8 "hhd" /* int_least8_t */ 224f06533a1Skleink #define SCNdLEAST16 "hd" /* int_least16_t */ 225f06533a1Skleink #define SCNdLEAST32 "d" /* int_least32_t */ 226*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 227f06533a1Skleink #define SCNdLEAST64 "lld" /* int_least64_t */ 228*1230bda5Schristos #else 229*1230bda5Schristos #define SCNdLEAST64 "ld" /* int_least64_t */ 230*1230bda5Schristos #endif 23199054d7aSkleink #define SCNdFAST8 "d" /* int_fast8_t */ 23299054d7aSkleink #define SCNdFAST16 "d" /* int_fast16_t */ 23399054d7aSkleink #define SCNdFAST32 "d" /* int_fast32_t */ 234*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 23599054d7aSkleink #define SCNdFAST64 "lld" /* int_fast64_t */ 236f06533a1Skleink #define SCNdMAX "lld" /* intmax_t */ 237*1230bda5Schristos #else 238*1230bda5Schristos #define SCNdFAST64 "ld" /* int_fast64_t */ 239*1230bda5Schristos #define SCNdMAX "ld" /* intmax_t */ 240*1230bda5Schristos #endif 241d7c7a3eaSmatt #define SCNdPTR "ld" /* intptr_t */ 242f06533a1Skleink 243f06533a1Skleink #define SCNi8 "hhi" /* int8_t */ 244f06533a1Skleink #define SCNi16 "hi" /* int16_t */ 245f06533a1Skleink #define SCNi32 "i" /* int32_t */ 246*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 247f06533a1Skleink #define SCNi64 "lli" /* int64_t */ 248*1230bda5Schristos #else 249*1230bda5Schristos #define SCNi64 "li" /* int64_t */ 250*1230bda5Schristos #endif 251f06533a1Skleink #define SCNiLEAST8 "hhi" /* int_least8_t */ 252f06533a1Skleink #define SCNiLEAST16 "hi" /* int_least16_t */ 253f06533a1Skleink #define SCNiLEAST32 "i" /* int_least32_t */ 254*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 255f06533a1Skleink #define SCNiLEAST64 "lli" /* int_least64_t */ 256*1230bda5Schristos #else 257*1230bda5Schristos #define SCNiLEAST64 "li" /* int_least64_t */ 258*1230bda5Schristos #endif 25999054d7aSkleink #define SCNiFAST8 "i" /* int_fast8_t */ 26099054d7aSkleink #define SCNiFAST16 "i" /* int_fast16_t */ 26199054d7aSkleink #define SCNiFAST32 "i" /* int_fast32_t */ 262*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 26399054d7aSkleink #define SCNiFAST64 "lli" /* int_fast64_t */ 264f06533a1Skleink #define SCNiMAX "lli" /* intmax_t */ 265*1230bda5Schristos #else 266*1230bda5Schristos #define SCNiFAST64 "li" /* int_fast64_t */ 267*1230bda5Schristos #define SCNiMAX "li" /* intmax_t */ 268*1230bda5Schristos #endif 269d7c7a3eaSmatt #define SCNiPTR "li" /* intptr_t */ 270f06533a1Skleink 271f06533a1Skleink /* fscanf macros for unsigned integers */ 272f06533a1Skleink 273f06533a1Skleink #define SCNo8 "hho" /* uint8_t */ 274f06533a1Skleink #define SCNo16 "ho" /* uint16_t */ 275f06533a1Skleink #define SCNo32 "o" /* uint32_t */ 276*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 277f06533a1Skleink #define SCNo64 "llo" /* uint64_t */ 278*1230bda5Schristos #else 279*1230bda5Schristos #define SCNo64 "lo" /* uint64_t */ 280*1230bda5Schristos #endif 281f06533a1Skleink #define SCNoLEAST8 "hho" /* uint_least8_t */ 282f06533a1Skleink #define SCNoLEAST16 "ho" /* uint_least16_t */ 283f06533a1Skleink #define SCNoLEAST32 "o" /* uint_least32_t */ 284*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 285f06533a1Skleink #define SCNoLEAST64 "llo" /* uint_least64_t */ 286*1230bda5Schristos #else 287*1230bda5Schristos #define SCNoLEAST64 "lo" /* uint_least64_t */ 288*1230bda5Schristos #endif 28999054d7aSkleink #define SCNoFAST8 "o" /* uint_fast8_t */ 29099054d7aSkleink #define SCNoFAST16 "o" /* uint_fast16_t */ 29199054d7aSkleink #define SCNoFAST32 "o" /* uint_fast32_t */ 292*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 29399054d7aSkleink #define SCNoFAST64 "llo" /* uint_fast64_t */ 294f06533a1Skleink #define SCNoMAX "llo" /* uintmax_t */ 295*1230bda5Schristos #else 296*1230bda5Schristos #define SCNoFAST64 "lo" /* uint_fast64_t */ 297*1230bda5Schristos #define SCNoMAX "lo" /* uintmax_t */ 298*1230bda5Schristos #endif 299d7c7a3eaSmatt #define SCNoPTR "lo" /* uintptr_t */ 300f06533a1Skleink 301f06533a1Skleink #define SCNu8 "hhu" /* uint8_t */ 302f06533a1Skleink #define SCNu16 "hu" /* uint16_t */ 303f06533a1Skleink #define SCNu32 "u" /* uint32_t */ 304*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 305f06533a1Skleink #define SCNu64 "llu" /* uint64_t */ 306*1230bda5Schristos #else 307*1230bda5Schristos #define SCNu64 "lu" /* uint64_t */ 308*1230bda5Schristos #endif 309f06533a1Skleink #define SCNuLEAST8 "hhu" /* uint_least8_t */ 310f06533a1Skleink #define SCNuLEAST16 "hu" /* uint_least16_t */ 311f06533a1Skleink #define SCNuLEAST32 "u" /* uint_least32_t */ 312*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 313f06533a1Skleink #define SCNuLEAST64 "llu" /* uint_least64_t */ 314*1230bda5Schristos #else 315*1230bda5Schristos #define SCNuLEAST64 "lu" /* uint_least64_t */ 316*1230bda5Schristos #endif 31799054d7aSkleink #define SCNuFAST8 "u" /* uint_fast8_t */ 31899054d7aSkleink #define SCNuFAST16 "u" /* uint_fast16_t */ 31999054d7aSkleink #define SCNuFAST32 "u" /* uint_fast32_t */ 320*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 32199054d7aSkleink #define SCNuFAST64 "llu" /* uint_fast64_t */ 322f06533a1Skleink #define SCNuMAX "llu" /* uintmax_t */ 323*1230bda5Schristos #else 324*1230bda5Schristos #define SCNuFAST64 "lu" /* uint_fast64_t */ 325*1230bda5Schristos #define SCNuMAX "lu" /* uintmax_t */ 326*1230bda5Schristos #endif 327d7c7a3eaSmatt #define SCNuPTR "lu" /* uintptr_t */ 328f06533a1Skleink 329f06533a1Skleink #define SCNx8 "hhx" /* uint8_t */ 330f06533a1Skleink #define SCNx16 "hx" /* uint16_t */ 331f06533a1Skleink #define SCNx32 "x" /* uint32_t */ 332*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 333f06533a1Skleink #define SCNx64 "llx" /* uint64_t */ 334*1230bda5Schristos #else 335*1230bda5Schristos #define SCNx64 "lx" /* uint64_t */ 336*1230bda5Schristos #endif 337f06533a1Skleink #define SCNxLEAST8 "hhx" /* uint_least8_t */ 338f06533a1Skleink #define SCNxLEAST16 "hx" /* uint_least16_t */ 339f06533a1Skleink #define SCNxLEAST32 "x" /* uint_least32_t */ 340*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 341f06533a1Skleink #define SCNxLEAST64 "llx" /* uint_least64_t */ 342*1230bda5Schristos #else 343*1230bda5Schristos #define SCNxLEAST64 "lx" /* uint_least64_t */ 344*1230bda5Schristos #endif 34599054d7aSkleink #define SCNxFAST8 "x" /* uint_fast8_t */ 34699054d7aSkleink #define SCNxFAST16 "x" /* uint_fast16_t */ 34799054d7aSkleink #define SCNxFAST32 "x" /* uint_fast32_t */ 348*1230bda5Schristos #if defined(__clang__) || !defined(_LP64) 34999054d7aSkleink #define SCNxFAST64 "llx" /* uint_fast64_t */ 350f06533a1Skleink #define SCNxMAX "llx" /* uintmax_t */ 351*1230bda5Schristos #else 352*1230bda5Schristos #define SCNxFAST64 "lx" /* uint_fast64_t */ 353*1230bda5Schristos #define SCNxMAX "lx" /* uintmax_t */ 354*1230bda5Schristos #endif 355d7c7a3eaSmatt #define SCNxPTR "lx" /* uintptr_t */ 356efe99ca4Smatt 357efe99ca4Smatt #endif /* !__INTPTR_FMTd__ */ 358f06533a1Skleink 359f06533a1Skleink #endif /* !_ARM_INT_FMTIO_H_ */ 360