Index: src/globals.h |
=================================================================== |
--- src/globals.h (revision 3886) |
+++ src/globals.h (working copy) |
@@ -98,6 +98,11 @@ |
#define V8_PTR_PREFIX "" |
#endif // V8_HOST_ARCH_64_BIT |
+// The following macro works on both 32 and 64-bit platforms. |
+// Usage: instead of writing 0x1234567890123456 |
+// write GRISU_UINT64_C(0x12345678,90123456); |
Lasse Reichstein
2010/02/22 11:31:36
GRISU -> V8_2PART
Florian Loitsch
2010/02/22 15:52:53
Done.
floitsch
2012/04/10 15:54:34
Done.
|
+#define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x ## b)) |
Lasse Reichstein
2010/02/22 11:31:36
Put a "## u" after the b to make it an unsigned co
Florian Loitsch
2010/02/22 15:52:53
Done.
floitsch
2012/04/10 15:54:34
Done.
|
+ |
#define V8PRIxPTR V8_PTR_PREFIX "x" |
#define V8PRIdPTR V8_PTR_PREFIX "d" |