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

Unified Diff: source/i18n/fmtableimp.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 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 | « source/i18n/fmtable.cpp ('k') | source/i18n/fphdlimp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/fmtableimp.h
diff --git a/source/i18n/fmtableimp.h b/source/i18n/fmtableimp.h
index db7aa3e9e2ebbf062894b6e9f8b408ab81465a9c..b64274d568fb4f82eec30161adcb1308b6d53362 100644
--- a/source/i18n/fmtableimp.h
+++ b/source/i18n/fmtableimp.h
@@ -1,6 +1,6 @@
/*
*******************************************************************************
-* Copyright (C) 2010-2012, International Business Machines Corporation and *
+* Copyright (C) 2010-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@@ -8,6 +8,9 @@
#ifndef FMTABLEIMP_H
#define FMTABLEIMP_H
+#include "digitlst.h"
+
+U_NAMESPACE_BEGIN
/**
* @internal
@@ -19,6 +22,15 @@ struct FmtStackData {
// 192 total
};
+/**
+ * Maximum int64_t value that can be stored in a double without chancing losing precision.
+ * IEEE doubles have 53 bits of mantissa, 10 bits exponent, 1 bit sign.
+ * IBM Mainframes have 56 bits of mantissa, 7 bits of base 16 exponent, 1 bit sign.
+ * Define this constant to the smallest value from those for supported platforms.
+ * @internal
+ */
+static const int64_t MAX_INT64_IN_DOUBLE = 0x001FFFFFFFFFFFFFLL;
+U_NAMESPACE_END
#endif
« no previous file with comments | « source/i18n/fmtable.cpp ('k') | source/i18n/fphdlimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698