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

Unified Diff: base/third_party/nss/sha512.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 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 | « base/third_party/nspr/prtime.cc ('k') | base/threading/non_thread_safe.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/third_party/nss/sha512.cc
diff --git a/base/third_party/nss/sha512.cc b/base/third_party/nss/sha512.cc
index 6ad064556c378885911dffdb0c1f2d167e7715fc..e582174a9043022d2daed41d87a3b82c4fc9ab6e 100644
--- a/base/third_party/nss/sha512.cc
+++ b/base/third_party/nss/sha512.cc
@@ -42,16 +42,18 @@
// size from ~10k to ~1k. The performance should be reasonable for our use.
#define NOUNROLL256 1
+#include "base/third_party/nspr/prcpucfg_mac.h"
#include "base/third_party/nspr/prtypes.h" /* for PRUintXX */
+#include "base/third_party/nss/blapit.h"
#if defined(_X86_) || defined(SHA_NO_LONG_LONG)
#define NOUNROLL512 1
#undef HAVE_LONG_LONG
#endif
-#include "base/third_party/nss/blapi.h"
-#include "base/third_party/nss/sha256.h" /* for struct SHA256ContextStr */
-
#include <stdlib.h>
#include <string.h>
+
+#include "base/third_party/nss/sha256.h" /* for struct SHA256ContextStr */
+
#define PORT_New(type) static_cast<type*>(malloc(sizeof(type)))
#define PORT_ZFree(ptr, len) do { memset(ptr, 0, len); free(ptr); } while (0)
#define PORT_Strlen(s) static_cast<unsigned int>(strlen(s))
@@ -131,6 +133,7 @@ swap4b(PRUint32 dwd)
#undef __pentium__
#define __pentium__ 1
#include <byteswap.h>
+
#define SHA_HTONL(x) bswap_32(x)
#define BYTESWAP4(x) x = SHA_HTONL(x)
« no previous file with comments | « base/third_party/nspr/prtime.cc ('k') | base/threading/non_thread_safe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698