Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: src/globals.h

Issue 619005: Fast algorithm for double->string conversion. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"

Powered by Google App Engine
This is Rietveld 408576698