summaryrefslogtreecommitdiffstats
path: root/pintos-progos/lib/inttypes.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
committermanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
commitb5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch)
tree1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/lib/inttypes.h
downloadprogos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip
initial pintos checkin
Diffstat (limited to 'pintos-progos/lib/inttypes.h')
-rw-r--r--pintos-progos/lib/inttypes.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/pintos-progos/lib/inttypes.h b/pintos-progos/lib/inttypes.h
new file mode 100644
index 0000000..f703725
--- /dev/null
+++ b/pintos-progos/lib/inttypes.h
@@ -0,0 +1,48 @@
1#ifndef __LIB_INTTYPES_H
2#define __LIB_INTTYPES_H
3
4#include <stdint.h>
5
6#define PRId8 "hhd"
7#define PRIi8 "hhi"
8#define PRIo8 "hho"
9#define PRIu8 "hhu"
10#define PRIx8 "hhx"
11#define PRIX8 "hhX"
12
13#define PRId16 "hd"
14#define PRIi16 "hi"
15#define PRIo16 "ho"
16#define PRIu16 "hu"
17#define PRIx16 "hx"
18#define PRIX16 "hX"
19
20#define PRId32 "d"
21#define PRIi32 "i"
22#define PRIo32 "o"
23#define PRIu32 "u"
24#define PRIx32 "x"
25#define PRIX32 "X"
26
27#define PRId64 "lld"
28#define PRIi64 "lli"
29#define PRIo64 "llo"
30#define PRIu64 "llu"
31#define PRIx64 "llx"
32#define PRIX64 "llX"
33
34#define PRIdMAX "jd"
35#define PRIiMAX "ji"
36#define PRIoMAX "jo"
37#define PRIuMAX "ju"
38#define PRIxMAX "jx"
39#define PRIXMAX "jX"
40
41#define PRIdPTR "td"
42#define PRIiPTR "ti"
43#define PRIoPTR "to"
44#define PRIuPTR "tu"
45#define PRIxPTR "tx"
46#define PRIXPTR "tX"
47
48#endif /* lib/inttypes.h */