Mercurial > hg > truffle
comparison src/share/vm/utilities/globalDefinitions.hpp @ 7623:203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
Summary: Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro.
Reviewed-by: dholmes, coleenp, mikael, kvn
author | hseigel |
---|---|
date | Thu, 17 Jan 2013 10:25:16 -0500 |
parents | 59c790074993 |
children | 3ac7d10a6572 cc32ccaaf47f b84fd7d73702 |
comparison
equal
deleted
inserted
replaced
7620:e94ed1591b42 | 7623:203f64878aab |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
1248 #define INT64_FORMAT_W(width) "%" #width PRId64 | 1248 #define INT64_FORMAT_W(width) "%" #width PRId64 |
1249 #define UINT64_FORMAT_W(width) "%" #width PRIu64 | 1249 #define UINT64_FORMAT_W(width) "%" #width PRIu64 |
1250 | 1250 |
1251 #define PTR64_FORMAT "0x%016" PRIx64 | 1251 #define PTR64_FORMAT "0x%016" PRIx64 |
1252 | 1252 |
1253 // Format jlong, if necessary | |
1254 #ifndef JLONG_FORMAT | |
1255 #define JLONG_FORMAT INT64_FORMAT | |
1256 #endif | |
1257 #ifndef JULONG_FORMAT | |
1258 #define JULONG_FORMAT UINT64_FORMAT | |
1259 #endif | |
1260 | |
1253 // Format pointers which change size between 32- and 64-bit. | 1261 // Format pointers which change size between 32- and 64-bit. |
1254 #ifdef _LP64 | 1262 #ifdef _LP64 |
1255 #define INTPTR_FORMAT "0x%016" PRIxPTR | 1263 #define INTPTR_FORMAT "0x%016" PRIxPTR |
1256 #define PTR_FORMAT "0x%016" PRIxPTR | 1264 #define PTR_FORMAT "0x%016" PRIxPTR |
1257 #else // !_LP64 | 1265 #else // !_LP64 |