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

Unified Diff: firmware/include/sysincludes.h

Issue 2851015: Fixes to compiler warnings in MSVC (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Also fix gpt numbering bug Created 10 years, 6 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 | firmware/lib/cgptlib/cgptlib.c » ('j') | firmware/lib/cryptolib/rsa.c » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: firmware/include/sysincludes.h
diff --git a/firmware/include/sysincludes.h b/firmware/include/sysincludes.h
index 13c0914a84f4354d1732cdf596499d41246ba9c1..b98cae09ba4a9e0ddb18b810031e75339447e780 100644
--- a/firmware/include/sysincludes.h
+++ b/firmware/include/sysincludes.h
@@ -26,6 +26,10 @@
#include <memory.h>
#endif
+/* 64-bit operations, for platforms where they need to be function calls */
+#define UINT64_RSHIFT(v, shiftby) (((uint64_t)(v)) >> (shiftby))
+#define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby)))
+
#else
#include "stub/biosincludes.h"
#endif
« no previous file with comments | « no previous file | firmware/lib/cgptlib/cgptlib.c » ('j') | firmware/lib/cryptolib/rsa.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698