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

Unified Diff: runtime/vm/bigint_operations.h

Issue 8351050: Print Bigints in decimal format. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « no previous file | runtime/vm/bigint_operations.cc » ('j') | runtime/vm/bigint_operations.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bigint_operations.h
===================================================================
--- runtime/vm/bigint_operations.h (revision 1042)
+++ runtime/vm/bigint_operations.h (working copy)
@@ -43,6 +43,12 @@
static const char* ToHexCString(const Bigint& bigint,
uword (*allocator)(intptr_t size));
+ // Converts the bigint to a string.
+ static const char* ToDecCString(const BIGNUM* bn,
+ uword (*allocator)(intptr_t size));
+ static const char* ToDecCString(const Bigint& bigint,
+ uword (*allocator)(intptr_t size));
+
static bool FitsIntoSmi(const Bigint& bigint);
static RawSmi* ToSmi(const Bigint& bigint);
« no previous file with comments | « no previous file | runtime/vm/bigint_operations.cc » ('j') | runtime/vm/bigint_operations.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698