80 #define INT32_FORMAT_W(width) "%" #width PRId32
81 #define UINT32_FORMAT_W(width) "%" #width PRIu32
82
83 #define PTR32_FORMAT "0x%08" PRIx32
84 #define PTR32_FORMAT_W(width) "0x%" #width PRIx32
85
86 // Format 64-bit quantities.
87 #define INT64_FORMAT "%" PRId64
88 #define UINT64_FORMAT "%" PRIu64
89 #define UINT64_FORMAT_X "%" PRIx64
90 #define INT64_FORMAT_W(width) "%" #width PRId64
91 #define UINT64_FORMAT_W(width) "%" #width PRIu64
92 #define UINT64_FORMAT_X_W(width) "%" #width PRIx64
93
94 #define PTR64_FORMAT "0x%016" PRIx64
95
96 // Format jlong, if necessary
97 #ifndef JLONG_FORMAT
98 #define JLONG_FORMAT INT64_FORMAT
99 #endif
100 #ifndef JULONG_FORMAT
101 #define JULONG_FORMAT UINT64_FORMAT
102 #endif
103 #ifndef JULONG_FORMAT_X
104 #define JULONG_FORMAT_X UINT64_FORMAT_X
105 #endif
106
107 // Format pointers which change size between 32- and 64-bit.
108 #ifdef _LP64
109 #define INTPTR_FORMAT "0x%016" PRIxPTR
110 #define PTR_FORMAT "0x%016" PRIxPTR
111 #else // !_LP64
112 #define INTPTR_FORMAT "0x%08" PRIxPTR
113 #define PTR_FORMAT "0x%08" PRIxPTR
114 #endif // _LP64
115
116 // Format pointers without leading zeros
117 #define INTPTRNZ_FORMAT "0x%" PRIxPTR
118
119 #define INTPTR_FORMAT_W(width) "%" #width PRIxPTR
|
80 #define INT32_FORMAT_W(width) "%" #width PRId32
81 #define UINT32_FORMAT_W(width) "%" #width PRIu32
82
83 #define PTR32_FORMAT "0x%08" PRIx32
84 #define PTR32_FORMAT_W(width) "0x%" #width PRIx32
85
86 // Format 64-bit quantities.
87 #define INT64_FORMAT "%" PRId64
88 #define UINT64_FORMAT "%" PRIu64
89 #define UINT64_FORMAT_X "%" PRIx64
90 #define INT64_FORMAT_W(width) "%" #width PRId64
91 #define UINT64_FORMAT_W(width) "%" #width PRIu64
92 #define UINT64_FORMAT_X_W(width) "%" #width PRIx64
93
94 #define PTR64_FORMAT "0x%016" PRIx64
95
96 // Format jlong, if necessary
97 #ifndef JLONG_FORMAT
98 #define JLONG_FORMAT INT64_FORMAT
99 #endif
100 #ifndef JLONG_FORMAT_W
101 #define JLONG_FORMAT_W(width) INT64_FORMAT_W(width)
102 #endif
103 #ifndef JULONG_FORMAT
104 #define JULONG_FORMAT UINT64_FORMAT
105 #endif
106 #ifndef JULONG_FORMAT_X
107 #define JULONG_FORMAT_X UINT64_FORMAT_X
108 #endif
109
110 // Format pointers which change size between 32- and 64-bit.
111 #ifdef _LP64
112 #define INTPTR_FORMAT "0x%016" PRIxPTR
113 #define PTR_FORMAT "0x%016" PRIxPTR
114 #else // !_LP64
115 #define INTPTR_FORMAT "0x%08" PRIxPTR
116 #define PTR_FORMAT "0x%08" PRIxPTR
117 #endif // _LP64
118
119 // Format pointers without leading zeros
120 #define INTPTRNZ_FORMAT "0x%" PRIxPTR
121
122 #define INTPTR_FORMAT_W(width) "%" #width PRIxPTR
|