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

Unified Diff: base/third_party/nspr/prtime.h

Issue 1713433002: Moved macros into prtime.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | base/third_party/nspr/prtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/nspr/prtime.h
diff --git a/base/third_party/nspr/prtime.h b/base/third_party/nspr/prtime.h
index 01a4e540782ba2157a295639dbd45aece5c3a6f0..4da9f621dd75277f711f1f0d332816384a69ea39 100644
--- a/base/third_party/nspr/prtime.h
+++ b/base/third_party/nspr/prtime.h
@@ -101,6 +101,17 @@ typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
typedef PRInt64 PRTime;
/*
+ * Long-long (64-bit signed integer type) support macros used by
+ * PR_ImplodeTime().
+ * See http://lxr.mozilla.org/nspr/source/pr/include/prlong.h
+ */
+
+#define LL_I2L(l, i) ((l) = (PRInt64)(i))
+#define LL_MUL(r, a, b) ((r) = (a) * (b))
+#define LL_ADD(r, a, b) ((r) = (a) + (b))
+#define LL_SUB(r, a, b) ((r) = (a) - (b))
wtc 2016/02/20 01:05:16 This is in the middle of the code copied from prti
pkl (ping after 24h if needed) 2016/02/20 07:28:49 Thank you for the review and suggestion! Code move
+
+/*
* Time zone and daylight saving time corrections applied to GMT to
* obtain the local time of some geographic location
*/
« no previous file with comments | « no previous file | base/third_party/nspr/prtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698