equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, 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. |
1177 // Each compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp) |
1177 // Each compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp) |
1178 // must define the macro FORMAT64_MODIFIER, which is the modifier for '%x' or |
1178 // must define the macro FORMAT64_MODIFIER, which is the modifier for '%x' or |
1179 // '%d' formats to indicate a 64-bit quantity; commonly "l" (in LP64) or "ll" |
1179 // '%d' formats to indicate a 64-bit quantity; commonly "l" (in LP64) or "ll" |
1180 // (in ILP32). |
1180 // (in ILP32). |
1181 |
1181 |
|
1182 #define BOOL_TO_STR(__b) (__b) ? "true" : "false" |
|
1183 |
1182 // Format 32-bit quantities. |
1184 // Format 32-bit quantities. |
1183 #define INT32_FORMAT "%d" |
1185 #define INT32_FORMAT "%d" |
1184 #define UINT32_FORMAT "%u" |
1186 #define UINT32_FORMAT "%u" |
1185 #define INT32_FORMAT_W(width) "%" #width "d" |
1187 #define INT32_FORMAT_W(width) "%" #width "d" |
1186 #define UINT32_FORMAT_W(width) "%" #width "u" |
1188 #define UINT32_FORMAT_W(width) "%" #width "u" |